2014-10-12 14:27:47 +04:00
|
|
|
.card {
|
|
|
|
|
|
|
|
/***** Make height equal to width (http://stackoverflow.com/a/6615994) ****/
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
.card-height-indicator {
|
|
|
|
margin-top: 100%;
|
|
|
|
}
|
|
|
|
.card-content {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************/
|
2014-10-18 18:17:31 +04:00
|
|
|
|
2014-10-12 14:27:47 +04:00
|
|
|
|
2014-10-13 13:51:37 +04:00
|
|
|
border-radius: 2px;
|
2015-11-21 17:56:29 +03:00
|
|
|
color: @mdb-card-body-text;
|
|
|
|
background: @mdb-card-body-background;
|
2014-10-12 14:27:47 +04:00
|
|
|
|
|
|
|
.shadow-z-2();
|
|
|
|
|
|
|
|
.card-image {
|
|
|
|
height: 60%;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2014-10-13 13:51:37 +04:00
|
|
|
border-top-left-radius: 2px;
|
|
|
|
border-top-right-radius: 2px;
|
2014-10-13 14:53:55 +04:00
|
|
|
pointer-events: none;
|
2014-10-12 14:27:47 +04:00
|
|
|
}
|
|
|
|
.card-image-headline {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 16px;
|
|
|
|
left: 18px;
|
2015-11-21 17:56:29 +03:00
|
|
|
color: @mdb-card-image-headline;
|
2014-10-12 14:27:47 +04:00
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-body {
|
|
|
|
height: 30%;
|
|
|
|
padding: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-footer {
|
|
|
|
height: 10%;
|
|
|
|
padding: 18px;
|
|
|
|
button {
|
|
|
|
margin: 0 !important;
|
|
|
|
position: relative;
|
|
|
|
bottom: 25px;
|
2014-10-18 18:17:31 +04:00
|
|
|
width: auto;
|
2014-10-12 14:27:47 +04:00
|
|
|
&:first-child {
|
|
|
|
left: -15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-10-13 13:51:37 +04:00
|
|
|
}
|