Skip to content

Commit

Permalink
Merge branch 'main' of github.com:noesya/osuny-hugo-theme-aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivia206 committed Dec 14, 2022
2 parents ac9eab8 + ea26683 commit 45a5e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/sass/_theme/_configuration.sass
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ $header-logo-height: 32px !default
$header-logo-height-md: $header-logo-height !default
$header-height: 99px !default
$header-height-md: 74px !default
$header-sticky-invert-logo: false !default

// Navs
$body-overlay-color: rgba(0, 0, 0, 0.3) !default
Expand Down
5 changes: 5 additions & 0 deletions assets/sass/_theme/design-system/header.sass
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ header[role="banner"]
text-decoration-color: transparent
span
color: $header-sticky-color
@if $header-sticky-invert-logo
.logo img
filter: invert(1)
html.is-scrolling-down:not(.has-menu-opened) &
@include media-breakpoint-down(md)
transform: translateY(-100%)
Expand All @@ -48,5 +51,7 @@ header[role="banner"]
display: block
height: $header-logo-height
width: auto
@if $header-sticky-invert-logo
transition: filter $header-sticky-transition
@include media-breakpoint-up(md)
height: $header-logo-height-md

0 comments on commit 45a5e26

Please sign in to comment.