_dashboard.scss 4.2 KB

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