forked from kittv/web
1
0
Fork 0

Responzivní primární navigace

content
Emil Miler 4 years ago
parent 21c4d5bbcb
commit 23243099cd

@ -47,6 +47,7 @@ header {
a.logo { a.logo {
height: 100%; height: 100%;
margin: 0 1em;
img { height: inherit; } img { height: inherit; }
} }
@ -63,7 +64,6 @@ header {
ul { ul {
display: flex; display: flex;
position: relative;
a { a {
display: flex; display: flex;
@ -83,9 +83,9 @@ header {
@include top-border(var(--color)); @include top-border(var(--color));
@include shadow; @include shadow;
display: grid; display: grid;
position: absolute;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
column-gap: 1em; column-gap: 1em;
position: absolute;
left: 0; left: 0;
top: 100%; top: 100%;
width: 100%; width: 100%;
@ -127,6 +127,7 @@ header {
} }
nav.primary { nav.primary {
position: relative;
font-weight: bold; font-weight: bold;
font-size: 1.2em; font-size: 1.2em;
@ -584,6 +585,32 @@ table {
@media screen and (max-width: 950px){ @media screen and (max-width: 950px){
header { padding: 2em 0 0 0 }
header .wrap {
flex-direction: column;
align-items: flex-start;
height: auto;
.logo { height: 4em }
section {
height: auto;
width: 100%;
padding: 0;
}
nav.secondary { display: none }
nav.primary {
margin-top: 2em;
padding: 1em;
box-shadow: 0px 0px 20px #00000029;
font-size: 1em;
ul { justify-content: space-between }
ul>li>div { margin-top: 0 }
}
}
main .blocks { grid-template-columns: 1fr } main .blocks { grid-template-columns: 1fr }
main .websites { grid-template-columns: 1fr 1fr 1fr } main .websites { grid-template-columns: 1fr 1fr 1fr }
main .people-list .group { grid-template-columns: 1fr } main .people-list .group { grid-template-columns: 1fr }

Loading…
Cancel
Save