2019-11-27 15:31:49 +07:00
|
|
|
/**
|
|
|
|
* Card (<article>)
|
|
|
|
*/
|
|
|
|
|
|
|
|
article {
|
2019-12-03 09:51:37 +07:00
|
|
|
margin: $spacing-block 0;
|
2019-11-27 15:31:49 +07:00
|
|
|
padding: $spacing-block $spacing-gutter;
|
2019-12-01 16:35:38 +07:00
|
|
|
overflow: hidden;
|
2019-12-03 09:51:37 +07:00
|
|
|
border-radius: $round;
|
2019-11-27 15:31:49 +07:00
|
|
|
background: var(--card-background);
|
|
|
|
box-shadow: var(--card-shadow);
|
|
|
|
|
|
|
|
@if map-get($breakpoints, "sm") {
|
|
|
|
@media (min-width: map-get($breakpoints, "sm")) {
|
|
|
|
@if map-get($spacing-factor, "sm") and $enable-responsive-spacings {
|
|
|
|
margin: ($spacing-block*map-get($spacing-factor, "sm")) 0;
|
|
|
|
padding: $spacing-block*map-get($spacing-factor, "sm");
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
margin: $spacing-block 0;
|
|
|
|
padding: $spacing-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@if map-get($breakpoints, "md") and
|
|
|
|
map-get($spacing-factor, "md") and
|
|
|
|
$enable-responsive-spacings {
|
|
|
|
|
|
|
|
@media (min-width: map-get($breakpoints, "md")) {
|
|
|
|
margin: ($spacing-block*map-get($spacing-factor, "md")) 0;
|
|
|
|
padding: $spacing-block*map-get($spacing-factor, "md");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@if map-get($breakpoints, "lg") and
|
|
|
|
map-get($spacing-factor, "lg") and
|
|
|
|
$enable-responsive-spacings {
|
|
|
|
|
|
|
|
@media (min-width: map-get($breakpoints, "lg")) {
|
|
|
|
margin: ($spacing-block*map-get($spacing-factor, "lg")) 0;
|
|
|
|
padding: $spacing-block*map-get($spacing-factor, "lg");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@if map-get($breakpoints, "xl") and
|
|
|
|
map-get($spacing-factor, "xl") and
|
|
|
|
$enable-responsive-spacings {
|
|
|
|
|
|
|
|
@media (min-width: map-get($breakpoints, "xl")) {
|
|
|
|
margin: ($spacing-block*map-get($spacing-factor, "xl")) 0;
|
|
|
|
padding: $spacing-block*map-get($spacing-factor, "xl");
|
|
|
|
}
|
|
|
|
}
|
2019-12-01 16:35:38 +07:00
|
|
|
|
|
|
|
// Remove last-child margin bottom
|
2019-12-02 12:42:25 +07:00
|
|
|
> *:not(header):not(footer):not(pre):last-child {
|
2019-12-01 16:35:38 +07:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2019-11-27 15:31:49 +07:00
|
|
|
}
|