_dashboard.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. .dashboard-container {
  2. padding: $dashboard-padding;
  3. width: 100%;
  4. }
  5. .page-dashboard {
  6. .main-view {
  7. background-image: none;
  8. }
  9. }
  10. .template-variable {
  11. color: $variable;
  12. }
  13. .row-tab {
  14. .dropdown-menu-right {
  15. top: 0;
  16. left: 33px;
  17. }
  18. }
  19. .row-tab-button {
  20. padding: 0px;
  21. cursor: pointer;
  22. vertical-align: middle;
  23. width: 30px;
  24. height: 30px;
  25. text-align: center;
  26. display: inline-block;
  27. line-height: 30px;
  28. background: $btn-success-bg;
  29. color: rgba(255,255,255,.90);
  30. }
  31. .row-button {
  32. width: 24px;
  33. float: left;
  34. cursor: pointer;
  35. line-height: 31px;
  36. background-color: $blue-dark;
  37. }
  38. .row-text {
  39. white-space: nowrap;
  40. text-transform: uppercase;
  41. font-weight: bold;
  42. font-size: 0.9em;
  43. text-align: center;
  44. line-height: 31px;
  45. height: 31px;
  46. }
  47. .row-close {
  48. padding: 0px;
  49. margin: 0px;
  50. background: $panel-bg;
  51. text-align: center;
  52. }
  53. .row-close-buttons {
  54. position: absolute;
  55. left: 0;
  56. }
  57. .row-open {
  58. margin-top: 5px;
  59. left: -30px;
  60. position: absolute;
  61. z-index: 100;
  62. transition: .10s left;
  63. transition-delay: .10s;
  64. &:hover {
  65. left: -12px;
  66. }
  67. }
  68. .row-control-inner {
  69. padding:0px;
  70. margin:0px;
  71. position:relative;
  72. }
  73. .hide-controls {
  74. padding: 0;
  75. .row-tab {
  76. display: none;
  77. }
  78. .add-row-panel-hint {
  79. display: none;
  80. }
  81. }
  82. .playlist-active {
  83. .add-row-panel-hint,
  84. .dashnav-refresh-action,
  85. .dashnav-zoom-out,
  86. .dashnav-action-icons,
  87. .dashnav-move-timeframe {
  88. display: none;
  89. }
  90. .grafana-menu-stop-playlist {
  91. display: list-item;
  92. }
  93. }
  94. div.flot-text {
  95. color: $text-color !important;
  96. }
  97. .panel {
  98. display: inline-block;
  99. float: left;
  100. }
  101. .panel-margin {
  102. margin: 0 0.4rem 0.8rem 0.4rem;
  103. display: block;
  104. }
  105. .panel-container {
  106. background-color: $panel-bg;
  107. position: relative;
  108. border: $panel-border;
  109. &:hover {
  110. .panel-actions {
  111. display: block;
  112. }
  113. }
  114. &.panel-transparent {
  115. background-color: transparent;
  116. border: none;
  117. }
  118. }
  119. .panel-content {
  120. padding: 0px 10px 5px 10px;
  121. }
  122. .panel-title-container {
  123. min-height: 9px;
  124. padding-top: 4px;
  125. cursor: pointer;
  126. }
  127. .panel-title {
  128. border: 0px;
  129. font-weight: $font-weight-semi-bold;
  130. position: relative;
  131. cursor: pointer;
  132. width: 100%;
  133. display: block;
  134. }
  135. .panel-links-btn {
  136. margin-left: 10px;
  137. display: none;
  138. }
  139. .panel-loading {
  140. position:absolute;
  141. top: -3px;
  142. right: 0px;
  143. z-index: 800;
  144. }
  145. .panel-header {
  146. text-align: center;
  147. }
  148. .panel-error {
  149. color: $white;
  150. position: absolute;
  151. left: 0;
  152. padding: 0px 17px 6px 5px;
  153. top: 0;
  154. z-index: 10;
  155. i {
  156. position: relative;
  157. top: -2px;
  158. }
  159. }
  160. .panel-error-arrow {
  161. width: 0;
  162. height: 0;
  163. position: absolute;
  164. border-left: 31px solid transparent;
  165. border-right: 30px solid transparent;
  166. border-bottom: 27px solid $panel-bg;
  167. left: 0;
  168. bottom: 0;
  169. }
  170. .panel-full-edit {
  171. margin-top: 20px;
  172. margin-bottom: 20px;
  173. }
  174. .panel-menu {
  175. z-index: 500;
  176. position: absolute;
  177. background: $tight-form-func-bg;
  178. border: 1px solid black;
  179. .panel-menu-row {
  180. white-space: nowrap;
  181. border-bottom: 1px solid black;
  182. &:last-child {
  183. border-bottom: none;
  184. }
  185. }
  186. .panel-menu-link, .panel-menu-icon {
  187. padding: 5px 10px;
  188. }
  189. .panel-menu-link {
  190. display: inline-block;
  191. border-right: 1px solid black;
  192. &:last-child {
  193. border: none;
  194. }
  195. }
  196. .dropdown-menu {
  197. text-align: left;
  198. }
  199. }
  200. .panel-highlight {
  201. box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 5px rgba(82,168,236,10.8)
  202. }
  203. .on-drag-hover {
  204. .panel-container {
  205. box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 5px rgba(82,168,236,10.8)
  206. }
  207. }
  208. .panel-drop-zone {
  209. display: none;
  210. .panel-container {
  211. border: 1px solid $dark-3;
  212. }
  213. }
  214. .panel-time-info {
  215. font-weight: bold;
  216. float: right;
  217. margin-right: 15px;
  218. color: $blue;
  219. font-size: 85%;
  220. position: absolute;
  221. top: 0;
  222. right: 0;
  223. }
  224. .resize-panel-handle {
  225. cursor: se-resize;
  226. position: absolute;
  227. bottom: 0;
  228. right: 0;
  229. width: 15px;
  230. height: 15px;
  231. display: block;
  232. }
  233. .dashboard-header {
  234. font-family: $headings-font-family;
  235. font-size: $font-size-h3;
  236. text-align: center;
  237. span {
  238. display: inline-block;
  239. @include brand-bottom-border();
  240. padding: 0.5rem .5rem .2rem .5rem;
  241. }
  242. }