_dashboard.scss 3.8 KB

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