fix(styling): adjust card heights and prepare header for new dropdowns

This commit is contained in:
Benedikt Rötsch
2017-10-09 13:24:07 +02:00
committed by Benedikt Rötsch
parent 8e6171cb74
commit 6c6d81873a
5 changed files with 112 additions and 30 deletions

View File

@@ -945,24 +945,43 @@ input[type="reset"]:focus,
}
.grid-list {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
margin: 0 -11px;
}
.grid-list__item {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0 11px 22px;
@media (min-width: 700px) {
.grid-list {
-webkit-box-flex: 0;
-ms-flex: 0 0 calc(50% - 22px);
flex: 0 0 calc(50% - 22px);
margin: 0 -11px;
}
}
.grid-list__item {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
margin-bottom: 22px;
}
@media (min-width: 700px) {
.grid-list__item {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-flex: 0;
-ms-flex: 0 0 calc(50% - 22px);
flex: 0 0 calc(50% - 22px);
margin: 0 11px 22px;
}
}
.header {
@@ -1006,9 +1025,17 @@ display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin-bottom: 11px;
}
@@ -1018,11 +1045,22 @@ display: flex;
-webkit-box-flex: 0;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
margin-bottom: 0;
}
}
.header__upper-first div + div {
margin: 11px 0 0;
}
@media (min-width: 700px) {
.header__upper-first div + div {
margin-left: 22px;
margin: 0 0 0 11px;
}
}
@@ -1033,9 +1071,16 @@ display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
@media (min-width: 700px) {
@@ -1044,10 +1089,21 @@ display: flex;
-webkit-box-flex: 0;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
}
.header__upper-second div + div {
margin: 11px 0 0;
}
@media (min-width: 700px) {
.header__upper-second div + div {
margin-left: 22px;
margin: 0 0 0 11px;
}
}
@@ -1221,7 +1277,7 @@ display: flex;
.footer {
margin-top: 22px 0;
padding-top: 22px;
padding: 22px 0;
}
.footer__upper {
@@ -1729,8 +1785,8 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
.course-card__title {
-webkit-box-flex: 0;
-ms-flex: 0 1 12vh;
flex: 0 1 12vh;
-ms-flex: 0 1 15vh;
flex: 0 1 15vh;
max-height: 120px;
margin: 0;
overflow: hidden;
@@ -1747,9 +1803,9 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
.course-card__description {
-webkit-box-flex: 0;
-ms-flex: 0 1 20vh;
flex: 0 1 20vh;
max-height: 180px;
-ms-flex: 0 1 15vh;
flex: 0 1 15vh;
max-height: 120px;
overflow: hidden;
margin: 0 0 22px;