grafana.less 9.4 KB

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