-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop is= on navMenuButton, simplify nav and shell CSS
- Loading branch information
1 parent
c714f8c
commit ef5a35a
Showing
10 changed files
with
56 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.pc-header { | ||
position: sticky; | ||
top: 0; | ||
background-color: var(--background-default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,17 @@ | ||
.pc-shell { | ||
/* Ensure page takes at least full height */ | ||
display: flex; | ||
flex-direction: column; | ||
align-self: stretch; | ||
min-height: var(--shell-min-size, 100vh); | ||
} | ||
|
||
/* Main shell content grows */ | ||
.pc-shell > .pc-shell__content { | ||
flex-grow: 1; | ||
} | ||
|
||
.pc-shell__content { | ||
flex-grow: 1; | ||
background-color: var(--background-alt-grey); | ||
} | ||
|
||
/* Ensure all other shell elements match the main content's size */ | ||
:where(.pc-shell, .pc-shell-mobile) > * { | ||
.pc-shell__element { | ||
/* Grow to match the content's size */ | ||
align-self: stretch; | ||
} | ||
|
||
@media screen and (max-width: 840px) { | ||
.pc-shell-mobile { | ||
display: flex; | ||
flex-direction: column; | ||
min-height: var(--shell-min-size, 100vh); | ||
} | ||
|
||
.pc-shell-mobile > .pc-shell__content { | ||
flex-grow: 1; | ||
} | ||
|
||
.pc-shell-mobile > * { | ||
align-self: stretch; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,3 @@ | |
display: grid; | ||
place-items: center; | ||
} | ||
|
||
.pc-relative { | ||
position: relative; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters