grafana.less 9.0 KB

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