diff --git a/assets/dsroot/css/default-styles.css b/assets/dsroot/css/default-styles.css new file mode 100644 index 0000000..568ae80 --- /dev/null +++ b/assets/dsroot/css/default-styles.css @@ -0,0 +1,187 @@ +/* Copyright (c) 2014, SWITCH */ +h1 { + font-family:Verdana, sans-serif; + font-size: 13px; + padding-bottom: 6px; + text-align: left; +} + +p { + font-family:Verdana, sans-serif; + font-size: 12px; + text-align: left; +} + +a { + color: #00247D; + text-decoration: underline; +} + +a:visited { + color: #00247D; + text-decoration: underline; +} + +a:focus, a:hover, a:active { + color: #F39800; + text-decoration: underline; +} + +pre { + text-align: left; +} + + +.promptMessage { + margin-top: 0; +} + +.selectOptions { + margin-bottom: 0; +} + +.box +{ + width: 720px; + text-align: center; + background-color: #FFFFFF; + box-shadow: 1px 1px 8px #999999; + border-radius: 13px; + -webkit-box-shadow: 1px 1px 8px #999999; + -webkit-border-radius: 13px; + -moz-box-shadow: 1px 1px 8px #999999; + -moz-border-radius: 13px; + padding: 10px 24px 10px 24px; +} + + +/* IE 6 hack */ +* html .box { border: 2px #969696 solid; } + +/* IE 7 hack */ +*+html .box { border: 2px #969696 solid; } + + +/* IE 8 hack */ +@media \0screen { + .box { border: 2px #969696 solid; } +} + +.menu { + width: 100%; + padding-left: 2px; + margin-top: 10px; + margin-left: 0; + float: left; + background: url("{$imageURL}/dual_line.png") repeat-x scroll 0 100% transparent; + font-family: Verdana, sans-serif; + font-size: 12px; + line-height: 45px; +} + +.menu li { + float: left; + list-style:none; + line-height:35px; + margin-right:10px; +} + +.menu li.last { + background: url("{$imageURL}/separator.png") no-repeat scroll left center transparent; + padding-left: 8px; + float: left; + list-style:none; +} + +.serviceName { + font-weight: bold; +} + +.hostName { + font-weight: bold; +} + + +#container, .container { + position: absolute; + left: 50%; + top: 50%; + margin-left: -370px; + margin-top: -200px; +} + +#content, .content { + width: 98%; +} + +#header { + width: 100%; + display: inline-block; + text-align: left; +} + +#federationLogo { + border: 0; + float: left; +} + +#organisationLogo +{ + border: 0; + float: right; +} + +#userInputArea, .userInputArea { + width: 100%; + margin-left: auto; + margin-right: auto; + background-color: #F0F0F0; + border-color: #969696; + border-width: 1px; + border-style: solid; + padding: 6px; +} + +#userIdPSelection, .userIdPSelection { + width: 480px; + font-size: 12px; +} + +/* Device specific styles */ +@media only screen and (max-device-width: 720px){ + .box { + width: auto; + box-shadow: none; + border-radius: 0; + -webkit-box-shadow: none; + -webkit-border-radius: 0; + -moz-box-shadow: none; + -moz-border-radius: 0; + padding: 0; + } + + #content, .content { + width: 96%; + } + + #container, .container { + width: 96%; + position: auto; + left: auto; + top: auto; + margin-left: 0; + margin-top: 0; + } + + #userIdPSelection, .userIdPSelection { + width: 60%; + } + + #userIdPSelection_iddwrap input { + width:90%!important; + } +} + +html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 { + -webkit-text-size-adjust:none; +} diff --git a/assets/dsroot/custom-body.php b/assets/dsroot/custom-body.php new file mode 100644 index 0000000..76c0aa7 --- /dev/null +++ b/assets/dsroot/custom-body.php @@ -0,0 +1,32 @@ + + + +

+
+
+

+
+ + +
+
+

+ name="session" id="rememberForSession" value="true"> +
+ + + + + +

+
+
+
+ + + + diff --git a/assets/dsroot/custom-error.php b/assets/dsroot/custom-error.php new file mode 100644 index 0000000..425ebb0 --- /dev/null +++ b/assets/dsroot/custom-error.php @@ -0,0 +1,12 @@ + + + +

+

+ +

+

+ +

+ diff --git a/assets/dsroot/custom-footer.php b/assets/dsroot/custom-footer.php new file mode 100644 index 0000000..552b6ca --- /dev/null +++ b/assets/dsroot/custom-footer.php @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/dsroot/custom-header.php b/assets/dsroot/custom-header.php new file mode 100644 index 0000000..468a88f --- /dev/null +++ b/assets/dsroot/custom-header.php @@ -0,0 +1,99 @@ + + + + + <?php echo getLocalString('title') ?> + + + + + + + + + + + + + +
+
+ +
+ + diff --git a/assets/dsroot/custom-notice.php b/assets/dsroot/custom-notice.php new file mode 100644 index 0000000..f394215 --- /dev/null +++ b/assets/dsroot/custom-notice.php @@ -0,0 +1,28 @@ + + + +

+
+
+

+

+
+ + + +

+ + +

+ + ".$scriptURL."" ?> + +

+
+
+
+ + diff --git a/assets/dsroot/custom-settings.php b/assets/dsroot/custom-settings.php new file mode 100644 index 0000000..4fbb736 --- /dev/null +++ b/assets/dsroot/custom-settings.php @@ -0,0 +1,23 @@ + + + +

+
+
+

+

+
+ + +
+ + +
+
+ + + diff --git a/assets/dsroot/images/logo.png b/assets/dsroot/images/logo.png new file mode 100644 index 0000000..d26df2f Binary files /dev/null and b/assets/dsroot/images/logo.png differ diff --git a/do_overlay.sh b/do_overlay.sh new file mode 100755 index 0000000..6dd58db --- /dev/null +++ b/do_overlay.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +set -u +set -e +set -x + +# Source the build variables of the container so we can be abstracted +. /root/env + +WORKDIR="${CDS_BASE}/_work" + +# it is implied that the do_overlay.sh is invoked inside at the root of overlay +MYPATH="${PWD}" +SRC_DSROOT="${MYPATH}/assets/dsroot" + +## +## do the 'act of overlaying' +## +#move actual DS php executable to our legacy location +# mv ${CDS_HTMLROOTDIR}/${CDS_HTMLWAYFDIR}/${CDS_WAYFORIGINFILENAME} ${CDS_HTMLROOTDIR}/${CDS_HTMLWAYFDIR}/${CDS_WAYFDESTFILENAME} + +# update the images directory + +cp ${SRC_DSROOT}/images/logo.png ${CDS_HTMLROOTDIR}/images/ + +cp ${SRC_DSROOT}/css/default-styles.css ${CDS_HTMLROOTDIR}/css/ + +# overlay PHP files +cp ${SRC_DSROOT}/*.php ${CDS_HTMLROOTDIR}/ + + + diff --git a/env b/env new file mode 100644 index 0000000..d4ebd5f --- /dev/null +++ b/env @@ -0,0 +1 @@ +overlayFormatVersion=1.0 \ No newline at end of file