_dashboard.scss 4.1 KB

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