_dashboard.scss 4.2 KB

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