create v.7
This commit is contained in:
@@ -0,0 +1,645 @@
|
||||
<style>
|
||||
:root {
|
||||
--kbccblue: #003466;
|
||||
--kbccorange: #ff4e00;
|
||||
--text: #111;
|
||||
}
|
||||
|
||||
body {
|
||||
color: var(--text);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
a,
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Skip link styles (WCAG 2.4.1) */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -40px;
|
||||
left: 0;
|
||||
background: var(--kbccblue);
|
||||
color: #fff;
|
||||
padding: 8px 16px;
|
||||
z-index: 10000;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
.skip-link:focus {
|
||||
top: 0;
|
||||
outline: 3px solid var(--kbccorange);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Screen reader only class for visually hidden content */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* style slide out chat */
|
||||
#lcs_slide_out_button-21944 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
/* style header */
|
||||
#header-div {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
/* style the hamburger menu */
|
||||
#hamburger-container {
|
||||
float: left;
|
||||
}
|
||||
#hamburger,
|
||||
#hamburger:active {
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #fff;
|
||||
color: var(--kbccblue);
|
||||
}
|
||||
#hamburger-ul > li > .searchmenu {
|
||||
background-color: #fff;
|
||||
}
|
||||
#hamburger-ul {
|
||||
padding: 25px 0;
|
||||
}
|
||||
|
||||
/* have bootstrap dropdowns fade in and out */
|
||||
.dropdown-menu.fade {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.open > .dropdown-menu.fade {
|
||||
pointer-events: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
.fade {
|
||||
-webkit-transition-duration: 5s; /* Safari */
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
/* Show dropdown on hover AND keyboard focus (WCAG 2.1.1) */
|
||||
.dropdown:hover .dropdown-menu,
|
||||
.dropdown:focus-within .dropdown-menu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Navigation dropdown keyboard support (WCAG 2.1.1) */
|
||||
.main-nav-dropdown:focus-within > .dropdown-menu.fade {
|
||||
pointer-events: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* style the login at the top right */
|
||||
#login-div {
|
||||
float: right;
|
||||
padding: 8px 15px 0 0;
|
||||
color: var(--kbccblue);
|
||||
font-size: 1.5em;
|
||||
}
|
||||
#login-text {
|
||||
display: inline-block;
|
||||
vertical-align: -2px;
|
||||
}
|
||||
#login-icon {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
/* Accessible focus indicators for primary navigation elements */
|
||||
#hamburger:focus,
|
||||
#hamburger:focus-visible,
|
||||
#login-div:focus,
|
||||
#login-div:focus-visible,
|
||||
.searchmenu:focus,
|
||||
.searchmenu:focus-visible,
|
||||
.nav-jumbotron-link:focus,
|
||||
.nav-jumbotron-link:focus-visible,
|
||||
.ga-by-jumbotron:focus,
|
||||
.ga-by-jumbotron:focus-visible,
|
||||
.ga-library-links:focus,
|
||||
.ga-library-links:focus-visible,
|
||||
/* OneSearch widget (central search form) */
|
||||
.onesearch-jumbotron input:focus,
|
||||
.onesearch-jumbotron input:focus-visible,
|
||||
.onesearch-jumbotron button:focus,
|
||||
.onesearch-jumbotron button:focus-visible,
|
||||
/* Navigation dropdown toggles */
|
||||
.dropdown-toggle:focus,
|
||||
.dropdown-toggle:focus-visible {
|
||||
outline: 3px solid #0056b3; /* high-contrast blue */
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* style alert */
|
||||
#hours-content-container { /* this id comes from the components libguide */
|
||||
background-color: var(--kbccblue);
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
padding: 4px;
|
||||
margin: -10px -11px -30px -11px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
#hours-content-container > a {
|
||||
color: #fff
|
||||
}
|
||||
|
||||
/* style navbar */
|
||||
nav.navbar-default.main-nav-container {
|
||||
background-color: white;
|
||||
border: none;
|
||||
font-size: 1.4em;
|
||||
color: var(--text);
|
||||
border-radius: 0;
|
||||
}
|
||||
.nav .open > a,
|
||||
.nav .open > a:focus,
|
||||
.nav .open > a:hover {
|
||||
background-color: #fff;
|
||||
}
|
||||
.nav > li > a:hover {
|
||||
outline: none;
|
||||
}
|
||||
.navbar-default .navbar-nav > li > a {
|
||||
color: var(--text);
|
||||
}
|
||||
#navbar-center {
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
float: none;
|
||||
}
|
||||
.ga-main-navbar {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
#dropdownMenu1 {
|
||||
border-radius: 0;
|
||||
}
|
||||
a.searchmenu {
|
||||
color: var(--text);
|
||||
}
|
||||
.highlight-menu-item {
|
||||
padding: 5px;
|
||||
}
|
||||
.highlight-menu-item:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* style background image */
|
||||
.kbcc-background-image {
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
rgba(255, 255, 255, 0.6) 0%,
|
||||
rgba(255, 255, 255, 0.6) 100%
|
||||
),
|
||||
url("https://libapps.s3.amazonaws.com/accounts/16298/images/library_front_view.jpg");
|
||||
background-position: 50% 71%;
|
||||
padding: 20px 0;
|
||||
border-radius: 5px;
|
||||
background-size: cover;
|
||||
margin: -30px 0 30px 0;
|
||||
}
|
||||
|
||||
/* style jumbotron */
|
||||
.onesearch-jumbotron {
|
||||
text-align: center;
|
||||
margin-top: -40px;
|
||||
}
|
||||
#app2 {
|
||||
margin: auto;
|
||||
width: 80%;
|
||||
}
|
||||
#onesearch-header {
|
||||
font-size: 10em;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.form-width {
|
||||
width: 100%;
|
||||
}
|
||||
.zero-margin {
|
||||
margin: -2px;
|
||||
}
|
||||
#radios {
|
||||
float: left;
|
||||
}
|
||||
.radiocontainer {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.radiocontainer {
|
||||
display: inline-block;
|
||||
}
|
||||
#booksradio, #articlesradio, #everythingradio {
|
||||
margin-right: 3px;
|
||||
}
|
||||
#advanced {
|
||||
float: right;
|
||||
margin-top: 10px;
|
||||
}
|
||||
#advanced > strong > a {
|
||||
color: black;
|
||||
}
|
||||
/* add flex so that blue box-shadows line up */
|
||||
#flex-search-form {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
}
|
||||
.inherit-height-from-flex {
|
||||
height: inherit;
|
||||
}
|
||||
|
||||
/* shadow for the search bar */
|
||||
#blue-border2 {
|
||||
box-shadow: 0 5px 0 var(--kbccblue), 0 -5px 0 var(--kbccblue),
|
||||
-5px -5px 0 var(--kbccblue), -5px 5px 0 var(--kbccblue);
|
||||
}
|
||||
/*#blue-border2 {
|
||||
box-shadow: 0 -5px 0 var(--kbccblue), 0 5px 0 var(--kbccblue);
|
||||
}*/
|
||||
#blue-border3 {
|
||||
box-shadow: 0 5px 0 var(--kbccblue), 0 -5px 0 var(--kbccblue),
|
||||
5px -5px 0 var(--kbccblue), 5px 5px 0 var(--kbccblue);
|
||||
}
|
||||
|
||||
/* style for nav by the jumbotron */
|
||||
.kbcc-background-image > .col-sm-4 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.nav-divs-by-jumbotron {
|
||||
text-align: center;
|
||||
padding: 6px;
|
||||
margin: 6px 0;
|
||||
color: white;
|
||||
background-color: var(--kbccblue);
|
||||
border-radius: 3px;
|
||||
}
|
||||
.nav-divs-by-jumbotron > h2 {
|
||||
font-size: 1.5em;
|
||||
margin-bottom: 4px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.nav-divs-by-jumbotron:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
#eq_32886 {
|
||||
background-color: var(--kbccblue);
|
||||
border: none;
|
||||
}
|
||||
.nav-divs-by-jumbotron:hover > h2 > #eq_32886,
|
||||
#eq_32886:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
#bookastudyroom {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Ensure nav-jumbotron buttons match link width */
|
||||
.nav-jumbotron-link.btn-link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0; /* remove default Bootstrap padding */
|
||||
border: none; /* ensure no extra border height */
|
||||
background: none; /* keep background controlled by inner div */
|
||||
}
|
||||
|
||||
/* Remove default heading margin for uniform button height */
|
||||
#bookastudyroom-heading {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
/* style link list */
|
||||
.link-list {
|
||||
font-size: 1.7em;
|
||||
}
|
||||
|
||||
/* External link icon styling (WCAG 2.4.4) */
|
||||
.external-link-icon {
|
||||
font-size: 0.7em;
|
||||
margin-left: 4px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* style the panels with the text content */
|
||||
.panel > .show-panel {
|
||||
background-color: var(--kbccblue);
|
||||
text-align: center;
|
||||
}
|
||||
.hide-body-border {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.glyphicon-panel-title {
|
||||
font-size: 2em;
|
||||
}
|
||||
.content-panel-title {
|
||||
color: white;
|
||||
font-size: 2em;
|
||||
}
|
||||
.content-panel-title > h2 {
|
||||
margin: 7px 0;
|
||||
font-size: 1em;
|
||||
}
|
||||
.panel-heading {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
/* style the gallery */
|
||||
.slick-slide img {
|
||||
padding: 2px;
|
||||
max-height: 350px !important;
|
||||
object-fit: contain;
|
||||
margin: 0;
|
||||
}
|
||||
.s-lib-public-side-header {
|
||||
display: none;
|
||||
}
|
||||
.slick-active {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* make the slick arrows bigger; adjust margin and padding around big arrows */
|
||||
.slick-prev:before, .slick-next:before {
|
||||
font-size: 40px !important;
|
||||
}
|
||||
.slick-prev:before {
|
||||
margin-left: -30px;
|
||||
}
|
||||
button.slick-next.slick-arrow, button.slick-prev.slick-arrow {
|
||||
height: 40px !important;
|
||||
width: 40px !important;
|
||||
}
|
||||
button.slick-next.slick-arrow {
|
||||
padding-top: 3px;
|
||||
}
|
||||
button.slick-prev.slick-arrow {
|
||||
padding: 3px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
/* style to make all imported boxes floating */
|
||||
.s-lib-box-title {
|
||||
display: none;
|
||||
}
|
||||
.s-lg-box {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.s-lib-box .s-lib-box-title {
|
||||
display: none;
|
||||
}
|
||||
.s-lib-box {
|
||||
box-shadow: none !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
/* style the dropdown menus */
|
||||
.dropdown-margin {
|
||||
padding: 20px 0;
|
||||
}
|
||||
.bigger-fancy-text {
|
||||
font-size: 1.2em;
|
||||
padding: 5px;
|
||||
}
|
||||
.bigger-icon {
|
||||
font-size: 1.5em;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.caret-text {
|
||||
display: inline-block;
|
||||
color: var(--kbccblue);
|
||||
font-weight: bold;
|
||||
}
|
||||
.fancy-caret {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
color: var(--kbccorange);
|
||||
}
|
||||
.open > a > .fancy-caret {
|
||||
margin-bottom: -4px;
|
||||
vertical-align: -4px;
|
||||
display: inline-block;
|
||||
}
|
||||
.open > a > .caret-text {
|
||||
vertical-align: -1px;
|
||||
}
|
||||
|
||||
/* style footer */
|
||||
#orange-line {
|
||||
height: 10px;
|
||||
background-color: var(--kbccorange);
|
||||
}
|
||||
#main-blue-footer {
|
||||
background-color: var(--kbccblue);
|
||||
color: white;
|
||||
padding: 30px;
|
||||
}
|
||||
.whiteahrefs a:link,
|
||||
.whiteahrefs a:hover,
|
||||
.whiteahrefs a:visited,
|
||||
.whiteahrefs a:active {
|
||||
color: white;
|
||||
}
|
||||
.whiteahrefs a i {
|
||||
margin: 4px 5px 0 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.whiteahrefs {
|
||||
margin-top: 10px;
|
||||
}
|
||||
#lighthouse-logo > a > img {
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
/* media queries */
|
||||
|
||||
@media only screen and (min-width: 1px) {
|
||||
#library-logo {
|
||||
max-width: 100%;
|
||||
max-height: 150px;
|
||||
}
|
||||
nav.navbar-default.main-nav-container {
|
||||
margin-top: -20px;
|
||||
}
|
||||
.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 (max-width: 472px) {
|
||||
#app2 { margin-bottom: 65px; }
|
||||
#radios > label, #radios > div > label { margin-bottom: -5px; }
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 360px) {
|
||||
#app2 { margin-bottom: 85px; }
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 992px) {
|
||||
#advanced {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
#login-text {
|
||||
display: none;
|
||||
}
|
||||
#radios, #advanced {
|
||||
margin-top: -8px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
#defineYourSearch {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
#radios {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.nav-by-jumbotron {
|
||||
margin-top: 0 !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 0;
|
||||
}
|
||||
.libapps {
|
||||
float: right;
|
||||
clear: both;
|
||||
}
|
||||
.libapps.whiteahrefs {
|
||||
margin-top: -10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1px) and (max-width: 992px) {
|
||||
#hamburger-alternative {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 992px) {
|
||||
#header-div {
|
||||
text-align: center;
|
||||
}
|
||||
#hamburger,
|
||||
#hamburger-ul {
|
||||
display: none;
|
||||
}
|
||||
#library-logo {
|
||||
max-width: 100%;
|
||||
max-height: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1200px) {
|
||||
#library-logo {
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- scripts to make the Book a Study Room widget run -->
|
||||
<script src="https://kbcc-cuny.libcal.com/js/equipment.min.js"></script>
|
||||
<script>
|
||||
jQuery(function () {
|
||||
jQuery("#eq_32886, #bookastudyroom").LibCalEquipmentBooking({
|
||||
iid: 5570,
|
||||
gid: 32886,
|
||||
eid: 0,
|
||||
width: 560,
|
||||
height: 680,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- If browser is pre-ES6, show a warning-->
|
||||
<script>
|
||||
window.isES6 = false;
|
||||
</script>
|
||||
<script>
|
||||
<!-- test ES6 functionality -->
|
||||
// Arrow functions support
|
||||
() => {};
|
||||
|
||||
// Class support
|
||||
class __ES6FeatureDetectionTest {}
|
||||
|
||||
// Object initializer property and method shorthands
|
||||
let es6a = true;
|
||||
let es6b = {
|
||||
es6a,
|
||||
es6c() {
|
||||
return true;
|
||||
},
|
||||
es6d: [1, 2, 3],
|
||||
};
|
||||
|
||||
// Object destructuring
|
||||
let { es6c, es6d } = es6b;
|
||||
|
||||
// Spread operator
|
||||
let es6e = [...es6d, 4];
|
||||
|
||||
// ternary operator
|
||||
let es6f = es6a ? "ternary" : "no ternary";
|
||||
|
||||
// nullish coalescing
|
||||
es6a ??= 10;
|
||||
|
||||
window.isES6 = true;
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
<!-- display the error message if feature detection flags old browser -->
|
||||
if (window.isES6 == false) {
|
||||
document.getElementById("obsolete_browser_alert").innerHTML =
|
||||
'<div class="alert alert-danger" role="alert" style="text-align: center;"><strong>WARNING! Unsupported browser!</strong><br />It looks like you\'re using an old browser.<br />This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge.<br />If you continue with this browser, many parts of this site will not work and you will see unexpected results.</div>';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- FontAwesome -->
|
||||
<script
|
||||
src="https://kit.fontawesome.com/4c28f38a07.js"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
Reference in New Issue
Block a user