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

@@ -35,7 +35,7 @@
}
@element title {
flex: 0 1 12vh;
flex: 0 1 15vh;
max-height: 120px;
margin: 0;
overflow: hidden;
@@ -51,8 +51,8 @@
}
@element description {
flex: 0 1 20vh;
max-height: 180px;
flex: 0 1 15vh;
max-height: 120px;
overflow: hidden;
margin: 0 0 var(--grid-gutter);

View File

@@ -1,6 +1,6 @@
@block footer {
margin-top: var(--grid-gutter) 0;
padding-top: var(--grid-gutter);
padding: var(--grid-gutter) 0;
@element upper {
display: flex;

View File

@@ -23,14 +23,24 @@
@element upper-first {
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
margin-bottom: calc(var(--grid-gutter) / 2);
@media (--breakpoint-desktop) {
flex: 0 1 auto;
flex-direction: row;
margin-bottom: 0;
& div + div {
margin-left: var(--grid-gutter);
}
& div + div {
margin: calc(var(--grid-gutter) / 2) 0 0;
@media (--breakpoint-desktop) {
margin: 0 0 0 calc(var(--grid-gutter) / 2);
}
}
}
@@ -38,13 +48,20 @@
@element upper-second {
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
@media (--breakpoint-desktop) {
flex: 0 1 auto;
& div + div {
margin-left: var(--grid-gutter);
flex-direction: row;
}
& div + div {
margin: calc(var(--grid-gutter) / 2) 0 0;
@media (--breakpoint-desktop) {
margin: 0 0 0 calc(var(--grid-gutter) / 2);
}
}
}

View File

@@ -1,12 +1,21 @@
@block grid-list {
display: flex;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 0 calc(var(--grid-gutter) / 2 * -1);
@media (--breakpoint-desktop) {
flex: 0 0 calc(50% - var(--grid-gutter));
margin: 0 calc(var(--grid-gutter) / 2 * -1);
}
@element item {
box-sizing: border-box;
margin: 0 calc(var(--grid-gutter) / 2) var(--grid-gutter);
flex: 0 0 calc(50% - var(--grid-gutter));
flex: 0 0 100%;
margin-bottom: var(--grid-gutter);
@media (--breakpoint-desktop) {
box-sizing: border-box;
flex: 0 0 calc(50% - var(--grid-gutter));
margin: 0 calc(var(--grid-gutter) / 2) var(--grid-gutter);
}
}
}