mybuddy/dashboard/static_src/scss/cards.scss

112 lines
2.2 KiB
SCSS
Raw Normal View History

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
}
}
.card-diaperchange {
2021-11-13 13:38:25 +00:00
border-color: theme-color('danger');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
2021-11-13 13:38:25 +00:00
background-color: theme-color('danger');
color: theme-color('light');
2017-10-29 03:01:39 +00:00
}
.card-body {
2021-11-13 13:38:25 +00:00
color: theme-color('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 {
2021-11-13 13:38:25 +00:00
border-color: theme-color('primary');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
2021-11-13 13:38:25 +00:00
background-color: theme-color('primary');
color: theme-color('light');
2017-10-29 03:01:39 +00:00
}
.card-body {
2021-11-13 13:38:25 +00:00
color: theme-color('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
}
}
.card-sleep {
2021-11-13 13:38:25 +00:00
border-color: theme-color('secondary');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
2021-11-13 13:38:25 +00:00
background-color: theme-color('secondary');
color: theme-color('light');
2017-10-29 03:01:39 +00:00
}
}
2021-11-13 13:38:25 +00:00
.card-statistics, .card-timer {
border-color: theme-color('light');
.card-header {
2021-11-13 13:38:25 +00:00
background-color: theme-color('light');
color: theme-color('dark');
a {
color: theme-color('dark');
}
}
.card-body {
2021-11-13 13:38:25 +00:00
color: theme-color('light');
.container {
padding: 0;
}
}
}
2017-10-29 03:01:39 +00:00
.card-tummytime {
2021-11-13 13:38:25 +00:00
border-color: theme-color('success');
2017-10-29 03:01:39 +00:00
2021-08-04 20:36:00 +00:00
.card-header, .card-header a {
2021-11-13 13:38:25 +00:00
background-color: theme-color('success');
color: theme-color('light');
2017-10-29 03:01:39 +00:00
}
.card-body {
2021-11-13 13:38:25 +00:00
color: theme-color('success');
2017-10-29 03:01:39 +00:00
}
}