/*
Card
====
description:
------------
a distinct peace piece of content usually displayed in lists (decks of cards)
the card components should visually define its own space (border, padding)
the space between cards should come from its container (grid, deck, masonry) or utility classes
expected markup:
----------------
*/
$card-padding: 40px !default;
$card-background: transparent !default;
$card-color: transparent !default;
$card-border-width: 0px !default;
$card-border-style: solid !default;
$card-border-color: #DDDDDD !default;
$card-radius: 0 !default;
.c-card {
height: 100%;
display: inline-block;
vertical-align: top;
padding: $card-padding;
color: $card-color;
background: $card-background;
@if ($card-border-width != 0) {
border: $card-border-width $card-border-style $card-border-color;
}
@if ($card-radius != 0) {
border-radius: $card-radius;
}
}
.c-card__media {
img {
width: 100%;
display: block;
}
}
.c-card__footer {
margin-top: auto;
}
.c-card--inverse {
// cards that have an inversed color scheme or image used as background
position: relative;
background: $card-color;
color: $card-background;
.c-card__media {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
}
.c-card--stack {
// @todo see WUpdates 'surface' class
}
.c-card:nth-child(4n-2), .c-card:nth-child(4n-1) {
width: 66%;
}
.c-card:nth-child(4n), .c-card:nth-child(4n+1) {
width: 33%;
}
.c-card .entry-content {
max-width: 428px;
}
article:nth-child(1) {
.c-hero__image {
width: 100vw !important;
}
}
.entry-title a {
@extend %fs50 !optional;
}
.entry-thumbnail {
margin-bottom: 32px;
}
.separator:after{
content:"";
border-top:2px solid #0300FF;
padding: 2px 25px;
margin: 4px 20px;
display: inline-block;
transform: rotate(180deg);
}