admin-hub.less 2.6 KB

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