_dashboard.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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: block;
  60. padding-bottom: 2px;
  61. }
  62. .panel-title-text {
  63. cursor: pointer;
  64. font-weight: $font-weight-semi-bold;
  65. &:hover {
  66. color: $link-hover-color;
  67. }
  68. }
  69. .panel-menu-container {
  70. width: 1px;
  71. height: 19px;
  72. display: inline-block;
  73. }
  74. .panel-menu-toggle {
  75. color: $text-color-weak;
  76. cursor: pointer;
  77. padding: 3px 5px;
  78. visibility: hidden;
  79. opacity: 0;
  80. position: absolute;
  81. width: 16px;
  82. height: 16px;
  83. left: 1px;
  84. top: 4px;
  85. &:hover {
  86. color: $link-hover-color;
  87. }
  88. }
  89. .panel-loading {
  90. position: absolute;
  91. top: -3px;
  92. right: 0px;
  93. z-index: 800;
  94. font-size: $font-size-sm;
  95. color: $text-color-weak;
  96. }
  97. .panel-header {
  98. text-align: center;
  99. &:hover {
  100. transition: background-color 0.1s ease-in-out;
  101. background-color: $panel-header-hover-bg;
  102. }
  103. }
  104. .panel-menu {
  105. top: 25px;
  106. left: -100px;
  107. }
  108. .panel-info-corner-inner {
  109. width: 0;
  110. height: 0;
  111. position: absolute;
  112. left: 0;
  113. bottom: 0;
  114. }
  115. @mixin panel-corner-color($corner-bg) {
  116. .panel-info-corner-inner {
  117. border-left: 27px solid $corner-bg;
  118. border-right: none;
  119. border-bottom: 27px solid transparent;
  120. }
  121. }
  122. .panel-info-corner {
  123. color: $text-muted;
  124. cursor: pointer;
  125. position: absolute;
  126. display: none;
  127. left: 0;
  128. width: 27px;
  129. height: 27px;
  130. top: 0;
  131. z-index: 1;
  132. .fa {
  133. position: relative;
  134. top: -4px;
  135. left: -6px;
  136. font-size: 75%;
  137. z-index: 1;
  138. }
  139. &--info {
  140. display: block;
  141. @include panel-corner-color(lighten($panel-bg, 4%));
  142. .fa:before {
  143. content: '\f129';
  144. }
  145. }
  146. &--links {
  147. display: block;
  148. @include panel-corner-color(lighten($panel-bg, 4%));
  149. .fa {
  150. left: -5px;
  151. }
  152. .fa:before {
  153. content: '\f08e';
  154. }
  155. }
  156. &--error {
  157. display: block;
  158. color: $text-color;
  159. @include panel-corner-color($popover-error-bg);
  160. .fa:before {
  161. content: '\f12a';
  162. }
  163. }
  164. }
  165. .panel-hover-highlight {
  166. .panel-menu-toggle {
  167. visibility: visible;
  168. transition: opacity 0.1s ease-in 0.2s;
  169. opacity: 1;
  170. }
  171. }
  172. .panel-time-info {
  173. font-weight: bold;
  174. float: right;
  175. margin-right: 15px;
  176. color: $blue;
  177. font-size: 85%;
  178. position: absolute;
  179. top: 4px;
  180. right: 0;
  181. }
  182. .dashboard-header {
  183. font-family: $headings-font-family;
  184. font-size: $font-size-h3;
  185. text-align: center;
  186. overflow: hidden;
  187. position: relative;
  188. top: -10px;
  189. span {
  190. display: inline-block;
  191. @include brand-bottom-border();
  192. padding: 0.5rem 0.5rem 0.2rem 0.5rem;
  193. }
  194. }
  195. .panel-full-edit {
  196. margin: $dashboard-padding (-$dashboard-padding) 0 (-$dashboard-padding);
  197. }