_dashboard.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. position: absolute;
  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-header {
  137. &:hover {
  138. transition: background-color 0.1s ease-in-out;
  139. background-color: $panel-header-hover-bg;
  140. }
  141. }
  142. .panel-menu {
  143. top: 25px;
  144. left: -100px;
  145. }
  146. .panel-info-corner-inner {
  147. width: 0;
  148. height: 0;
  149. position: absolute;
  150. left: 0;
  151. bottom: 0;
  152. }
  153. @mixin panel-corner-color($corner-bg) {
  154. .panel-info-corner-inner {
  155. border-left: 27px solid $corner-bg;
  156. border-right: none;
  157. border-bottom: 27px solid transparent;
  158. }
  159. }
  160. .panel-info-corner {
  161. color: $text-muted;
  162. cursor: pointer;
  163. position: absolute;
  164. display: none;
  165. left: 0;
  166. width: 27px;
  167. height: 27px;
  168. top: 0;
  169. z-index: 1;
  170. .fa {
  171. position: relative;
  172. top: -2px;
  173. left: 6px;
  174. font-size: 75%;
  175. z-index: 1;
  176. }
  177. &--info {
  178. display: block;
  179. @include panel-corner-color(lighten($panel-bg, 4%));
  180. .fa:before {
  181. content: '\f129';
  182. }
  183. }
  184. &--links {
  185. display: block;
  186. @include panel-corner-color(lighten($panel-bg, 4%));
  187. .fa {
  188. left: 4px;
  189. }
  190. .fa:before {
  191. content: '\f08e';
  192. }
  193. }
  194. &--error {
  195. display: block;
  196. color: $text-color;
  197. @include panel-corner-color($popover-error-bg);
  198. .fa:before {
  199. content: '\f12a';
  200. }
  201. }
  202. }
  203. .panel-time-info {
  204. font-weight: bold;
  205. float: right;
  206. margin-right: 15px;
  207. color: $blue;
  208. font-size: 85%;
  209. position: absolute;
  210. top: 4px;
  211. right: 0;
  212. }
  213. .dashboard-header {
  214. font-family: $headings-font-family;
  215. font-size: $font-size-h3;
  216. text-align: center;
  217. overflow: hidden;
  218. position: relative;
  219. top: -10px;
  220. span {
  221. display: inline-block;
  222. @include brand-bottom-border();
  223. padding: 0.5rem 0.5rem 0.2rem 0.5rem;
  224. }
  225. }
  226. .panel-full-edit {
  227. padding-top: $dashboard-padding;
  228. }