_dashboard.scss 3.4 KB

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