_dashboard.scss 3.4 KB

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