2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Info Box
|
|
|
|
//
|
2020-05-30 13:06:11 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
.info-box {
|
2018-04-14 23:33:53 +00:00
|
|
|
@include box-shadow($card-shadow);
|
|
|
|
@include border-radius($border-radius);
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $white;
|
2019-10-29 08:22:51 +00:00
|
|
|
display: flex;
|
|
|
|
margin-bottom: map-get($spacers, 3);
|
2019-06-28 08:02:07 +00:00
|
|
|
min-height: 80px;
|
|
|
|
padding: .5rem;
|
2019-07-28 17:16:16 +00:00
|
|
|
position: relative;
|
2020-05-08 13:01:04 +00:00
|
|
|
width: 100%;
|
2018-03-17 17:07:55 +00:00
|
|
|
|
|
|
|
.progress {
|
2019-07-18 14:22:11 +00:00
|
|
|
background-color: rgba($black, .125);
|
2015-10-31 21:00:16 +00:00
|
|
|
height: 2px;
|
2019-06-28 08:02:07 +00:00
|
|
|
margin: 5px 0;
|
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
.progress-bar {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
.info-box-icon {
|
|
|
|
@if $enable-rounded {
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
|
2019-10-29 08:22:51 +00:00
|
|
|
align-items: center;
|
2019-10-30 10:59:53 +00:00
|
|
|
display: flex;
|
2019-07-08 15:19:29 +00:00
|
|
|
font-size: 1.875rem;
|
2019-10-29 08:22:51 +00:00
|
|
|
justify-content: center;
|
2019-07-08 15:19:29 +00:00
|
|
|
text-align: center;
|
|
|
|
width: 70px;
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
> img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
.info-box-content {
|
2020-05-08 13:01:04 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2020-09-22 04:05:02 +00:00
|
|
|
line-height: 1.8;
|
2019-07-08 15:19:29 +00:00
|
|
|
flex: 1;
|
2020-09-22 04:05:02 +00:00
|
|
|
padding: 0 10px;
|
2019-07-08 15:19:29 +00:00
|
|
|
}
|
2016-10-22 19:32:28 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
.info-box-number {
|
|
|
|
display: block;
|
2020-05-08 13:01:04 +00:00
|
|
|
margin-top: .25rem;
|
2019-07-08 15:19:29 +00:00
|
|
|
font-weight: $font-weight-bold;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
.progress-description,
|
|
|
|
.info-box-text {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
@each $name, $color in $theme-colors {
|
|
|
|
.info-box {
|
|
|
|
.bg-#{$name},
|
|
|
|
.bg-gradient-#{$name} {
|
|
|
|
color: color-yiq($color);
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
.progress-bar {
|
|
|
|
background-color: color-yiq($color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.info-box-more {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-description {
|
|
|
|
margin: 0;
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
.col-xl-2 &,
|
|
|
|
.col-lg-2 &,
|
|
|
|
.col-md-2 & {
|
|
|
|
.progress-description {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-xl-3 &,
|
|
|
|
.col-lg-3 &,
|
|
|
|
.col-md-3 & {
|
|
|
|
.progress-description {
|
|
|
|
display: none;
|
2019-06-28 08:02:07 +00:00
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
.col-xl-2 &,
|
|
|
|
.col-lg-2 &,
|
|
|
|
.col-md-2 & {
|
|
|
|
.progress-description {
|
2019-07-18 14:22:11 +00:00
|
|
|
@include font-size(.75rem);
|
2019-07-08 15:19:29 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-xl-3 &,
|
|
|
|
.col-lg-3 &,
|
|
|
|
.col-md-3 & {
|
|
|
|
.progress-description {
|
2019-07-18 14:22:11 +00:00
|
|
|
@include font-size(.75rem);
|
2019-07-08 15:19:29 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
@include media-breakpoint-up(xl) {
|
|
|
|
.col-xl-2 &,
|
|
|
|
.col-lg-2 &,
|
|
|
|
.col-md-2 & {
|
|
|
|
.progress-description {
|
|
|
|
@include font-size(1rem);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-xl-3 &,
|
|
|
|
.col-lg-3 &,
|
|
|
|
.col-md-3 & {
|
|
|
|
.progress-description {
|
|
|
|
@include font-size(1rem);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
|
|
|
|
.dark-mode {
|
|
|
|
.info-box {
|
|
|
|
background-color: $dark;
|
|
|
|
color: $white;
|
2021-03-09 19:44:26 +00:00
|
|
|
@each $name, $color in $theme-colors-alt {
|
|
|
|
.info-box {
|
|
|
|
.bg-#{$name},
|
|
|
|
.bg-gradient-#{$name} {
|
|
|
|
color: color-yiq($color);
|
|
|
|
|
|
|
|
.progress-bar {
|
|
|
|
background-color: color-yiq($color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
}
|
|
|
|
}
|