First steps towards responsive radar

This commit is contained in:
Mathias Schopmans
2017-04-03 11:53:26 +02:00
parent b4a7b4d21f
commit cba33dfbee
5 changed files with 16 additions and 2 deletions

View File

@@ -14,6 +14,10 @@
--color-brand: #F59134; --color-brand: #F59134;
} }
@custom-media --until-sm (max-width: 30em);
@custom-media --until-md (max-width: 48em);
@custom-media --until-lg (max-width: 61.875em);
@font-face { @font-face {
font-family: 'DIN'; font-family: 'DIN';
src: url('/assets/fonts/clanot-news.otf'); src: url('/assets/fonts/clanot-news.otf');

View File

@@ -1,4 +1,5 @@
.item-list { .item-list {
margin: 0 0 25px;
&__header { &__header {
margin-bottom: 20px; margin-bottom: 20px;
} }

View File

@@ -1,8 +1,8 @@
.page { .page {
width: 1200px; max-width: 1200px;
min-height: 100%; min-height: 100%;
margin: 0 auto; margin: 0 auto;
padding: 0 10px; padding: 0 15px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;

View File

@@ -6,5 +6,8 @@
&__quadrant { &__quadrant {
flex: 0 0 45%; flex: 0 0 45%;
margin-bottom: 40px; margin-bottom: 40px;
@media (--until-lg) {
flex-basis: 100%;
}
} }
} }

View File

@@ -5,11 +5,17 @@
&__rings { &__rings {
display: flex; display: flex;
flex-wrap: wrap;
} }
&__ring { &__ring {
box-sizing: border-box; box-sizing: border-box;
padding: 0 8px; padding: 0 8px;
flex: 0 0 25%; flex: 0 0 25%;
margin: 0 0 25px;
@media (--until-sm) {
flex-basis: 50%;
}
} }
} }