grafana.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. @import "login.less";
  2. @import "submenu.less";
  3. @import "graph.less";
  4. @import "bootstrap-tagsinput.less";
  5. @import "tables_lists.less";
  6. @import "search.less";
  7. @import "panel.less";
  8. @import "forms.less";
  9. @import "singlestat.less";
  10. @import "tightform.less";
  11. @import "sidemenu.less";
  12. @import "navbar.less";
  13. @import "gfbox.less";
  14. @import "dashlist.less";
  15. @import "admin.less";
  16. @import "validation.less";
  17. @import "fonts.less";
  18. .row-control-inner {
  19. padding:0px;
  20. margin:0px;
  21. position:relative;
  22. }
  23. .hide-controls {
  24. padding: 0;
  25. .row-tab {
  26. display: none;
  27. }
  28. .add-row-panel-hint {
  29. display: none;
  30. }
  31. }
  32. .playlist-active {
  33. .grafana-menu-zoom-out,
  34. .add-row-panel-hint,
  35. .grafana-menu-refresh,
  36. .top-nav-dashboards-btn,
  37. .top-nav-dash-actions {
  38. display:none;
  39. }
  40. .grafana-menu-stop-playlist {
  41. display: list-item;
  42. }
  43. }
  44. .row-button {
  45. width: 24px;
  46. }
  47. .modal {
  48. max-width: 800px;
  49. left: 0;
  50. right: 0;
  51. margin-left: auto;
  52. margin-right: auto;
  53. top: 20%;
  54. }
  55. .dashboard-fullscreen {
  56. .main-view-container {
  57. overflow: hidden;
  58. height: 0;
  59. padding: 0;
  60. .row-control-inner {
  61. display: none;
  62. }
  63. }
  64. }
  65. .histogram-chart {
  66. position:relative;
  67. }
  68. .scrollable {
  69. max-height: 300px;
  70. overflow: auto;
  71. }
  72. //
  73. // Srollbars
  74. //
  75. ::-webkit-scrollbar {
  76. width: 8px;
  77. height: 8px;
  78. }
  79. ::-webkit-scrollbar:hover {
  80. height: 8px;
  81. }
  82. ::-webkit-scrollbar-button:start:decrement,
  83. ::-webkit-scrollbar-button:end:increment { display: none; }
  84. ::-webkit-scrollbar-button:horizontal:decrement { display: none; }
  85. ::-webkit-scrollbar-button:horizontal:increment { display: none; }
  86. ::-webkit-scrollbar-button:vertical:decrement { display: none; }
  87. ::-webkit-scrollbar-button:vertical:increment { display: none; }
  88. ::-webkit-scrollbar-button:horizontal:decrement:active { background-image: none; }
  89. ::-webkit-scrollbar-button:horizontal:increment:active { background-image: none; }
  90. ::-webkit-scrollbar-button:vertical:decrement:active { background-image: none; }
  91. ::-webkit-scrollbar-button:vertical:increment:active {background-image: none; }
  92. ::-webkit-scrollbar-track-piece { background-color: transparent; }
  93. ::-webkit-scrollbar-thumb:vertical {
  94. height: 50px;
  95. background: -webkit-gradient(linear, left top, right top, color-stop(0%, @scrollbarBackground), color-stop(100%, @scrollbarBackground2));
  96. border: 1px solid @scrollbarBorder;
  97. border-top: 1px solid @scrollbarBorder;
  98. border-left: 1px solid @scrollbarBorder;
  99. }
  100. ::-webkit-scrollbar-thumb:horizontal {
  101. width: 50px;
  102. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @scrollbarBackground), color-stop(100%, @scrollbarBackground2));
  103. border: 1px solid @scrollbarBorder;
  104. border-top: 1px solid @scrollbarBorder;
  105. border-left: 1px solid @scrollbarBorder;
  106. }
  107. // SPECTRUM CSS overrides
  108. .sp-replacer {
  109. background: inherit;
  110. border: none;
  111. color: inherit;
  112. padding: 0;
  113. }
  114. .sp-replacer:hover, .sp-replacer.sp-active {
  115. border-color: inherit;
  116. color: inherit;
  117. }
  118. .sp-container {
  119. border-radius: 0;
  120. background-color: @heroUnitBackground;
  121. border: none;
  122. padding: 0;
  123. }
  124. .sp-palette-container, .sp-picker-container {
  125. border: none;
  126. }
  127. .sp-dd {
  128. display: none;
  129. }
  130. .sp-preview {
  131. position: relative;
  132. width: 15px;
  133. height: 15px;
  134. border: none;
  135. margin-right: 5px;
  136. float: left;
  137. z-index: 0;
  138. }
  139. .datapoints-warning {
  140. pointer: none;
  141. position: absolute;
  142. top: 50%;
  143. left: 50%;
  144. z-index: 10;
  145. margin-top: -50px;
  146. margin-left: -100px;
  147. width: 200px;
  148. text-align: center;
  149. cursor: auto;
  150. padding: 10px;
  151. }
  152. .metrics-editor-help:hover {
  153. .hide {
  154. display: block;
  155. }
  156. }
  157. .grafana-tooltip {
  158. position : absolute;
  159. top: -1000;
  160. left: 0;
  161. color: #c8c8c8;
  162. padding: 10px;
  163. font-size: 11pt;
  164. font-weight : 200;
  165. background-color: rgb(58, 57, 57);
  166. border-radius: 5px;
  167. z-index: 9999;
  168. max-width: 800px;
  169. max-height: 600px;
  170. overflow: hidden;
  171. line-height: 14px;
  172. a {
  173. color: @tooltipLinkColor;
  174. }
  175. }
  176. .grafana-tooltip hr {
  177. padding: 2px;
  178. color: #c8c8c8;
  179. margin: 0px;
  180. border-bottom:0px solid #c8c8c8;
  181. }
  182. .tooltip.in {
  183. .opacity(100);
  184. }
  185. .tooltip-inner {
  186. max-width: 400px;
  187. }
  188. .grafana-version-info {
  189. position: absolute;
  190. bottom: 2px;
  191. left: 3px;
  192. font-size: 80%;
  193. color: darken(@gray, 25%);
  194. a { color: darken(@gray, 25%); }
  195. }
  196. .template-variable {
  197. color: @variable;
  198. }
  199. .grafana-info-box:before {
  200. content: "\f05a";
  201. font-family:'FontAwesome';
  202. position: absolute;
  203. top: -8px;
  204. left: -8px;
  205. font-size: 20px;
  206. color: @blue;
  207. }
  208. .grafana-info-box {
  209. position: relative;
  210. padding: 5px 15px;
  211. background-color: @grafanaTargetBackground;
  212. border: 1px solid @grafanaTargetBorder;
  213. h5 {
  214. margin-top: 5px;
  215. }
  216. }
  217. .grafana-tip {
  218. padding-left: 5px;
  219. }
  220. .shortcut-table {
  221. td { padding: 3px; }
  222. th:last-child { text-align: left; }
  223. td:first-child { text-align: right; }
  224. }
  225. .confirm-modal {
  226. border: 1px solid @grafanaTargetFuncBackground;
  227. max-width: 500px;
  228. background-color: @grafanaPanelBackground;
  229. text-align: center;
  230. .modal-close {
  231. float: right;
  232. font-size: 140%;
  233. padding: 10px;
  234. }
  235. .confirm-modal-icon {
  236. padding-top: 41px;
  237. font-size: 280%;
  238. color: @green;
  239. padding-bottom: 20px;
  240. }
  241. .confirm-modal-title {
  242. font-size: 18px;
  243. color: @linkColor;
  244. margin-bottom: 15px;
  245. }
  246. .confirm-modal-text {
  247. font-size: 16px;
  248. }
  249. .confirm-modal-buttons {
  250. margin-top: 35px;
  251. margin-bottom: 35px;
  252. button {
  253. margin-right: 5px
  254. }
  255. }
  256. }
  257. .share-snapshot {
  258. text-align: center;
  259. .gf-icon-snap-multi {
  260. font-size: 70px;
  261. }
  262. .fa-spinner {
  263. font-size: 70px;
  264. }
  265. .share-snapshot-info-text {
  266. margin: 10px 105px;
  267. strong {
  268. color: @headingsColor;
  269. font-weight: bold;
  270. }
  271. }
  272. .share-snapshot-header {
  273. margin: 20px 0 22px 0;
  274. }
  275. .tight-form {
  276. text-align: left;
  277. }
  278. .share-snapshot-link {
  279. max-width: 716px;
  280. white-space: nowrap;
  281. overflow: hidden;
  282. display: block;
  283. text-overflow: ellipsis;
  284. }
  285. }