Skip to content

Commit ce9a049

Browse files
authored
Small header design fixes (playfulprogramming#1240)
Fixed clipping of the CSS icon in the banner by making the header transparent until a scroll is detected. Removed the transition duration as a 1px divider isn't gonna make or break anything. Fixed doubled theme buttons on desktop thanks to @fennifith
2 parents e3674b7 + 249dea8 commit ce9a049

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/views/base/navigation/header.module.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ header {
2525
border-bottom: 1px solid transparent;
2626
&[data-sticky="pinned"] {
2727
border-bottom: 1px solid var(--background_disabled);
28+
background-color: var(--background_primary);
2829
}
2930

3031
top: -0.1px;
3132
position: sticky;
3233
z-index: 2;
33-
background-color: var(--background_primary);
34-
@include transition(background-color);
3534
}
3635

3736
.header {
@@ -153,7 +152,7 @@ header {
153152
display: flex;
154153
}
155154

156-
.themeToggleLarge + .themeToggleSmall {
155+
.themeToggleLarge ~ .themeToggleSmall {
157156
display: none;
158157
}
159158
}

0 commit comments

Comments
 (0)