mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Adjust header nav item centering in responsive modes
This commit is contained in:
parent
d9a1a8affd
commit
a7f0df16ea
1 changed files with 26 additions and 15 deletions
|
@ -2068,12 +2068,22 @@ main.ebooks nav ol li.highlighted:nth-last-child(2)::after{
|
|||
}
|
||||
|
||||
body > header ul{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
margin: 1rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
body > header ul li:nth-child(2){
|
||||
display: contents;
|
||||
}
|
||||
|
||||
body > header ul li:nth-child(2)::after{
|
||||
content: "";
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body > header ul li{
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -2081,10 +2091,6 @@ main.ebooks nav ol li.highlighted:nth-last-child(2)::after{
|
|||
body > header ul li:nth-child(odd)::before{
|
||||
display: none;
|
||||
}
|
||||
|
||||
body > header ul li:nth-child(2n){
|
||||
justify-self: start;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 500px){
|
||||
|
@ -2237,25 +2243,30 @@ main.ebooks nav ol li.highlighted:nth-last-child(2)::after{
|
|||
form[action="/ebooks"] button{
|
||||
grid-row: 6;
|
||||
}
|
||||
|
||||
|
||||
body > header ul li:nth-child(2n)::after{
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media(max-width: 380px){
|
||||
body > header ul{
|
||||
grid-template-columns: 1fr;
|
||||
justify-content: center;
|
||||
grid-gap: calc(1rem - 5px); /* subtract invisible 5px bottom border */
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
body > header ul li::before{
|
||||
display: none;
|
||||
}
|
||||
|
||||
body > header ul li,
|
||||
body > header ul li:nth-child(2n){
|
||||
text-align: center;
|
||||
justify-self: center;
|
||||
body > header ul li + li{
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
body > header ul li,
|
||||
body > header ul li:nth-child(2n){
|
||||
height: 1rem;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@supports not(hyphens: auto){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue