mybuddy/dashboard/static_src/scss/cards.scss

124 lines
2.5 KiB
SCSS
Raw Normal View History

@use 'sass:map';
2021-11-13 13:38:25 +00:00
%card-header-text {
font-size: $h4-font-size;
font-weight: $headings-font-weight;
line-height: $headings-line-height;
}
2017-10-29 03:01:39 +00:00
.card-dashboard {
2021-11-13 13:38:25 +00:00
margin-bottom: $spacer;
2017-10-29 03:01:39 +00:00
.card-header {
2021-11-13 13:38:25 +00:00
@extend %card-header-text;
2017-10-29 03:01:39 +00:00
margin-bottom: 0;
}
.card-body {
.card-title {
2021-11-13 13:38:25 +00:00
@extend %card-header-text;
2017-10-29 03:01:39 +00:00
}
.card-text {
2021-11-13 13:38:25 +00:00
color: $text-muted;
2017-10-29 03:01:39 +00:00
}
// Offset horizontal padding in dashboard cards with a carousel.
.carousel {
margin-left: -$card-spacer-x;
margin-right: -$card-spacer-x;
padding-left: $card-spacer-x;
padding-right: $card-spacer-x;
}
2017-10-29 03:01:39 +00:00
}
.list-group {
.list-group-item {
color: $white;
}
}
2017-10-29 03:01:39 +00:00
}
.card-diaperchange {
border-color: map.get($theme-colors, 'danger');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
background-color: map.get($theme-colors, 'danger');
color: map.get($theme-colors, 'light');
2017-10-29 03:01:39 +00:00
}
.card-body {
color: map.get($theme-colors, 'danger');
2017-10-29 03:01:39 +00:00
}
2017-08-22 17:16:35 +00:00
.progress {
height: $progress-height * 2;
}
}
2017-10-29 03:01:39 +00:00
.card-feeding,
.card-pumping {
border-color: map.get($theme-colors, 'primary');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
background-color: map.get($theme-colors, 'primary');
color: map.get($theme-colors, 'light');
2017-10-29 03:01:39 +00:00
}
.card-body {
color: map.get($theme-colors, 'primary');
2020-02-15 22:14:48 +00:00
// Last feeding method header in card.
.last-feeding-method {
font-size: 2em;
}
2017-10-29 03:01:39 +00:00
}
.progress {
height: $progress-height * 2;
}
2017-10-29 03:01:39 +00:00
}
.card-sleep {
border-color: map.get($theme-colors, 'secondary');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
background-color: map.get($theme-colors, 'secondary');
color: map.get($theme-colors, 'light');
2017-10-29 03:01:39 +00:00
}
}
2021-11-13 13:38:25 +00:00
.card-statistics, .card-timer {
border-color: map.get($theme-colors, 'light');
.card-header {
background-color: map.get($theme-colors, 'light');
color: map.get($theme-colors, 'dark');
2021-11-13 13:38:25 +00:00
a {
color: map.get($theme-colors, 'dark');
2021-11-13 13:38:25 +00:00
}
}
.card-body {
color: map.get($theme-colors, 'light');
.container {
padding: 0;
}
}
}
2017-10-29 03:01:39 +00:00
.card-tummytime {
border-color: map.get($theme-colors, 'success');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
background-color: map.get($theme-colors, 'success');
color: map.get($theme-colors, 'light');
2017-10-29 03:01:39 +00:00
}
.card-body {
color: map.get($theme-colors, 'success');
2017-10-29 03:01:39 +00:00
}
}