-
-
Notifications
You must be signed in to change notification settings - Fork 519
refactor: Fix header styling issues #1292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
309aea6
16a9377
6ae52ba
5fd605e
f797bf3
410c2eb
297aaf0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,8 @@ | |
| background: #38235c; | ||
| color: white; | ||
|
|
||
| height: var(--banner-height); | ||
|
|
||
| padding: 0.5rem; | ||
|
|
||
| a { | ||
|
|
@@ -29,7 +31,7 @@ | |
| .open & { | ||
| justify-content: space-between; | ||
| -webkit-overflow-scrolling: touch; | ||
| height: var(--vh); | ||
| height: calc(var(--vh) - var(--banner-height)); | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -94,11 +96,7 @@ | |
| } | ||
|
|
||
| nav { | ||
| position: relative; | ||
| display: inline-block; | ||
| font-size: 100%; | ||
| user-select: none; | ||
| -webkit-user-drag: none; | ||
|
Comment on lines
-97
to
-101
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAICT, completely unnecessary. |
||
| display: flex; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| @media (max-width: /* --header-mobile-breakpoint */ 50rem) { | ||
| display: block; | ||
|
|
@@ -185,6 +183,8 @@ | |
|
|
||
| & > a, | ||
| & > button { | ||
| display: flex; | ||
| align-items: center; | ||
|
Comment on lines
+186
to
+187
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| transition: all 0.3s; | ||
|
|
||
| &::after { | ||
|
|
@@ -203,7 +203,7 @@ | |
|
|
||
| & > a, | ||
| & > button { | ||
| display: block; | ||
| display: flex; | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -255,12 +255,6 @@ | |
| & > button { | ||
| background: #fff; | ||
| color: #555; | ||
| z-index: 101; | ||
|
|
||
| svg { | ||
| filter: invert(40%) sepia(0%) saturate(3773%) hue-rotate(315deg) | ||
| brightness(73%) contrast(81%); | ||
| } | ||
|
Comment on lines
-258
to
-263
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The The SVG filter is a far more complex method of updating the icon color; way easier to just switch the icon to use |
||
| } | ||
|
|
||
| nav { | ||
|
|
@@ -313,6 +307,8 @@ | |
| justify-content: space-between; | ||
| align-items: flex-start; | ||
|
|
||
| touch-action: none; | ||
|
|
||
|
Comment on lines
+310
to
+311
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the header is opened, we should not let the user scroll the page in the background. |
||
| @media (min-width: /* --content-width */ 50rem) { | ||
| justify-content: center; | ||
| justify-content: flex-start; | ||
|
|
@@ -327,21 +323,38 @@ | |
| .translation { | ||
| position: absolute; | ||
| height: 2rem; | ||
| top: calc(var(--vh) - 3rem); /* TODO: Why does bottom not work? */ | ||
| display: flex; | ||
| display: none; | ||
| bottom: calc(env(safe-area-inset-bottom) + 1rem); | ||
|
Comment on lines
-330
to
+327
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| width: 100%; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
|
|
||
| @media (max-width: /* --header-mobile-breakpoint */ 50rem) { | ||
| padding-left: 26px; | ||
| padding-right: 26px; | ||
| } | ||
|
|
||
| .open & { | ||
| display: flex; | ||
| } | ||
|
|
||
| @media (min-width: /* --content-width */ 50rem) { | ||
| top: initial; | ||
| display: flex; | ||
| bottom: initial; | ||
| height: 100%; | ||
| left: initial; | ||
| position: relative; | ||
| width: initial; | ||
| } | ||
| } | ||
|
|
||
| .translation { | ||
| @media (max-width: /* --header-mobile-breakpoint */ 50rem) { | ||
| /* Otherwise overlaps the social items in the dropdown header, blocking use */ | ||
| display: none !important; | ||
| } | ||
| } | ||
|
|
||
| .socialItem { | ||
| padding: 0 0.5rem; | ||
| } | ||
|
|
@@ -399,7 +412,6 @@ | |
| padding: 18px 23px 12px; | ||
| line-height: var(--header-height); | ||
| text-align: center; | ||
| z-index: 100; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Superfluous |
||
| opacity: 0.7; | ||
| cursor: pointer; | ||
| transition: opacity 250ms ease; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ | |
| color: #fff; | ||
| fill: rgba(255, 255, 255, 0.6); | ||
| cursor: pointer; | ||
| z-index: 560; | ||
| z-index: 460; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this was a typo. The slide-out sidebar has a
|
||
| transition: transform 0.3s; | ||
|
|
||
| &:after { | ||
|
|
||



Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Predates my involvement, but IIUC, this was a problem introduced when the banner was added. It seems like the idea was that the social icons would be at the bottom of the screen when the togglable header was expanded, however, it never took into account the banner height. As such, the icons were always clipped off the screen.
The handful of white pixels at the very bottom of the screen are our icons, but you obviously can't interact with them as-is.