From 7f42212ca45df7b1a672b9a4c2104b444609d3cb Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Fri, 23 Apr 2021 23:08:56 -0400 Subject: [PATCH] bring new-homepage-4 up to speed --- groups/new-homepage-4/homepage4-js-css.html | 336 ++++++++++-- groups/new-homepage-4/homepage4-template.html | 490 +++++++++++------- 2 files changed, 604 insertions(+), 222 deletions(-) diff --git a/groups/new-homepage-4/homepage4-js-css.html b/groups/new-homepage-4/homepage4-js-css.html index 69b1b87..7d86d32 100644 --- a/groups/new-homepage-4/homepage4-js-css.html +++ b/groups/new-homepage-4/homepage4-js-css.html @@ -2,21 +2,39 @@ body { color: #111; + overflow-x: hidden; +} + +/* style alert */ + +#corona-alert { + text-align: center; + background-color: #faf870; + padding: 5px; + border-radius: 5px; + margin-bottom: 10px; +} + +#corona-alert-text { + color: #111; +} + +/* style header */ + +#header-div { + padding: 60px 30px 30px 30px; } /* style navbar */ -.navbar-default { - background-color: #eee; +nav.navbar-default.yamm { + background-color: white; border: none; font-size: 1.4em; color: #111; - margin-top: -15px; - margin-bottom: 28px; border-radius: 0px; } - .navbar-default .navbar-nav>li>a { color: #111; } @@ -25,30 +43,62 @@ body { margin-left: 16px; } +/* style background image */ +.kbcc-background-image { + background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%,rgba(255,255,255,0.4) 100%), url("https://www1.kingsborough.edu/photo_album/kcc_campus_06/images/KG_Kibbee_3_jpg.jpg"); + padding: 20px 0px; + border-radius: 5px; + background-size: cover; + margin: -30px 0px 30px 0px; +} + /* style jumbotron */ -.jumbotron { - color: #003466; - border-radius: 0px !important; - background-color: white; +.onesearch-jumbotron { + text-align: center; + margin-top: -40px; +} + +#onesearch-header { + font-size: 10em; + margin-bottom: 0px; +} + +.zero-margin { + margin-left: -2px; + margin-right: -2px; +} + +#dropdownMenu1 { + border-radius: 0px; +} + +a.searchmenu { + color: #111; +} + +.highlight-menu-item { + padding: 2px; +} + +.highlight-menu-item:hover { + background-color: #eee; + cursor: pointer; } /* style link list */ .link-list { - font-size: 2em; + font-size: 1.5em; } /* style for nav by the jumbotron */ -.nav-by-jumbotron { - margin-top: -6px; -} - .nav-divs-by-jumbotron { - border: solid #003466 1px; text-align: center; - padding: 8px; + padding: 6px; margin: 6px 0px; - color: #003466; + color: white; + background-color: #003466; + border-radius: 3px; } .nav-divs-by-jumbotron>h2 { @@ -57,21 +107,20 @@ body { margin-top: 4px; } +a.no-underline { + text-decoration: none; +} + .nav-divs-by-jumbotron:hover { - background-color: #ddd; + background-color: #444; } /* style the panels with the text content */ -.panel>.show-panel > .panel-title { - color: #003466; +.panel>.show-panel { + background-color: #003466; text-align: center; } -.panel > .show-panel { - background-color: white; - border-bottom: solid #003466 7px; -} - .hide-body-border { border: none; box-shadow: none; @@ -95,12 +144,10 @@ body { padding: 2px; } +/* style the gallery */ + .slick-slide img { padding: 2px; -} - -/* style the gallery */ -img { max-height: 350px !important; object-fit: contain; margin: 0px; @@ -120,7 +167,7 @@ img { } .hours-panel-body { - padding: 10px 5px 10px 5px; + padding: 10px 5px 0px 5px; } .padding-0 { @@ -144,6 +191,8 @@ img { .panel-outline-color { border: solid #555 1px; + font-size: 1.2em; + line-height: 1.4em; } .vertical-align { @@ -162,6 +211,10 @@ img { margin-right: 50px; } +.bigger-fancy-text { + font-size: 1.2em; +} + .yamm1 { max-width: 900px; } @@ -174,6 +227,150 @@ img { max-width: 300px; } +.yamm4 { + max-width: 460px; +} + +#yamm4-margins { + margin: -15px 0px; +} + +/* style footer */ + +#orange-line { + height:10px; + background-color: #ff4e00; +} + +#main-blue-footer { + background-color: #003466; + color: white; + padding: 30px; +} + +.whiteahrefs a:link, .whiteahrefs a:hover, .whiteahrefs a:visited, .whiteahrefs a:active { + color: white; + text-decoration:none; +} + +.whiteahrefs { + margin-top: 10px; +} + +#lighthouse-logo > img { + max-width: 150px; +} + +/* media queries */ + +@media only screen and (min-width: 1px) { + + #library-logo { + max-width: 100%; + } + + #kb-cuny-logo { + max-width: 100%; + } + + .form-width { + width: 220px; + } + + .zero-margin { + margin: 7px auto; + } + + .nav-by-jumbotron { + margin-top: 40px !important; + } + + #main-blue-footer { + min-height: 450px; + } + + .library-address { + float: left; + } + + #cuny-logo { + float: left; + clear: both; + margin-top: 10px; + } + + .libapps { + float: left; + clear: left; + } +} + +@media only screen and (min-width: 767px) { + + nav.navbar-default.yamm { + margin-top: -30px; + } + + .zero-margin { + margin: -2px; + } + + .nav-by-jumbotron { + margin-top: 0px !important; + } + + #lighthouse-logo { + display: inline-block; + float: left; + } + + #main-blue-footer { + min-height: 210px; + } + + .library-address { + display: inline-block; + margin: -10px 30px; + font-size: 1.1em; + } + + #cuny-logo { + float: right; + clear: none; + margin: -10px 0px; + } + + .libapps { + float: right; + clear: both; + } +} + + +@media only screen and (min-width: 992px) { + #kb-cuny-logo { + max-width: 30%; + margin-top: 0px; + } + + #library-logo { + float: right; + max-width: 60%; + margin-top: -70px; + margin-right: -80px; + } + + .form-width { + width: 350px; + } +} + +@media only screen and (min-width: 1200px) { + #kb-cuny-logo { + margin-top: 10px; + } +} + /*! * Yamm!3 - Yet another megamenu for Bootstrap 3 * http://geedmo.github.com/yamm3 @@ -208,29 +405,88 @@ img { + + + + + + + + + diff --git a/groups/new-homepage-4/homepage4-template.html b/groups/new-homepage-4/homepage4-template.html index 97c803c..8d9c1bd 100644 --- a/groups/new-homepage-4/homepage4-template.html +++ b/groups/new-homepage-4/homepage4-template.html @@ -1,168 +1,183 @@ -
-
-
-
- {{public_header}} +
+
+
+ +
-
+
-
+
@@ -196,24 +325,23 @@
-

A list of links

+

Library Links

-

Upcoming library hours

+

Upcoming Library Hours

-
+
-
+
-
+
-