AdminLTE/build/scss/_info-box.scss

80 lines
1.2 KiB
SCSS
Raw Normal View History

2015-10-31 22:00:16 +01:00
/*
* Component: Info Box
* -------------------
*/
.info-box {
2018-03-17 18:07:55 +01:00
@extend .d-flex;
@extend .mb-3;
2018-04-15 01:33:53 +02:00
@include box-shadow($card-shadow);
@include border-radius($border-radius);
2018-03-17 18:07:55 +01:00
padding: .5rem;
2016-10-22 21:32:28 +02:00
min-height: 80px;
2018-03-17 18:07:55 +01:00
background: $white;
.progress {
2016-10-22 21:32:28 +02:00
background-color: rgba(0, 0, 0, 0.125);
margin: 5px 0;
2015-10-31 22:00:16 +01:00
height: 2px;
2018-03-17 18:07:55 +01:00
.progress-bar {
background-color: $white;
}
2015-10-31 22:00:16 +01:00
}
}
.info-box-icon {
2018-03-17 18:07:55 +01:00
@extend .d-flex;
@extend .align-items-center;
@extend .justify-content-center;
@if $enable-rounded {
border-radius: $border-radius;
}
2015-10-31 22:00:16 +01:00
display: block;
2018-03-17 18:07:55 +01:00
width: 70px;
2015-10-31 22:00:16 +01:00
text-align: center;
2018-03-17 18:07:55 +01:00
font-size: 30px;
2016-10-22 21:32:28 +02:00
2015-10-31 22:00:16 +01:00
> img {
max-width: 100%;
}
}
.info-box-content {
padding: 5px 10px;
2018-03-17 18:07:55 +01:00
flex: 1;
2015-10-31 22:00:16 +01:00
}
.info-box-number {
display: block;
2018-03-17 18:07:55 +01:00
font-weight: $font-weight-bold;
2015-10-31 22:00:16 +01:00
}
.progress-description,
.info-box-text {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2018-03-17 18:07:55 +01:00
@each $name, $color in $theme-colors {
.info-box.bg-#{$name},
2019-06-19 14:44:12 +02:00
.info-box.bg-gradient-#{$name} {
2018-03-17 18:07:55 +01:00
color: color-yiq($color);
.progress-bar {
background-color: color-yiq($color);
}
}
2015-10-31 22:00:16 +01:00
}
.info-box-more {
display: block;
}
.progress-description {
margin: 0;
}