dark mode tweaks: card/nav/logo/input refinements
- Card bodies use page background color instead of surface color - Hours container matches page background in dark mode - Main nav uses kbccblue background with white text in dark mode - Radio buttons and labels are white in dark mode - Library links are white in dark mode - Search input stays white with dark text in dark mode - Slick carousel arrows are white in dark mode - LibGuides boxes use page background in dark mode - Logo swaps to inverted version (white on dark) in dark mode Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a978df4af9
commit
2e94510777
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
@@ -166,6 +166,13 @@
|
|||||||
#hours-content-container > a {
|
#hours-content-container > a {
|
||||||
color: #fff
|
color: #fff
|
||||||
}
|
}
|
||||||
|
[data-bs-theme="dark"] #hours-content-container {
|
||||||
|
background-color: var(--bg);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
[data-bs-theme="dark"] #hours-content-container > a {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
/* style navbar */
|
/* style navbar */
|
||||||
nav.navbar-light.main-nav-container {
|
nav.navbar-light.main-nav-container {
|
||||||
@@ -177,6 +184,15 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
[data-bs-theme="dark"] nav.navbar-light.main-nav-container {
|
||||||
|
background-color: var(--kbccblue) !important;
|
||||||
|
background: var(--kbccblue) !important;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
[data-bs-theme="dark"] .navbar-light .navbar-nav > li > a,
|
||||||
|
[data-bs-theme="dark"] .caret-text {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
.main-nav-dropdown {
|
.main-nav-dropdown {
|
||||||
margin: 0 8px;
|
margin: 0 8px;
|
||||||
}
|
}
|
||||||
@@ -263,6 +279,12 @@
|
|||||||
#radios label {
|
#radios label {
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
}
|
}
|
||||||
|
[data-bs-theme="dark"] #radios label {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
[data-bs-theme="dark"] #radios input[type="radio"] {
|
||||||
|
accent-color: white;
|
||||||
|
}
|
||||||
#advanced {
|
#advanced {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
@@ -284,6 +306,13 @@
|
|||||||
#primoQueryTemp {
|
#primoQueryTemp {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
[data-bs-theme="dark"] #primoQueryTemp {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #111;
|
||||||
|
}
|
||||||
|
[data-bs-theme="dark"] #primoQueryTemp::placeholder {
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
.onesearchsubmit {
|
.onesearchsubmit {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
@@ -359,6 +388,10 @@
|
|||||||
font-size: 1.7em;
|
font-size: 1.7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-bs-theme="dark"] .link-list a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
/* External link icon styling (WCAG 2.4.4) */
|
/* External link icon styling (WCAG 2.4.4) */
|
||||||
.external-link-icon {
|
.external-link-icon {
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
@@ -419,6 +452,10 @@
|
|||||||
padding: 3px;
|
padding: 3px;
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
|
[data-bs-theme="dark"] .slick-prev:before,
|
||||||
|
[data-bs-theme="dark"] .slick-next:before {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
/* style to make all imported boxes floating */
|
/* style to make all imported boxes floating */
|
||||||
.s-lib-box-title {
|
.s-lib-box-title {
|
||||||
@@ -434,6 +471,10 @@
|
|||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
}
|
}
|
||||||
|
[data-bs-theme="dark"] .s-lib-box,
|
||||||
|
[data-bs-theme="dark"] .s-lg-box {
|
||||||
|
background-color: var(--bg);
|
||||||
|
}
|
||||||
|
|
||||||
/* style the dropdown menus */
|
/* style the dropdown menus */
|
||||||
.dropdown-margin {
|
.dropdown-margin {
|
||||||
@@ -521,7 +562,7 @@
|
|||||||
|
|
||||||
/* card body dark mode background */
|
/* card body dark mode background */
|
||||||
.card-body {
|
.card-body {
|
||||||
background-color: var(--bg-surface);
|
background-color: var(--bg);
|
||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
id="library-logo"
|
id="library-logo"
|
||||||
class="image-fail"
|
class="image-fail"
|
||||||
alt="Kibbee Library logo"
|
alt="Kibbee Library logo"
|
||||||
src="https://libapps.s3.amazonaws.com/accounts/16298/images/xsmall-2.jpg"
|
:src="isDark ? 'https://d2jv02qf7xgjwx.cloudfront.net/accounts/16298/images/Kibbee_library_logo_inverted.jpg' : 'https://libapps.s3.amazonaws.com/accounts/16298/images/xsmall-2.jpg'"
|
||||||
/>
|
/>
|
||||||
{{content_box_33471502}}
|
{{content_box_33471502}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user