grafana.less 8.4 KB

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