grafana.less 6.1 KB

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