bulib-wc
Version:
collection of web components and styles used at Boston University Libraries
178 lines (153 loc) • 6.76 kB
CSS
/* -- libguides (library.bu.edu/guides) -- */
/* decrease the default font-size of the announcement-banner */
body { --font-size-announce: unset; }
/* add some padding for the header and footer */
#s-lib-public-main {
margin-top: 10px ;
margin-bottom: 10px ;
}
/* move footer to the bottom of the viewport */
#s-lib-footer-public { margin-top: auto; }
/* styling for the tags, staff login url, 'Powered by SpringShare' */
#s-lib-footer-public {
font-size: small;
color: var(--color-primary-text, whitesmoke);
background-color: var(--color-primary-background, black);
}
#s-lib-footer-public a {
font-weight: 700;
color: var(--color-primary-text, #B4BCC1);
text-decoration: underline;
}
#s-lib-footer-public a:hover {
color: var(--color-primary-text-light, white);
}
/* ensure header-dropdown shows up above other items */
div.header-wrapper, div.full-width, div.banner-wrapper { width: 100vw; }
#s-lib-public-main, #s-lg-guide-search-box .input-group > input,
#s-lg-guide-search-box .input-group button { z-index: unset; }
body { padding-left: 0px; padding-right: 0px; }
/* normalize width alignment of top parts to match the header and footer breakpoints */
@media only screen and (min-width: 1500px){
#s-lg-guide-header #s-lg-guide-header-info > h1,
#s-lib-public-header > #s-lib-public-header-title ,
#s-lg-guide-header #s-lg-guide-header-info > div#s-lg-guide-desc-container {
margin-left: 7.5%;
}
div.pull-right { margin-right: 8%; }
#s-lib-bc > ol { margin-left: auto ; margin-right: auto ; width: 85%; }
}
/* restyle the breadcrumbs to increase size and match --color-primary-background-light */
#s-lib-bc {
padding-left: var(--padding-small, 5px);
padding-right: var(--padding-small, 5px);
background-color: var(--color-primary-background-light, #333);
border: 1px solid var(--color-primary-background-light, #333);
color: var(--color-primary-text, whitesmoke);
}
#s-lib-bc #s-lib-bc-list > li, #s-lib-bc #s-lib-bc-list > li > a { color: var(--color-primary-text, whitesmoke); }
#s-lib-bc #s-lib-bc-list > li > a { text-decoration: underline; }
#s-lib-bc #s-lib-bc-list > li > a:hover { color: var(--color-primary-text-light, white); }
#s-lib-bc #s-lib-bc-list a { font-size: initial; }
#s-lib-admin-bc .breadcrumb, #s-lib-bc .breadcrumb { font-size: small; }
#s-lg-guide-description { font-size: medium; }
/* stretch header, breadcrumbs, and libguides supplemental footer to full width with no horizontal margin */
#s-lg-guide-header, #s-lib-public-header { margin-left: 0px; margin-right: 0px; width: 100vw; }
#s-lg-guide-header #s-lg-guide-header-info, div.pull-right {
padding-left: var(--padding-small, 5px);
padding-right: var(--padding-small, 5px);
}
#s-lg-guide-header, #s-lib-public-header {
background-color: var(--color-secondary-background-light, #EEE);
border-bottom: 1px solid var(--color-secondary-background-dark, #C8C8C8);
}
#s-lg-guide-header #s-lg-guide-header-info {
margin-top: -5px;
padding-top: var(--padding-medium, 10px);
padding-bottom: var(--padding-medium, 10px);
}
#s-lg-guide-header #s-lg-guide-search-box {
margin-top: 20px;
width: 350px;
max-width: 98vw;
padding-left: 5px;
}
#s-lg-guide-header #s-lg-guide-search-terms { font-size: large; }
#s-lg-guide-header-search { padding-top: 10px; }
div.banner-wrapper bulib-search { width: 550px; }
/* restyle the libguides supplemental footer */
#s-lib-footer-public span {
color: var(--color-primary-text, whitesmoke);
font-size: 115%;
}
#s-lib-footer-public, #s-lib-footer-public #s-lg-guide-header-meta, #s-lib-footer-public div.pad-bottom-sm {
background-color: var(--color-primary-background-light, #555);
color: var(--color-primary-text, whitesmoke);
margin-left: 0px; margin-right: 0px;
padding-left: 5px; padding-right: 5px;
justify-content: center;
display: flex;
flex-wrap: wrap;
width: 100%;
}
/* buttons */
button.btn-info, a.btn.btn-info, #s-lg-guide-search-box button[type=submit], a.label.label-info {
background-color: var(--color-button-background);
border: 1px solid var(--color-button-background, #257abe);
color: var(--color-button-text, white);
}
button.btn-info:hover, a.btn.btn-info:hover, #s-lg-guide-search-box button[type=submit]:hover, a.label.label-info:hover {
background-color: var(--color-button-background-dark);
}
/* 'Get Help' box styling (contact-us) */
.get-help i { font-size: xx-large; padding-right: 8px; }
.get-help a { font-weight: 600; padding-right: 3px; }
.get-help li span { vertical-align: middle; font-size: medium; }
.get-help.small i { font-size: large ; padding-right: 4px; }
.get-help.small span { font-size: small ; padding-right: 0px; }
.get-help.small li { padding-bottom: 5px; }
@media only screen and (max-width: 450px){
.get-help i { font-size: large ; padding-right: 4px; }
.get-help span { font-size: small ; padding-right: 0px; }
.get-help li { padding-bottom: 5px; }
.banner bulib-search { display: none; }
}
/* - A-Z Database list - */
/* enable mobile header to open above the rest of the page */
.s-lib-main, #s-lg-guide-main { z-index: unset ; }
/* adjust breadcrumb size when added to the bulib custom banner */
.banner #s-lib-admin-bc .breadcrumb, .banner #s-lib-bc .breadcrumb { font-size: small; }
/* color the 'Clear Filters' button to make it stand out more */
#s-lg-az-search-reset button#s-lg-az-reset {
background-color: var(--color-button-background, #639CC9);
color: var(--color-button-text-light, white);
}
/* decrease horizontal padding between alpha_list */
#s-lg-az-index .btn-group>.btn-link { padding: 4.5px; }
#s-lg-az-index div.btn-group {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
/* remove set width restrictions for az-list filters */
.secondary-menu #s-lg-sel-az-types,
.secondary-menu #s-lg-sel-az-vendors,
.secondary-menu #s-lg-sel-subjects {
width: 100%;
}
/* - Recurring Sidebar - */
/* replicate the side header styling to acheive parity/similar look&feel with templates */
.s-lib-public-side-header h2, div.dblist-sidebar h2, #dblist-sidebar-policy-map h2,
div#s-lg-az-cols #col2 h2, div#s-lg-index-cols #col2 h2 {
margin-top: 0 ;
font: 700 16px Arial,Geneva,Helvetica,sans-serif ;
border-bottom: 1px solid #a2a2a2 ;
color: #686868 ;
}
/* add padding underneath the high-level divs */
div#s-lg-az-cols #col2 > div, div#s-lg-index-cols #col2 > div {
margin-bottom: var(--padding-xlarge, 30px);
}
/* equalize font sizes */
div#s-lg-index-cols #col2 .get-help span { font-size: unset; }
div#s-lg-index-cols #col2 .get-help i { font-size: x-large; }