Skip to content

Commit

Permalink
#18 fix transparent navigation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chraebsli authored Oct 8, 2024
1 parent 03c1532 commit 7eb7dc2
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## _unreleased_
1. [](#bugfix)
- Fix reading time template missing
- Fix transparent navigation bug (#18)
1. [](#improved)
- add translations for admin > pages > modals (navigation)

Expand Down
20 changes: 19 additions & 1 deletion css/hadron.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/hadron.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions scss/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,31 @@ body.header-dark .mobile-menu #toggle span,
background: $text-color-secondary;
}

// navigation menu
body:is(.header-light, .header-transparent) #header, #header.scrolled {
background-color: $background-color;
color: $text-color;

.dropmenu ul > li > a:is(.active, :focus, :hover) {
color: $primary-color !important;
}
}

// navigation in dark mode (& transparent dark mode)
body:is(.header-dark) #header:not(.scrolled) {
color: $text-color-secondary-dark;

// default dropdown
.dropmenu ul > li > a:is(.active, :focus, :hover) {
color: $primary-color !important;
}

// navigation items
.dropmenu > ul > li > a:is(.active, :focus, :hover) {
color: $text-color-secondary !important;
}
}

// mobile nav
.mobile-container {
.mobile-logo {
Expand Down
20 changes: 20 additions & 0 deletions scss/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,23 @@ $overlay-dark-grad-to: #00000000;
$responsive-breakpoint-mobile: 640px;
$responsive-breakpoint-tablet: 840px;
$responsive-breakpoint-desktop: 1280px;

// elements
$background-color: white;
$text-color: $grey;
$text-color-light: mix($text-color, $light-overlay, 25%);
$text-color-secondary: white;
$text-color-secondary-dark: mix($text-color-secondary, $dark-overlay);
$link-color: $primary-color;
$link-color__active: $accent-color;

// header & footer
$header-background: $background-color;
$header-text: $text-color;
$header-text__active: $text-color-secondary;
$footer-background: $background-color;
$footer-text: $text-color;
$footer-text-link: $link-color;

// sizes
$nav-item-height: 4rem;

0 comments on commit 7eb7dc2

Please sign in to comment.