_info-box.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Component: Info Box
  3. * -------------------
  4. */
  5. .info-box {
  6. @extend .d-flex;
  7. @extend .mb-3;
  8. @include box-shadow($card-shadow);
  9. @include border-radius($border-radius);
  10. background: $white;
  11. min-height: 80px;
  12. padding: .5rem;
  13. .progress {
  14. background-color: rgba($black, 0.125);
  15. height: 2px;
  16. margin: 5px 0;
  17. .progress-bar {
  18. background-color: $white;
  19. }
  20. }
  21. }
  22. .info-box-icon {
  23. @extend .d-flex;
  24. @extend .align-items-center;
  25. @extend .justify-content-center;
  26. @if $enable-rounded {
  27. border-radius: $border-radius;
  28. }
  29. display: block;
  30. font-size: 30px;
  31. text-align: center;
  32. width: 70px;
  33. > img {
  34. max-width: 100%;
  35. }
  36. }
  37. .info-box-content {
  38. flex: 1;
  39. padding: 5px 10px;
  40. }
  41. .info-box-number {
  42. display: block;
  43. font-weight: $font-weight-bold;
  44. }
  45. .progress-description,
  46. .info-box-text {
  47. display: block;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. white-space: nowrap;
  51. }
  52. @each $name, $color in $theme-colors {
  53. .info-box {
  54. .bg-#{$name},
  55. .bg-gradient-#{$name} {
  56. color: color-yiq($color);
  57. .progress-bar {
  58. background-color: color-yiq($color);
  59. }
  60. }
  61. }
  62. }
  63. .info-box-more {
  64. display: block;
  65. }
  66. .progress-description {
  67. margin: 0;
  68. }