grafana.less 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. @import "submenu.less";
  2. @import "graph.less";
  3. @import "console.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. .row-control-inner {
  11. padding:0px;
  12. margin:0px;
  13. position:relative;
  14. }
  15. .hide-controls {
  16. padding: 0;
  17. .row-tab {
  18. display: none;
  19. }
  20. .submenu-controls {
  21. display: none;
  22. }
  23. .add-row-panel-hint {
  24. display: none;
  25. }
  26. }
  27. .playlist-active {
  28. .grafana-menu-zoom-out,
  29. .grafana-menu-save,
  30. .grafana-menu-load,
  31. .add-row-panel-hint,
  32. .grafana-menu-home,
  33. .grafana-menu-refresh,
  34. .grafana-menu-edit {
  35. display: none;
  36. }
  37. .grafana-menu-stop-playlist {
  38. display: list-item;
  39. }
  40. }
  41. .logo-icon {
  42. width: 24px;
  43. padding: 13px 11px 0 0;
  44. display: block;
  45. float: left;
  46. }
  47. .page-title {
  48. padding: 15px 0;
  49. display: block;
  50. float: left;
  51. }
  52. .row-button {
  53. width: 24px;
  54. }
  55. .modal {
  56. max-width: 800px;
  57. left: 0;
  58. right: 0;
  59. margin-left: auto;
  60. margin-right: auto;
  61. top: 200px;
  62. }
  63. .grafana-search-metric-actions {
  64. visibility: hidden;
  65. padding-left: 20px;
  66. }
  67. .grafana-search-metric-name {
  68. white-space: nowrap;
  69. }
  70. .grafana-search-metric-result:hover {
  71. .grafana-search-metric-actions {
  72. visibility: visible;
  73. }
  74. .grafana-search-metric-name {
  75. color: @blue;
  76. }
  77. }
  78. .dashboard-fullscreen {
  79. .main-view-container {
  80. overflow: hidden;
  81. height: 0;
  82. .row-control-inner {
  83. display: none;
  84. }
  85. }
  86. }
  87. .histogram-chart {
  88. position:relative;
  89. }
  90. .grafana-target:last-child {
  91. border-bottom: 1px solid @grafanaTargetBorder;
  92. }
  93. .grafana-target-inner {
  94. border-top: 1px solid @grafanaTargetBorder;
  95. border-left: 1px solid @grafanaTargetBorder;
  96. border-right: 1px solid @grafanaTargetBorder;
  97. background: @grafanaTargetBackground;
  98. width: 100%;
  99. }
  100. .grafana-target-onoff {
  101. display: inline-block;
  102. padding: 5px 7px;
  103. display: inline-block;
  104. }
  105. .grafana-segment-list {
  106. list-style: none;
  107. margin: 0;
  108. >li {
  109. float: left;
  110. }
  111. }
  112. .grafana-metric-options {
  113. margin-top: 35px;
  114. }
  115. // fix for fixed positioned panel & scrolling
  116. .grafana-segment-dropdown-menu {
  117. margin-bottom: 70px;
  118. }
  119. .grafana-target-segment {
  120. padding: 8px 7px;
  121. display: inline-block;
  122. font-weight: normal;
  123. border-right: 1px solid @grafanaTargetSegmentBorder;
  124. color: @grafanaTargetColor;
  125. display: inline-block;
  126. .has-open-function & {
  127. padding-top: 25px;
  128. }
  129. .grafana-target-hidden & {
  130. color: @grafanaTargetColorHide;
  131. }
  132. &:hover, &:focus {
  133. text-decoration: none;
  134. }
  135. &a:hover {
  136. background: @grafanaTargetFuncBackground;
  137. }
  138. &.template-param-name {
  139. border-right: none;
  140. padding-right: 3px;
  141. }
  142. &.annotation-segment {
  143. padding: 8px 15px;
  144. }
  145. &.last {
  146. border-right: none;
  147. }
  148. }
  149. .grafana-target-segment-icon {
  150. i {
  151. width: 15px;
  152. text-align: center;
  153. display: inline-block;
  154. }
  155. }
  156. .grafana-target-function {
  157. background: @grafanaTargetFuncBackground;
  158. > a {
  159. color: @grafanaTargetColor;
  160. }
  161. > a:hover {
  162. color: @linkColor;
  163. }
  164. &.show-function-controls {
  165. padding-top: 5px;
  166. min-width: 100px;
  167. text-align: center;
  168. }
  169. }
  170. input[type=text].grafana-function-param-input {
  171. background: transparent;
  172. border: none;
  173. margin: 0;
  174. padding: 0;
  175. }
  176. input[type=text].grafana-target-text-input {
  177. padding: 8px 7px;
  178. border: none;
  179. margin: 0px;
  180. background: transparent;
  181. float: left;
  182. color: @grafanaTargetColor;
  183. border-radius: 0;
  184. border-right: 1px solid @grafanaTargetSegmentBorder;
  185. }
  186. [type=text].grafana-target-segment-input, [type=number].grafana-target-segment-input {
  187. border: none;
  188. border-right: 1px solid @grafanaTargetSegmentBorder;
  189. margin: 0px;
  190. border-radius: 0;
  191. padding: 8px 4px;
  192. &.last {
  193. border-right: none;
  194. }
  195. }
  196. input[type=checkbox].grafana-target-option-checkbox {
  197. margin: 0;
  198. }
  199. select.grafana-target-segment-input {
  200. border: none;
  201. border-right: 1px solid @grafanaTargetSegmentBorder;
  202. margin: 0px;
  203. border-radius: 0;
  204. height: 36px;
  205. padding: 8px 5px;
  206. &.last {
  207. border-right: none;
  208. }
  209. }
  210. .grafana-target .dropdown {
  211. padding: 0; margin: 0;
  212. }
  213. .graphite-func-controls {
  214. display: none;
  215. text-align: center;
  216. .fa-arrow-left {
  217. float: left;
  218. position: relative;
  219. top: 2px;
  220. }
  221. .fa-arrow-right {
  222. float: right;
  223. position: relative;
  224. top: 2px;
  225. }
  226. .fa-remove {
  227. margin-left: 10px;
  228. }
  229. }
  230. .grafana-target {
  231. .popover-content {
  232. padding: 0;
  233. }
  234. }
  235. .scrollable {
  236. max-height: 300px;
  237. overflow: auto;
  238. }
  239. //
  240. // Srollbars
  241. //
  242. ::-webkit-scrollbar {
  243. width: 8px;
  244. height: 8px;
  245. }
  246. ::-webkit-scrollbar:hover {
  247. height: 8px;
  248. }
  249. ::-webkit-scrollbar-button:start:decrement,
  250. ::-webkit-scrollbar-button:end:increment { display: none; }
  251. ::-webkit-scrollbar-button:horizontal:decrement { display: none; }
  252. ::-webkit-scrollbar-button:horizontal:increment { display: none; }
  253. ::-webkit-scrollbar-button:vertical:decrement { display: none; }
  254. ::-webkit-scrollbar-button:vertical:increment { display: none; }
  255. ::-webkit-scrollbar-button:horizontal:decrement:active { background-image: none; }
  256. ::-webkit-scrollbar-button:horizontal:increment:active { background-image: none; }
  257. ::-webkit-scrollbar-button:vertical:decrement:active { background-image: none; }
  258. ::-webkit-scrollbar-button:vertical:increment:active {background-image: none; }
  259. ::-webkit-scrollbar-track-piece { background-color: transparent; }
  260. ::-webkit-scrollbar-thumb:vertical {
  261. height: 50px;
  262. background: -webkit-gradient(linear, left top, right top, color-stop(0%, @scrollbarBackground), color-stop(100%, @scrollbarBackground2));
  263. border: 1px solid @scrollbarBorder;
  264. border-top: 1px solid @scrollbarBorder;
  265. border-left: 1px solid @scrollbarBorder;
  266. }
  267. ::-webkit-scrollbar-thumb:horizontal {
  268. width: 50px;
  269. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @scrollbarBackground), color-stop(100%, @scrollbarBackground2));
  270. border: 1px solid @scrollbarBorder;
  271. border-top: 1px solid @scrollbarBorder;
  272. border-left: 1px solid @scrollbarBorder;
  273. }
  274. // SPECTRUM CSS overrides
  275. .sp-replacer {
  276. background: inherit;
  277. border: none;
  278. color: inherit;
  279. padding: 0;
  280. }
  281. .sp-replacer:hover, .sp-replacer.sp-active {
  282. border-color: inherit;
  283. color: inherit;
  284. }
  285. .sp-container {
  286. border-radius: 0;
  287. background-color: @heroUnitBackground;
  288. border: none;
  289. padding: 0;
  290. }
  291. .sp-palette-container, .sp-picker-container {
  292. border: none;
  293. }
  294. .sp-dd {
  295. display: none;
  296. }
  297. .sp-preview {
  298. position: relative;
  299. width: 15px;
  300. height: 15px;
  301. border: none;
  302. margin-right: 5px;
  303. float: left;
  304. z-index: 0;
  305. }
  306. .datapoints-warning {
  307. pointer: none;
  308. position: absolute;
  309. top: 50%;
  310. left: 50%;
  311. z-index: 10;
  312. margin-top: -50px;
  313. margin-left: -100px;
  314. width: 200px;
  315. text-align: center;
  316. cursor: auto;
  317. padding: 10px;
  318. }
  319. .metrics-editor-help:hover {
  320. .hide {
  321. display: block;
  322. }
  323. }
  324. .grafana-tooltip {
  325. position : absolute;
  326. top: -1000;
  327. left: 0;
  328. color: #c8c8c8;
  329. padding: 10px;
  330. font-size: 11pt;
  331. font-weight : 200;
  332. background-color: rgb(58, 57, 57);
  333. border-radius: 5px;
  334. z-index: 9999;
  335. max-width: 800px;
  336. max-height: 600px;
  337. overflow: hidden;
  338. line-height: 14px;
  339. a {
  340. color: @tooltipLinkColor;
  341. }
  342. }
  343. .grafana-tooltip hr {
  344. padding: 2px;
  345. color: #c8c8c8;
  346. margin: 0px;
  347. border-bottom:0px solid #c8c8c8;
  348. }
  349. .tooltip.in {
  350. .opacity(100);
  351. }
  352. .tooltip-inner {
  353. max-width: 400px;
  354. }
  355. .dashboard-edit-view {
  356. padding: 20px;
  357. background-color: @grafanaPanelBackground;
  358. position: relative;
  359. }
  360. .dashboard-editor-body {
  361. padding: 20px 10px;
  362. min-height: 100px;
  363. }
  364. .dashboard-editor-footer {
  365. overflow: hidden;
  366. }
  367. .dashboard-editor-header {
  368. overflow: hidden;
  369. .tabs {
  370. float: left;
  371. }
  372. .nav {
  373. margin: 0;
  374. }
  375. }
  376. .dashboard-editor-title {
  377. border-bottom: 1px solid @fullEditBorder;
  378. padding-right: 20px;
  379. float: left;
  380. color: @linkColor;
  381. font-size: 20px;
  382. font-weight: normal;
  383. line-height: 38px;
  384. margin: 0;
  385. .fa {
  386. padding: 0 8px 0 5px;
  387. color: @textColor;
  388. }
  389. }
  390. .grafana-version-info {
  391. position: absolute;
  392. bottom: 2px;
  393. left: 3px;
  394. font-size: 80%;
  395. color: darken(@gray, 25%);
  396. a { color: darken(@gray, 25%); }
  397. }
  398. .template-variable {
  399. color: @variable;
  400. }
  401. .grafana-info-box:before {
  402. content: "\f05a";
  403. font-family:'FontAwesome';
  404. position: absolute;
  405. top: -8px;
  406. left: -8px;
  407. font-size: 20px;
  408. color: @blue;
  409. }
  410. .grafana-info-box {
  411. position: relative;
  412. padding: 5px 15px;
  413. background-color: @grafanaTargetBackground;
  414. border: 1px solid @grafanaTargetBorder;
  415. h5 {
  416. margin-top: 5px;
  417. }
  418. }
  419. .grafana-tip {
  420. padding-left: 5px;
  421. }
  422. .shortcut-table {
  423. td { padding: 3px; }
  424. th:last-child { text-align: left; }
  425. td:first-child { text-align: right; }
  426. }
  427. .confirm-modal {
  428. max-width: 500px;
  429. }