grafana.less 8.3 KB

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