_dashboard.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. .dashboard-container {
  2. padding: $dashboard-padding $dashboard-padding 0 $dashboard-padding;
  3. width: 100%;
  4. height: 100%;
  5. box-sizing: border-box;
  6. }
  7. .template-variable {
  8. color: $variable;
  9. }
  10. div.flot-text {
  11. color: $text-color !important;
  12. }
  13. .panel {
  14. height: 100%;
  15. }
  16. .dashboard-solo {
  17. .footer,
  18. .sidemenu {
  19. display: none;
  20. }
  21. }
  22. .panel-solo {
  23. position: fixed;
  24. bottom: 0;
  25. right: 0;
  26. margin: 0;
  27. left: 0;
  28. top: 0;
  29. .panel-container {
  30. border: none;
  31. }
  32. .panel-menu-toggle,
  33. .panel-menu {
  34. display: none;
  35. }
  36. }
  37. .panel-height-helper {
  38. display: block;
  39. height: 100%;
  40. }
  41. .panel-container {
  42. background-color: $panel-bg;
  43. border: $panel-border;
  44. position: relative;
  45. border-radius: 3px;
  46. height: 100%;
  47. width: 100%;
  48. &.panel-transparent {
  49. background-color: transparent;
  50. border: none;
  51. }
  52. &:hover {
  53. .panel-menu-toggle {
  54. visibility: visible;
  55. transition: opacity 0.1s ease-in 0.2s;
  56. opacity: 1;
  57. }
  58. }
  59. &--is-editing {
  60. height: auto;
  61. }
  62. &--absolute {
  63. position: absolute;
  64. }
  65. }
  66. .panel-content {
  67. padding: $panel-padding;
  68. height: calc(100% - 27px);
  69. position: relative;
  70. // Fixes scrolling on mobile devices
  71. overflow: auto;
  72. }
  73. // For larger screens, set back to hidden to avoid double scroll bars
  74. @include media-breakpoint-up(md) {
  75. .panel-content {
  76. overflow: hidden;
  77. }
  78. }
  79. .panel-title-container {
  80. min-height: 9px;
  81. cursor: move;
  82. word-wrap: break-word;
  83. display: block;
  84. }
  85. .panel-title {
  86. border: 0px;
  87. font-weight: $font-weight-semi-bold;
  88. position: relative;
  89. width: 100%;
  90. display: flex;
  91. flex-wrap: nowrap;
  92. justify-content: center;
  93. padding: 4px 0 4px;
  94. }
  95. .panel-title-text {
  96. text-overflow: ellipsis;
  97. overflow: hidden;
  98. white-space: nowrap;
  99. max-width: calc(100% - 38px);
  100. cursor: pointer;
  101. font-weight: $font-weight-semi-bold;
  102. &:hover {
  103. color: $link-hover-color;
  104. }
  105. .panel-has-alert & {
  106. max-width: calc(100% - 54px);
  107. }
  108. }
  109. .panel-menu-container {
  110. width: 1px;
  111. height: 19px;
  112. display: inline-block;
  113. }
  114. .panel-menu-toggle {
  115. color: $text-color-weak;
  116. cursor: pointer;
  117. padding: 3px 5px;
  118. visibility: hidden;
  119. opacity: 0;
  120. width: 16px;
  121. height: 16px;
  122. left: 1px;
  123. top: 2px;
  124. &:hover {
  125. color: $link-hover-color;
  126. }
  127. }
  128. .panel-loading {
  129. position: absolute;
  130. top: -3px;
  131. right: 0px;
  132. z-index: 800;
  133. font-size: $font-size-sm;
  134. color: $text-color-weak;
  135. }
  136. .panel-empty {
  137. display: flex;
  138. align-items: center;
  139. height: 100%;
  140. width: 100%;
  141. p {
  142. text-align: center;
  143. color: $text-muted;
  144. font-size: $font-size-lg;
  145. width: 100%;
  146. }
  147. }
  148. .panel-header {
  149. &:hover {
  150. transition: background-color 0.1s ease-in-out;
  151. background-color: $panel-header-hover-bg;
  152. }
  153. }
  154. .panel-menu {
  155. top: 25px;
  156. left: -100px;
  157. }
  158. .panel-info-corner-inner {
  159. width: 0;
  160. height: 0;
  161. position: absolute;
  162. left: 0;
  163. bottom: 0;
  164. }
  165. @mixin panel-corner-color($corner-bg) {
  166. .panel-info-corner-inner {
  167. border-left: 27px solid $corner-bg;
  168. border-right: none;
  169. border-bottom: 27px solid transparent;
  170. }
  171. }
  172. .panel-info-corner {
  173. color: $text-muted;
  174. cursor: pointer;
  175. position: absolute;
  176. display: none;
  177. left: 0;
  178. width: 27px;
  179. height: 27px;
  180. top: 0;
  181. z-index: 1;
  182. .fa {
  183. position: relative;
  184. top: -2px;
  185. left: 6px;
  186. font-size: 75%;
  187. z-index: 1;
  188. }
  189. &--info {
  190. display: block;
  191. @include panel-corner-color(lighten($panel-corner, 4%));
  192. .fa:before {
  193. content: '\f129';
  194. }
  195. }
  196. &--links {
  197. display: block;
  198. @include panel-corner-color(lighten($panel-corner, 4%));
  199. .fa {
  200. left: 4px;
  201. }
  202. .fa:before {
  203. content: '\f08e';
  204. }
  205. }
  206. &--error {
  207. display: block;
  208. color: $white;
  209. @include panel-corner-color($popover-error-bg);
  210. .fa:before {
  211. content: '\f12a';
  212. }
  213. }
  214. }
  215. .panel-time-info {
  216. font-weight: bold;
  217. float: right;
  218. margin-right: 15px;
  219. color: $blue;
  220. font-size: 85%;
  221. position: absolute;
  222. top: 4px;
  223. right: 0;
  224. }
  225. .dashboard-header {
  226. font-family: $headings-font-family;
  227. font-size: $font-size-h3;
  228. text-align: center;
  229. overflow: hidden;
  230. position: relative;
  231. top: -10px;
  232. span {
  233. display: inline-block;
  234. @include brand-bottom-border();
  235. padding: 0.5rem 0.5rem 0.2rem 0.5rem;
  236. }
  237. }
  238. .panel-full-edit {
  239. padding-top: $dashboard-padding;
  240. }
  241. .dashboard-loading {
  242. height: 60vh;
  243. display: flex;
  244. align-items: center;
  245. justify-content: center;
  246. .alert {
  247. max-width: 600px;
  248. min-width: 600px;
  249. }
  250. }
  251. .dashboard-loading__text {
  252. font-size: $font-size-lg;
  253. }