_info-box.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. //
  2. // Component: Info Box
  3. //
  4. .info-box {
  5. @include box-shadow($lte-card-shadow);
  6. @include border-radius($border-radius);
  7. position: relative;
  8. display: flex;
  9. width: 100%;
  10. min-height: 80px;
  11. padding: .5rem;
  12. margin-bottom: map-get($spacers, 3);
  13. color: var(--#{$prefix}body-color);
  14. background-color: var(--#{$prefix}body-bg);
  15. .progress {
  16. height: 2px;
  17. margin: 5px 0;
  18. background-color: rgba(var(--#{$lte-prefix}card-variant-color-rgb), .125);
  19. .progress-bar {
  20. background-color: var(--#{$lte-prefix}card-variant-color);
  21. }
  22. }
  23. .info-box-icon {
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. width: 70px;
  28. font-size: 1.875rem;
  29. text-align: center;
  30. @include border-radius($border-radius);
  31. > img {
  32. max-width: 100%;
  33. }
  34. }
  35. .info-box-content {
  36. display: flex;
  37. flex: 1;
  38. flex-direction: column;
  39. justify-content: center;
  40. padding: 0 10px;
  41. line-height: 1.8;
  42. }
  43. .info-box-number {
  44. display: block;
  45. margin-top: .25rem;
  46. font-weight: $font-weight-bold;
  47. }
  48. .progress-description,
  49. .info-box-text {
  50. display: block;
  51. overflow: hidden;
  52. text-overflow: ellipsis;
  53. white-space: nowrap;
  54. }
  55. .info-box-more {
  56. display: block;
  57. }
  58. .progress-description {
  59. margin: 0;
  60. }
  61. @include media-breakpoint-up(md) {
  62. .col-xl-2 &,
  63. .col-lg-2 &,
  64. .col-md-2 & {
  65. .progress-description {
  66. display: none;
  67. }
  68. }
  69. .col-xl-3 &,
  70. .col-lg-3 &,
  71. .col-md-3 & {
  72. .progress-description {
  73. display: none;
  74. }
  75. }
  76. }
  77. @include media-breakpoint-up(lg) {
  78. .col-xl-2 &,
  79. .col-lg-2 &,
  80. .col-md-2 & {
  81. .progress-description {
  82. @include font-size(.75rem);
  83. display: block;
  84. }
  85. }
  86. .col-xl-3 &,
  87. .col-lg-3 &,
  88. .col-md-3 & {
  89. .progress-description {
  90. @include font-size(.75rem);
  91. display: block;
  92. }
  93. }
  94. }
  95. @include media-breakpoint-up(xl) {
  96. .col-xl-2 &,
  97. .col-lg-2 &,
  98. .col-md-2 & {
  99. .progress-description {
  100. @include font-size(1rem);
  101. display: block;
  102. }
  103. }
  104. .col-xl-3 &,
  105. .col-lg-3 &,
  106. .col-md-3 & {
  107. .progress-description {
  108. @include font-size(1rem);
  109. display: block;
  110. }
  111. }
  112. }
  113. }