grafana.less 8.9 KB

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