1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /*
- * Component: Info Box
- * -------------------
- */
-
- .info-box {
- @extend .d-flex;
- @extend .mb-3;
- @include box-shadow($card-shadow);
- @include border-radius($border-radius);
- background: $white;
- min-height: 80px;
- padding: .5rem;
- .progress {
- background-color: rgba($black, 0.125);
- height: 2px;
- margin: 5px 0;
- .progress-bar {
- background-color: $white;
- }
- }
- }
- .info-box-icon {
- @extend .d-flex;
- @extend .align-items-center;
- @extend .justify-content-center;
- @if $enable-rounded {
- border-radius: $border-radius;
- }
- display: block;
- font-size: 30px;
- text-align: center;
- width: 70px;
- > img {
- max-width: 100%;
- }
- }
- .info-box-content {
- flex: 1;
- padding: 5px 10px;
- }
- .info-box-number {
- display: block;
- font-weight: $font-weight-bold;
- }
- .progress-description,
- .info-box-text {
- display: block;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- @each $name, $color in $theme-colors {
- .info-box {
- .bg-#{$name},
- .bg-gradient-#{$name} {
- color: color-yiq($color);
- .progress-bar {
- background-color: color-yiq($color);
- }
- }
- }
- }
- .info-box-more {
- display: block;
- }
- .progress-description {
- margin: 0;
- }
|