_dashboard.scss 3.8 KB

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