grafana.less 6.6 KB

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