grafana.less 7.7 KB

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