_dashboard.scss 3.5 KB

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