This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
kspace-wordpress-theme/scss/components/_cards.scss

55 lines
1.1 KiB
SCSS
Raw Normal View History

$card-bigpad: $lineheight_rel * 1.25;
$card-smallpad: $lineheight_rel / 4;
2020-12-30 19:11:12 +01:00
.card {
@include panel($card-bigpad);
display: flex;
flex-direction: column;
color:$color-font;
2020-12-30 19:11:12 +01:00
&-body {
padding:0!important;
}
&-header {
@include panel-header($card-bigpad);
2023-10-13 09:11:42 +02:00
.icon {
margin-right: 0.25em;
2020-12-30 19:11:12 +01:00
}
2023-05-20 12:02:34 +02:00
font-family: $basefont;
2023-10-13 09:11:42 +02:00
color: var(--text-color-contrast);
&::before {
background-color: var(--accent-color);
}
2020-12-30 19:11:12 +01:00
}
}
@mixin list-symbol($symbol) {
li.list-element {
list-style: none;
&::before {
font-family: "ForkAwesome";
content:$symbol;
padding-right: $lineheight_rel / 4;
2020-12-30 19:11:12 +01:00
}
}
}
@mixin list-color($color) {
li.list-element {
&::before {
color: $color;
}
}
}
ul.card-list, .card > ul {
2020-12-30 19:11:12 +01:00
padding:0;
margin:0;
li.list-element {
line-height:$lineheight_rel / 2;
padding: $lineheight_rel / 4, $lineheight_rel / 4, $lineheight_rel / 4, $lineheight_rel / 2;
2020-12-30 19:11:12 +01:00
margin:0;
}
}