_dashboard.scss 4.1 KB

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