dashboard.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. .dashboard__counters {
  2. display: flex;
  3. flex-wrap: wrap;
  4. margin: 0 -5px;
  5. margin-bottom: 20px;
  6. & > div {
  7. box-sizing: border-box;
  8. flex: 0 0 33.333%;
  9. padding: 0 5px;
  10. margin-bottom: 10px;
  11. & > div,
  12. & > a {
  13. padding: 20px;
  14. background: lighten($ui-base-color, 4%);
  15. border-radius: 4px;
  16. box-sizing: border-box;
  17. height: 100%;
  18. }
  19. & > a {
  20. text-decoration: none;
  21. color: inherit;
  22. display: block;
  23. &:hover,
  24. &:focus,
  25. &:active {
  26. background: lighten($ui-base-color, 8%);
  27. }
  28. }
  29. }
  30. &__num,
  31. &__text {
  32. text-align: center;
  33. font-weight: 500;
  34. font-size: 24px;
  35. color: $primary-text-color;
  36. font-family: $font-display, sans-serif;
  37. margin-bottom: 20px;
  38. line-height: 30px;
  39. }
  40. &__text {
  41. font-size: 18px;
  42. }
  43. &__label {
  44. font-size: 14px;
  45. color: $darker-text-color;
  46. text-align: center;
  47. font-weight: 500;
  48. }
  49. }
  50. .dashboard {
  51. display: grid;
  52. grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  53. grid-gap: 10px;
  54. @media screen and (max-width: 1350px) {
  55. grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  56. }
  57. &__item {
  58. &--span-double-column {
  59. grid-column: span 2;
  60. }
  61. &--span-double-row {
  62. grid-row: span 2;
  63. }
  64. h4 {
  65. padding-top: 20px;
  66. }
  67. }
  68. &__quick-access {
  69. display: flex;
  70. align-items: baseline;
  71. border-radius: 4px;
  72. background: $ui-highlight-color;
  73. color: $primary-text-color;
  74. transition: all 100ms ease-in;
  75. font-size: 14px;
  76. padding: 0 16px;
  77. line-height: 36px;
  78. height: 36px;
  79. text-decoration: none;
  80. margin-bottom: 4px;
  81. &:active,
  82. &:focus,
  83. &:hover {
  84. background-color: lighten($ui-highlight-color, 10%);
  85. transition: all 200ms ease-out;
  86. }
  87. &.positive {
  88. background: lighten($ui-base-color, 4%);
  89. color: $valid-value-color;
  90. }
  91. &.negative {
  92. background: lighten($ui-base-color, 4%);
  93. color: $error-value-color;
  94. }
  95. span {
  96. flex: 1 1 auto;
  97. }
  98. .fa {
  99. flex: 0 0 auto;
  100. }
  101. strong {
  102. font-weight: 700;
  103. }
  104. }
  105. }