admin-hub.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. .circle(@size, @background_color) {
  2. display: inline-block;
  3. background-color: @background_color;
  4. border-radius: 50%;
  5. width: @size;
  6. height: @size;
  7. text-align: center;
  8. padding-top: @size / 6.4;
  9. img {
  10. height: @size - @size / 3.2;
  11. }
  12. }
  13. .hub-header {
  14. h2 {
  15. display: inline-block;
  16. }
  17. a {
  18. color: @ol-dark-green;
  19. }
  20. i {
  21. font-size: 30px;
  22. }
  23. .dropdown {
  24. margin-right: 10px;
  25. }
  26. }
  27. .admin-item {
  28. position: relative;
  29. margin-bottom: 60px;
  30. .section-title {
  31. text-transform: capitalize;
  32. }
  33. .alert-danger {
  34. color: @ol-red;
  35. }
  36. }
  37. .hidden-chart-section {
  38. display: none;
  39. }
  40. .hub-circle {
  41. .circle(160px, @accent-color-secondary);
  42. padding-top: 50px;
  43. color: white;
  44. }
  45. .hub-circle-number {
  46. display: block;
  47. font-size: 36px;
  48. font-weight: 900;
  49. line-height: 1;
  50. }
  51. .hub-big-number {
  52. float: left;
  53. font-size: 32px;
  54. font-weight: 900;
  55. line-height: 40px;
  56. color: @accent-color-secondary;
  57. }
  58. .hub-big-number,
  59. .hub-number-label {
  60. display: block;
  61. }
  62. .hub-metric-link {
  63. position: absolute;
  64. top: 9px;
  65. right: 0;
  66. a {
  67. color: @accent-color-secondary;
  68. }
  69. i {
  70. margin-right: 5px;
  71. }
  72. }
  73. .custom-donut-container {
  74. svg {
  75. max-width: 700px;
  76. margin: auto;
  77. }
  78. .chart-center-text {
  79. font-family: @font-family-sans-serif;
  80. font-size: 40px;
  81. font-weight: bold;
  82. fill: @accent-color-secondary;
  83. text-anchor: middle;
  84. }
  85. .nv-legend-text {
  86. font-family: @font-family-sans-serif;
  87. font-size: 14px;
  88. }
  89. }
  90. .chart-no-center-text {
  91. .chart-center-text {
  92. display: none;
  93. }
  94. }
  95. .superscript {
  96. font-size: @font-size-large;
  97. }
  98. .admin-page {
  99. summary {
  100. // firefox does not show markers for block items
  101. display: list-item;
  102. }
  103. }
  104. .material-switch {
  105. input[type='checkbox'] {
  106. display: none;
  107. &:checked + label::before {
  108. background: inherit;
  109. opacity: 0.5;
  110. }
  111. &:checked + label::after {
  112. background: inherit;
  113. left: 20px;
  114. }
  115. }
  116. label {
  117. cursor: pointer;
  118. height: 0;
  119. position: relative;
  120. width: 40px;
  121. &:before {
  122. background: rgb(0, 0, 0);
  123. box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  124. border-radius: 8px;
  125. content: '';
  126. height: 16px;
  127. margin-top: -2px;
  128. position: absolute;
  129. opacity: 0.3;
  130. transition: all 0.2s ease-in-out;
  131. width: 40px;
  132. }
  133. &:after {
  134. background: rgb(255, 255, 255);
  135. border-radius: 16px;
  136. box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  137. content: '';
  138. height: 24px;
  139. left: -4px;
  140. margin-top: -2px;
  141. position: absolute;
  142. top: -4px;
  143. transition: all 0.2s ease-in-out;
  144. width: 24px;
  145. }
  146. }
  147. }