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.
qdouze2-wordpress-theme/scss/components/_cards.scss

74 lines
1.3 KiB
SCSS
Raw Normal View History

2022-12-17 19:46:29 +01:00
/*
* 2. Cards and containers
* All elements that are supposed to contain other stuff
*
*
*/
2023-05-02 11:51:10 +02:00
$card-bigpad: $lineheight_rel;
$card-smallpad: $lineheight_rel / 4;
2022-12-17 19:46:29 +01:00
2022-12-17 22:34:02 +01:00
.card {
@include panel($card-bigpad);
display: flex;
flex-direction: column;
color:$color-font;
2022-12-17 19:46:29 +01:00
&-body {
padding:0!important;
}
&-header {
2022-12-17 22:34:02 +01:00
@include panel-header($card-bigpad);
2022-12-17 19:46:29 +01:00
.fa {
margin-right: 0.5em;
}
}
}
/* CARD LIST - Make a list part of a card */
@mixin list-symbol($symbol) {
li.list-element {
list-style: none;
&::before {
font-family: "ForkAwesome";
content:$symbol;
2023-05-02 11:51:10 +02:00
padding-right: $lineheight_rel / 4;
2022-12-17 19:46:29 +01:00
}
}
}
@mixin list-color($color) {
li.list-element {
&::before {
color: $color;
}
}
}
ul.card-list, .card > ul {
padding:0;
margin:0;
li.list-element {
2023-05-02 11:51:10 +02:00
line-height:$lineheight_rel / 2;
padding: $lineheight_rel / 4, $lineheight_rel / 4, $lineheight_rel / 4, $lineheight_rel / 2;
2022-12-17 19:46:29 +01:00
margin:0;
}
}
.list {
&-check {@include list-symbol("\f00c");}
&-cross {@include list-symbol("\f00d");}
&-danger{@include list-color($color-danger);}
&-success{@include list-color($color-success);}
}
2022-12-17 22:34:02 +01:00
.smallcard {
2022-12-17 19:46:29 +01:00
&-header {
2022-12-17 22:34:02 +01:00
@include panel-header($card-bigpad);
2022-12-17 19:46:29 +01:00
}
}