dashboard.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. .grafana-row {
  2. margin-bottom: 5px;
  3. }
  4. .row-tab {
  5. .dropdown-menu-right {
  6. top: 0;
  7. left: 33px;
  8. }
  9. }
  10. .row-tab-button {
  11. padding: 0px;
  12. cursor: pointer;
  13. vertical-align: middle;
  14. width: 30px;
  15. height: 30px;
  16. text-align: center;
  17. display: inline-block;
  18. line-height: 30px;
  19. background: @btnSuccessBackground;
  20. color: rgba(255,255,255,.90);
  21. }
  22. .row-button {
  23. width: 30px;
  24. float: left;
  25. cursor: pointer;
  26. line-height: 31px;
  27. background-color: @blueDark;
  28. }
  29. .row-text {
  30. white-space: nowrap;
  31. text-transform: uppercase;
  32. font-weight: bold;
  33. font-size: 0.9em;
  34. text-align: center;
  35. line-height: 31px;
  36. height: 31px;
  37. }
  38. .row-close {
  39. padding: 0px;
  40. margin: 0px;
  41. background: @grafanaPanelBackground;
  42. text-align: center;
  43. }
  44. .row-close-buttons {
  45. position: absolute;
  46. left: 0;
  47. }
  48. .row-open {
  49. margin-top: 5px;
  50. left: -28px;
  51. position: absolute;
  52. z-index: 100;
  53. transition: .10s left;
  54. transition-delay: .10s;
  55. &:hover {
  56. left: -12px;
  57. }
  58. }
  59. div.flot-text {
  60. color: @textColor !important;
  61. }
  62. .panel {
  63. display: inline-block;
  64. float: left;
  65. vertical-align: top;
  66. position: relative;
  67. }
  68. .panel-margin {
  69. margin: 5px;
  70. display: block;
  71. }
  72. .panel-container {
  73. background-color: @grafanaPanelBackground;
  74. position: relative;
  75. border: @grafanaPanelBorder;
  76. &:hover {
  77. .panel-actions {
  78. display: block;
  79. }
  80. }
  81. &.panel-transparent {
  82. background-color: transparent;
  83. border: none;
  84. }
  85. }
  86. .panel-content {
  87. padding: 0px 10px 5px 10px;
  88. }
  89. .panel-title-container {
  90. min-height: 5px;
  91. padding-top: 4px;
  92. cursor: pointer;
  93. }
  94. .panel-title {
  95. border: 0px;
  96. font-weight: bold;
  97. position: relative;
  98. cursor: pointer;
  99. width: 100%;
  100. display: block;
  101. }
  102. .panel-links-btn {
  103. margin-left: 10px;
  104. display: none;
  105. }
  106. .panel-loading {
  107. position:absolute;
  108. top: -3px;
  109. right: 0px;
  110. z-index: 800;
  111. }
  112. .panel-header {
  113. text-align: center;
  114. }
  115. .panel-error {
  116. color: @white;
  117. position: absolute;
  118. left: 0;
  119. padding: 0px 17px 6px 5px;
  120. top: 0;
  121. z-index: 10;
  122. i {
  123. position: relative;
  124. top: -2px;
  125. }
  126. }
  127. .panel-error-arrow {
  128. width: 0;
  129. height: 0;
  130. position: absolute;
  131. border-left: 31px solid transparent;
  132. border-right: 30px solid transparent;
  133. border-bottom: 27px solid @grafanaPanelBackground;
  134. left: 0;
  135. bottom: 0;
  136. }
  137. .panel-fullscreen {
  138. .panel-title-container {
  139. padding: 8px;
  140. }
  141. }
  142. .panel-full-edit {
  143. margin-top: 20px;
  144. margin-bottom: 20px;
  145. }
  146. .panel-menu {
  147. z-index: 500;
  148. position: absolute;
  149. background: @grafanaTargetFuncBackground;
  150. border: 1px solid black;
  151. .panel-menu-row {
  152. white-space: nowrap;
  153. border-bottom: 1px solid black;
  154. &:last-child {
  155. border-bottom: none;
  156. }
  157. }
  158. .panel-menu-link, .panel-menu-icon {
  159. padding: 5px 10px;
  160. }
  161. .panel-menu-link {
  162. display: inline-block;
  163. border-right: 1px solid black;
  164. &:last-child {
  165. border: none;
  166. }
  167. }
  168. .dropdown-menu {
  169. text-align: left;
  170. }
  171. }
  172. .panel-highlight {
  173. .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236, 0.8)");
  174. }
  175. .on-drag-hover {
  176. .panel-container {
  177. .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236, 0.8)");
  178. }
  179. }
  180. .panel-drop-zone {
  181. display: none;
  182. .panel-container {
  183. border: 1px solid @grayDark;
  184. }
  185. }
  186. .panel-time-info {
  187. font-weight: bold;
  188. float: right;
  189. margin-right: 15px;
  190. color: @blue;
  191. font-size: 85%;
  192. position: absolute;
  193. top: 0;
  194. right: 0;
  195. }
  196. .resize-panel-handle {
  197. cursor: se-resize;
  198. position: absolute;
  199. bottom: 0;
  200. right: 0;
  201. width: 15px;
  202. height: 15px;
  203. display: block;
  204. }