_info-box.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. padding: .5rem;
  11. min-height: 80px;
  12. background: $white;
  13. .progress {
  14. background-color: rgba(0, 0, 0, 0.125);
  15. margin: 5px 0;
  16. height: 2px;
  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. width: 70px;
  31. text-align: center;
  32. font-size: 30px;
  33. > img {
  34. max-width: 100%;
  35. }
  36. }
  37. .info-box-content {
  38. padding: 5px 10px;
  39. flex: 1;
  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. white-space: nowrap;
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. }
  52. @each $name, $color in $theme-colors {
  53. .info-box.bg-#{$name},
  54. .info-box.bg-#{$name}-gradient {
  55. color: color-yiq($color);
  56. .progress-bar {
  57. background-color: color-yiq($color);
  58. }
  59. }
  60. }
  61. .info-box-more {
  62. display: block;
  63. }
  64. .progress-description {
  65. margin: 0;
  66. }