grafana.less 6.6 KB

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