dashboard.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. margin-bottom: 20px;
  37. line-height: 30px;
  38. }
  39. &__text {
  40. font-size: 18px;
  41. }
  42. &__label {
  43. font-size: 14px;
  44. color: $darker-text-color;
  45. text-align: center;
  46. font-weight: 500;
  47. }
  48. }
  49. .dashboard {
  50. display: grid;
  51. grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  52. grid-gap: 10px;
  53. @media screen and (max-width: 1350px) {
  54. grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  55. }
  56. &__item {
  57. &--span-double-column {
  58. grid-column: span 2;
  59. }
  60. &--span-double-row {
  61. grid-row: span 2;
  62. }
  63. h4 {
  64. padding-top: 20px;
  65. }
  66. }
  67. &__quick-access {
  68. display: flex;
  69. align-items: baseline;
  70. border-radius: 4px;
  71. background: darken($ui-highlight-color, 2%);
  72. color: $primary-text-color;
  73. transition: all 100ms ease-in;
  74. font-size: 14px;
  75. padding: 0 16px;
  76. line-height: 36px;
  77. height: 36px;
  78. text-decoration: none;
  79. margin-bottom: 4px;
  80. &:active,
  81. &:focus,
  82. &:hover {
  83. background-color: $ui-highlight-color;
  84. transition: all 200ms ease-out;
  85. }
  86. &.positive {
  87. background: lighten($ui-base-color, 4%);
  88. color: $valid-value-color;
  89. }
  90. &.negative {
  91. background: lighten($ui-base-color, 4%);
  92. color: $error-value-color;
  93. }
  94. span {
  95. flex: 1 1 auto;
  96. }
  97. .fa {
  98. flex: 0 0 auto;
  99. }
  100. strong {
  101. font-weight: 700;
  102. }
  103. }
  104. }