File: D:/HostingSpaces/marisrental/boldt.tech/resources/sass/site/5-Components/_components.card.scss
.c-card{
display: block;
position: relative;
text-decoration: none;
vertical-align: top;
white-space: normal;
}
.c-card--long {
min-height: 505px;
background-color: palette(dark);
@include flex(inline center column);
flex-shrink: 1;
flex-grow: 1;
min-width: 200px;
@include mq(null, 1425) {
flex-shrink: 1;
min-width: auto;
max-width: none;
width: column(9, 10);
min-height: auto;
margin-top: 60px !important;
margin-right: auto;
}
@include mq(null, 1200) {
width: 100%;
}
@include mq(1425) {
margin-top: 0;
}
.c-card + & {
@include mq(null, 1425) {
margin-left: 0;
}
}
.c-card__image {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
z-index: 1;
&:after {
content: '';
display: block;
height: 60px;
position: absolute;
bottom: 0;
left: 0;
z-index: 0;
width: 100%;
background: linear-gradient(180deg, transparent 0%, palette(dark) 100%) 0 0;
}
}
.c-card__title {
width: 50%;
text-align: center;
padding-top: 30px;
margin-bottom: -40px;
position: relative;
z-index: 2;
@include mq(1425) {
padding-top: 60px;
}
}
svg {
margin-top: 30px;
position: relative;
z-index: 2;
@include mq(null, 1425) {
margin-top: 20px;
position: relative;
z-index: 5;
margin-bottom: -50px;
}
}
}
.c-card__image {
position: relative;
display: block;
background-color: palette(dark);
.c-card__image-ratio & {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-size: cover;
background-position: center;
}
}
.c-card__image-ratio {
position: relative;
height: 0;
padding-bottom: calc((426 / 360) * 100%);
}
.c-card__image--placeholder {
min-height: 120px;
background-image: url('/img/projectcard_bg.svg');
background-size: cover;
background-position: center;
}
.c-card__body {
position: relative;
width: column(2.5, 3);
margin-top: -60px;
margin-left: auto;
&:after {
content: '';
display: block;
height: 60px;
width: 100%;
background: linear-gradient(-45deg, transparent 0, transparent 59px, palette(dark) 60px) -35px 0;
background-size: calc(100% + 60px);
}
}
.c-card__inner-body {
padding: 30px 30px 0 30px;
min-height: 140px;
background-color: palette(dark);
}
.c-card__title {
margin-bottom: 30px;
@include font-family(base);
@include font(mid, 32, 600);
}
.c-card__content {
color: palette(text);
}
.c-card__action {
color: palette(text);
margin: 0;
}
// Modifier for centering the image & the action button
.c-card--center {
text-align: center;
}
.c-card--unbox {
border-radius: 0;
box-shadow: none;
.c-card__image {
border-radius: 10px;
overflow: hidden;
}
.c-card__body {
padding: 30px 0 0;
}
.c-card__title {
@include font-size(mid);
}
.c-card__content {
display: none;
}
}