Skip to content

Commit

Permalink
Define navigation text colors in variables.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 18, 2024
1 parent d75bd5d commit 662abd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/assets/_sass/toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ html {

// ScrollSpy active styles (see toc.js tab for activation)
.section-nav li.active>a {
color: #333;
color: $nav-text-active-color;
font-weight: 500;
}

Expand All @@ -56,13 +56,13 @@ html {
text-decoration: none;
display: block;
padding: .125rem 0;
color: #ccc;
color: $nav-text-color;
transition: all 50ms ease-in-out;
/* 💡 This small transition makes setting of the active state smooth */
}

.section-nav a:hover,
.section-nav a:focus {
color: #666;
color: $nav-text-focus-color;
}
}
5 changes: 5 additions & 0 deletions docs/assets/_sass/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
$large-breakpoint: 64em !default;
$medium-breakpoint: 42em !default;

// Navigation
$nav-text-color: #ccc !default;
$nav-text-active-color: #333 !default;
$nav-text-focus-color: #666 !default;

// Headers
$header-heading-color: #fff !default;
$header-bg-color: #008383 !default;
Expand Down

0 comments on commit 662abd0

Please sign in to comment.