- Top bar uses flex until it's wide enough, then grid
- Fix button active style when top bar has colour
This commit is contained in:
Cadence Ember 2020-03-27 17:02:55 +13:00
parent 842cf22300
commit 99f3a5dbcc
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 13 additions and 10 deletions

View File

@ -13,17 +13,17 @@
line-height: 60px
background-color: var(--card-bg-color)
-webkit-box-shadow: 0px 2px 1px 0px var(--primary-shadow-color)
display: grid
grid-template-columns: 1fr auto 1fr
display: flex
align-items: center
align-content: center
@media only screen and (min-width: 901px)
display: grid
grid-template-columns: 1fr 440px 1fr
@include top-nav-is-colored
background-color: var(--primary-color)
.menuIcon // the hamburger menu button
@include top-nav-is-colored
background-color: var(--primary-color-active)
@media only screen and (max-width: 680px)
display: none
@ -51,6 +51,9 @@
background-color: var(--tertiary-text-color)
transition: background 0.2s ease-in
@include top-nav-is-colored
background-color: var(--primary-color-active)
.side // parts of the top nav either side of the search bar
display: flex
align-items: center
@ -93,6 +96,9 @@
background-image: var(--logo-text-bar-color)
.middle // the middle part of the top nav which contains the search bar
max-width: 440px
flex: 1
.searchContainer
display: flex
align-items: center
@ -105,10 +111,7 @@
background-color: var(--side-nav-color)
.searchInput
width: 420px
@media only screen and (max-width: 680px)
flex: 1
flex: 1
.searchFilters
position: absolute