Skip to content

Commit

Permalink
feat: improved tab panel contrast and dark mode text contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
njlyon0 committed Aug 13, 2024
1 parent cf78b2d commit 37099b5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
20 changes: 19 additions & 1 deletion theme_lter-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $navbar-bg: $lter-blue-2; // navbar
$navbar-fg: $cream; // navbar foreground elements
$sidebar-bg: $lter-green-3; // sidebar
$sidebar-fg: $cream; // sidebar foreground elements
$navbar-hl: $lter-green-1; // highlight color when on a page
$navbar-hl: $lter-green-3; // highlight color when on a page
$body-bg: $black; // page background
$body-color: $cream; // page text
$footer-bg: $lter-blue-2; // footer
Expand All @@ -39,3 +39,21 @@ $link-color: $lter-tan; // hyperlinks
$code-bg: $gray-3; // inline code background color
$code-block-bg: $gray-3; // code block background color
$code-color: $lter-green-1; // inline code text color

/*-- scss:rules --*/

// Active tabset panel (tab then tab content)
.nav-tabs .nav-link.active {
background-color: $gray-3;
color: $black;
}
.tab-content { background-color: $gray-3; }

// Navbar dropdown elements
.dropdown-menu{
--bs-dropdown-link-hover-color: #f4f3ee;
--bs-dropdown-link-hover-bg: #97AE3F;
}

// Underline URLs
.reveal .slide a { text-decoration: underline; }
18 changes: 18 additions & 0 deletions theme_lter-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,21 @@ $link-color: $lter-blue-2; // hyperlinks
$code-bg: $gray-0; // inline code background color
$code-block-bg: $gray-0; // code block background color
$code-color: $lter-green-2; // inline code text color

/*-- scss:rules --*/

// Active tabset panel (tab then tab content)
.nav-tabs .nav-link.active {
background-color: #FFF;
color: $black;
}
.tab-content { background-color: #FFF; }

// Navbar dropdown elements
.dropdown-menu{
--bs-dropdown-link-hover-color: #f4f3ee;
--bs-dropdown-link-hover-bg: #4AB2CB;
}

// Underline URLs
.reveal .slide a { text-decoration: underline; }

0 comments on commit 37099b5

Please sign in to comment.