Further card styling fixes.
Adds padding to menu and makes the card a flexbox, so subelements can expand.master
parent
bd6a2b626c
commit
fcc7835e51
|
@ -17,6 +17,8 @@
|
||||||
@import "../variables";
|
@import "../variables";
|
||||||
|
|
||||||
.mdl-card {
|
.mdl-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
font-size: $card-font-size;
|
font-size: $card-font-size;
|
||||||
min-height: $card-height;
|
min-height: $card-height;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -96,9 +98,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mdl-card--expand {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.mdl-card__menu {
|
.mdl-card__menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 16px;
|
||||||
top: 0;
|
top: 16px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue