grafana.less 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. @import "forms.less";
  10. @import "singlestat.less";
  11. @import "tightform.less";
  12. @import "sidemenu.less";
  13. @import "gfbox.less";
  14. .row-control-inner {
  15. padding:0px;
  16. margin:0px;
  17. position:relative;
  18. }
  19. .hide-controls {
  20. padding: 0;
  21. .row-tab {
  22. display: none;
  23. }
  24. .submenu-controls {
  25. display: none;
  26. }
  27. .add-row-panel-hint {
  28. display: none;
  29. }
  30. }
  31. .playlist-active {
  32. .grafana-menu-zoom-out,
  33. .grafana-menu-save,
  34. .grafana-menu-load,
  35. .add-row-panel-hint,
  36. .grafana-menu-home,
  37. .grafana-menu-refresh,
  38. .grafana-menu-edit {
  39. display: none;
  40. }
  41. .grafana-menu-stop-playlist {
  42. display: list-item;
  43. }
  44. }
  45. .logo-icon {
  46. width: 24px;
  47. }
  48. .navbar-inner {
  49. padding-left: 0px;
  50. }
  51. .top-nav {
  52. float: left;
  53. }
  54. .top-nav-menu-btn {
  55. display: block;
  56. float: left;
  57. padding: 15px 13px 13px 14px;;
  58. position: relative;
  59. border-right: 2px solid black;
  60. font-weight: bold;
  61. font-size: 90%;
  62. span {
  63. padding-left: 4px;
  64. position: relative;
  65. top: 2px;
  66. }
  67. }
  68. .top-nav-breadcrumb {
  69. display: block;
  70. float: left;
  71. padding: 18px 9px 8px 12px;
  72. font-size: 1.4em;
  73. font-weight: bold;
  74. color: darken(@gray, 10%);
  75. i {
  76. padding-left: 9px;
  77. }
  78. }
  79. .top-nav-section {
  80. display: block;
  81. float: left;
  82. padding: 19px 9px 8px 0;
  83. font-weight: bold;
  84. i {
  85. padding-left: 8px;
  86. }
  87. }
  88. .top-nav-title {
  89. display: block;
  90. float: left;
  91. padding: 18px 10px 10px 0px;
  92. font-size: 1.3em;
  93. font-weight: bold;
  94. i {
  95. padding-left: 4px;
  96. position: relative;
  97. top: 2px;
  98. }
  99. }
  100. .row-button {
  101. width: 24px;
  102. }
  103. .modal {
  104. max-width: 800px;
  105. left: 0;
  106. right: 0;
  107. margin-left: auto;
  108. margin-right: auto;
  109. top: 30%;
  110. }
  111. .grafana-search-metric-actions {
  112. visibility: hidden;
  113. padding-left: 20px;
  114. }
  115. .grafana-search-metric-name {
  116. white-space: nowrap;
  117. }
  118. .grafana-search-metric-result:hover {
  119. .grafana-search-metric-actions {
  120. visibility: visible;
  121. }
  122. .grafana-search-metric-name {
  123. color: @blue;
  124. }
  125. }
  126. .dashboard-fullscreen {
  127. .main-view-container {
  128. overflow: hidden;
  129. height: 0;
  130. .row-control-inner {
  131. display: none;
  132. }
  133. }
  134. }
  135. .histogram-chart {
  136. position:relative;
  137. }
  138. .scrollable {
  139. max-height: 300px;
  140. overflow: auto;
  141. }
  142. //
  143. // Srollbars
  144. //
  145. ::-webkit-scrollbar {
  146. width: 8px;
  147. height: 8px;
  148. }
  149. ::-webkit-scrollbar:hover {
  150. height: 8px;
  151. }
  152. ::-webkit-scrollbar-button:start:decrement,
  153. ::-webkit-scrollbar-button:end:increment { display: none; }
  154. ::-webkit-scrollbar-button:horizontal:decrement { display: none; }
  155. ::-webkit-scrollbar-button:horizontal:increment { display: none; }
  156. ::-webkit-scrollbar-button:vertical:decrement { display: none; }
  157. ::-webkit-scrollbar-button:vertical:increment { display: none; }
  158. ::-webkit-scrollbar-button:horizontal:decrement:active { background-image: none; }
  159. ::-webkit-scrollbar-button:horizontal:increment:active { background-image: none; }
  160. ::-webkit-scrollbar-button:vertical:decrement:active { background-image: none; }
  161. ::-webkit-scrollbar-button:vertical:increment:active {background-image: none; }
  162. ::-webkit-scrollbar-track-piece { background-color: transparent; }
  163. ::-webkit-scrollbar-thumb:vertical {
  164. height: 50px;
  165. background: -webkit-gradient(linear, left top, right top, color-stop(0%, @scrollbarBackground), color-stop(100%, @scrollbarBackground2));
  166. border: 1px solid @scrollbarBorder;
  167. border-top: 1px solid @scrollbarBorder;
  168. border-left: 1px solid @scrollbarBorder;
  169. }
  170. ::-webkit-scrollbar-thumb:horizontal {
  171. width: 50px;
  172. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @scrollbarBackground), color-stop(100%, @scrollbarBackground2));
  173. border: 1px solid @scrollbarBorder;
  174. border-top: 1px solid @scrollbarBorder;
  175. border-left: 1px solid @scrollbarBorder;
  176. }
  177. // SPECTRUM CSS overrides
  178. .sp-replacer {
  179. background: inherit;
  180. border: none;
  181. color: inherit;
  182. padding: 0;
  183. }
  184. .sp-replacer:hover, .sp-replacer.sp-active {
  185. border-color: inherit;
  186. color: inherit;
  187. }
  188. .sp-container {
  189. border-radius: 0;
  190. background-color: @heroUnitBackground;
  191. border: none;
  192. padding: 0;
  193. }
  194. .sp-palette-container, .sp-picker-container {
  195. border: none;
  196. }
  197. .sp-dd {
  198. display: none;
  199. }
  200. .sp-preview {
  201. position: relative;
  202. width: 15px;
  203. height: 15px;
  204. border: none;
  205. margin-right: 5px;
  206. float: left;
  207. z-index: 0;
  208. }
  209. .datapoints-warning {
  210. pointer: none;
  211. position: absolute;
  212. top: 50%;
  213. left: 50%;
  214. z-index: 10;
  215. margin-top: -50px;
  216. margin-left: -100px;
  217. width: 200px;
  218. text-align: center;
  219. cursor: auto;
  220. padding: 10px;
  221. }
  222. .metrics-editor-help:hover {
  223. .hide {
  224. display: block;
  225. }
  226. }
  227. .grafana-tooltip {
  228. position : absolute;
  229. top: -1000;
  230. left: 0;
  231. color: #c8c8c8;
  232. padding: 10px;
  233. font-size: 11pt;
  234. font-weight : 200;
  235. background-color: rgb(58, 57, 57);
  236. border-radius: 5px;
  237. z-index: 9999;
  238. max-width: 800px;
  239. max-height: 600px;
  240. overflow: hidden;
  241. line-height: 14px;
  242. a {
  243. color: @tooltipLinkColor;
  244. }
  245. }
  246. .grafana-tooltip hr {
  247. padding: 2px;
  248. color: #c8c8c8;
  249. margin: 0px;
  250. border-bottom:0px solid #c8c8c8;
  251. }
  252. .tooltip.in {
  253. .opacity(100);
  254. }
  255. .tooltip-inner {
  256. max-width: 400px;
  257. }
  258. .grafana-version-info {
  259. position: absolute;
  260. bottom: 2px;
  261. left: 3px;
  262. font-size: 80%;
  263. color: darken(@gray, 25%);
  264. a { color: darken(@gray, 25%); }
  265. }
  266. .template-variable {
  267. color: @variable;
  268. }
  269. .grafana-info-box:before {
  270. content: "\f05a";
  271. font-family:'FontAwesome';
  272. position: absolute;
  273. top: -8px;
  274. left: -8px;
  275. font-size: 20px;
  276. color: @blue;
  277. }
  278. .grafana-info-box {
  279. position: relative;
  280. padding: 5px 15px;
  281. background-color: @grafanaTargetBackground;
  282. border: 1px solid @grafanaTargetBorder;
  283. h5 {
  284. margin-top: 5px;
  285. }
  286. }
  287. .grafana-tip {
  288. padding-left: 5px;
  289. }
  290. .shortcut-table {
  291. td { padding: 3px; }
  292. th:last-child { text-align: left; }
  293. td:first-child { text-align: right; }
  294. }
  295. .confirm-modal {
  296. max-width: 500px;
  297. }