Implement basic responsivity

master
Emil Miler 2 years ago
parent c90f4b7cf2
commit 7d5f8e7156

@ -1,5 +1,10 @@
@import "fonts"; @import "fonts";
$width-wrap: 960px;
$width-narrow: ($width-wrap/3)*2;
*, *:before, *:after { *, *:before, *:after {
box-sizing: border-box; box-sizing: border-box;
} }
@ -22,14 +27,19 @@ body>header {
.img { .img {
display: block; display: block;
width: 100%; width: 100%;
height: 10rem; height: 8rem;
background: background:
url(/logo.svg), url(/logo.svg),
linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6)), linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
url(/header.jpg); url(/header.jpg);
background-size: auto 60%, cover, cover; background-size: auto 60%, cover, cover;
background-position: 3em, center, center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
@media only screen and (min-width: $width-narrow) {
height: 10rem;
background-position: 3em, center, center;
}
} }
} }
@ -60,4 +70,8 @@ body>nav {
body>main { body>main {
margin-top: 3em; margin-top: 3em;
padding: 0 1em; padding: 0 1em;
@media only screen and (min-width: $width-wrap) {
padding: 0;
}
} }

Loading…
Cancel
Save