|
.header { |
|
font-family: var(--font-2); |
|
position: sticky; |
|
top: 0; |
|
background-color: var(--medium-grey); |
|
box-shadow: 0 var(--small) var(--small) var(--light-grey); |
|
padding: var(--medium); |
|
z-index: 2; |
|
} |
|
|
|
.header__wrapper { |
|
max-width: 40em; |
|
width: 100%; |
|
padding: var(--medium) var(--medium) 0 var(--medium); |
|
margin: 0 auto; |
|
} |
|
|
|
.header__title { |
|
background-color: var(--dark-grey); |
|
text-align: center; |
|
font-size: 2.5rem; |
|
padding: 1rem; |
|
border-radius: var(--large); |
|
margin-bottom: 0.3em; |
|
box-shadow: 0 0 var(--small) var(--lighter-grey); |
|
line-height: 0.9; |
|
} |
|
|
|
.header__buttons { |
|
display: flex; |
|
flex-wrap: wrap; |
|
justify-content: center; |
|
gap: var(--medium); |
|
} |
|
|
|
.header__info { |
|
display: flex; |
|
font-size: 0.9rem; |
|
margin-top: 1em; |
|
align-items: center; |
|
justify-content: space-between; |
|
min-height: 32px; |
|
} |
|
|
|
.header__switch-container { |
|
display: flex; |
|
align-items: center; |
|
} |
|
|
|
.header__switch-label { |
|
margin: 0; |
|
color: var(--lighter-grey); |
|
} |
|
|
|
.header__switch-label--selected { |
|
color: white; |
|
} |
|
|
|
.header__checkbox { |
|
height: 0; |
|
width: 0; |
|
visibility: hidden; |
|
} |
|
|
|
.header__switch { |
|
cursor: pointer; |
|
width: 36px; |
|
height: 20px; |
|
margin-right: 6px; |
|
background: var(--light-grey); |
|
border-radius: 100px; |
|
position: relative; |
|
} |
|
|
|
.header__switch:after { |
|
content: ''; |
|
position: absolute; |
|
top: 2px; |
|
left: 2px; |
|
width: 16px; |
|
height: 16px; |
|
background: white; |
|
border-radius: 90px; |
|
transition: background-color 0.2s; |
|
} |
|
|
|
.header__checkbox:checked + .header__switch { |
|
background: var(--lighter-grey); |
|
} |
|
|
|
.header__checkbox:checked + .header__switch:after { |
|
left: calc(100% - 2px); |
|
transform: translateX(-100%); |
|
} |
|
|
|
.header__switch:active:after { |
|
width: 18px; |
|
height: 18px; |
|
top: 1px; |
|
} |
|
|
|
.header__time { |
|
visibility: hidden; |
|
} |
|
|
|
.header__time--visible { |
|
visibility: visible; |
|
} |
|
|
|
@media (min-width: 640px) { |
|
.header__title { |
|
font-size: 3rem; |
|
} |
|
|
|
.header__dropdown--mobile-only { |
|
display: none; |
|
} |
|
} |
|
|
|
|
|
@media (max-width: 640px) { |
|
.header { |
|
padding: var(--small); |
|
} |
|
|
|
.header__wrapper { |
|
padding: var(--small) var(--small) 0 var(--small); |
|
} |
|
|
|
.header__title { |
|
font-size: 1.75rem; |
|
padding: 0.6rem; |
|
} |
|
|
|
.header__info { |
|
margin-top: 0.3em; |
|
} |
|
|
|
.header__buttons { |
|
display: none; |
|
} |
|
} |
|
|
|
.header__dropdown { |
|
background-color: var(--lighter-grey); |
|
padding: 0.3em; |
|
border-radius: 16px; |
|
font-family: var(--font-1); |
|
outline: none; |
|
} |
|
|
|
.header__dropdown-container { |
|
display: flex; |
|
align-items: center; |
|
font-family: var(--font-2); |
|
} |
|
|
|
.header__dropdown-label { |
|
margin: 0 0.3em 0 0; |
|
} |
|
|