_panel_graph.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. .graph-canvas-wrapper {
  2. position: relative;
  3. cursor: crosshair;
  4. }
  5. .histogram-chart {
  6. position: relative;
  7. }
  8. .datapoints-warning {
  9. pointer: none;
  10. position: absolute;
  11. top: 50%;
  12. left: 50%;
  13. z-index: 10;
  14. margin-top: -50px;
  15. margin-left: -100px;
  16. width: 200px;
  17. text-align: center;
  18. cursor: auto;
  19. padding: 10px;
  20. }
  21. .graph-legend {
  22. @include clearfix();
  23. margin: 0 $spacer;
  24. text-align: center;
  25. width: calc(100% - $spacer);
  26. padding-top: 6px;
  27. .popover-content {
  28. padding: 0;
  29. }
  30. }
  31. .graph-legend-icon {
  32. position: relative;
  33. padding-right: 4px;
  34. top: 1px;
  35. }
  36. .graph-legend-icon,
  37. .graph-legend-alias,
  38. .graph-legend-value {
  39. cursor: pointer;
  40. float: left;
  41. white-space: nowrap;
  42. font-size: 85%;
  43. text-align: left;
  44. &.current::before {
  45. content: "Current: "
  46. }
  47. &.max::before {
  48. content: "Max: "
  49. }
  50. &.min::before {
  51. content: "Min: "
  52. }
  53. &.total::before {
  54. content: "Total: "
  55. }
  56. &.avg::before {
  57. content: "Avg: "
  58. }
  59. }
  60. .graph-legend-icon .fa {
  61. font-size: 135%;
  62. position: relative;
  63. top: 1px;
  64. }
  65. .graph-legend-series {
  66. float: left;
  67. white-space: nowrap;
  68. padding-left: 10px;
  69. &--right-y {
  70. float: right;
  71. }
  72. }
  73. .graph-legend-value {
  74. padding-left: 6px;
  75. }
  76. .graph-legend-table {
  77. overflow-y: auto;
  78. overflow-x: hidden;
  79. .graph-legend-series {
  80. display: table-row;
  81. float: none;
  82. padding-left: 0;
  83. &--right-y {
  84. float: none;
  85. .graph-legend-alias::after {
  86. content: '(right-y)';
  87. padding: 0 5px;
  88. color: $text-color-weak;
  89. }
  90. }
  91. }
  92. td, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  93. float: none;
  94. display: table-cell;
  95. white-space: nowrap;
  96. padding: 2px 10px;
  97. text-align: right;
  98. }
  99. .graph-legend-icon {
  100. width: 5px;
  101. padding: 0;
  102. top: 0;
  103. .fa {
  104. top: 4px;
  105. }
  106. }
  107. .graph-legend-value {
  108. padding-left: 15px;
  109. }
  110. .graph-legend-alias {
  111. padding-left: 7px;
  112. text-align: left;
  113. width: 95%;
  114. }
  115. .graph-legend-series:nth-child(odd) {
  116. background-color: $grafanaListAccent;
  117. }
  118. .graph-legend-value {
  119. &.current, &.max, &.min, &.total, &.avg {
  120. &::before {
  121. content: '';
  122. }
  123. }
  124. }
  125. th {
  126. text-align: right;
  127. padding: 0px 10px 1px 0;
  128. font-weight: bold;
  129. color: $blue;
  130. font-size: 85%;
  131. white-space: nowrap;
  132. }
  133. }
  134. .graph-legend-rightside {
  135. &.graph-wrapper {
  136. display: table;
  137. width: 100%;
  138. }
  139. .graph-canvas-wrapper {
  140. display: table-cell;
  141. width: 100%;
  142. position: relative;
  143. }
  144. .graph-legend-wrapper {
  145. display: table-cell;
  146. vertical-align: top;
  147. position: relative;
  148. left: 4px;
  149. }
  150. .graph-legend {
  151. margin: 0;
  152. }
  153. .graph-legend-series {
  154. display: block;
  155. padding-left: 0px;
  156. }
  157. .graph-legend-table .graph-legend-series {
  158. display: table-row;
  159. }
  160. }
  161. .graph-legend-series-hidden {
  162. .graph-legend-value,
  163. .graph-legend-alias {
  164. color: $link-color-disabled;
  165. }
  166. }
  167. .graph-legend-popover {
  168. width: 200px;
  169. label {
  170. display: inline-block;
  171. }
  172. .btn {
  173. padding: 1px 3px;
  174. margin-right: 0px;
  175. line-height: initial;
  176. }
  177. .close {
  178. margin-right: 5px;
  179. color: $link-color;
  180. opacity: 0.7;
  181. text-shadow: none;
  182. }
  183. .editor-row {
  184. padding: 5px;
  185. }
  186. }
  187. .annotation-tags {
  188. color: $purple;
  189. }
  190. .graph-series-override {
  191. input {
  192. float: left;
  193. margin-right: 10px;
  194. }
  195. .graph-series-override-option {
  196. float: left;
  197. padding: 2px 6px;
  198. }
  199. .graph-series-override-selector {
  200. float: left;
  201. }
  202. }
  203. .graph-tooltip {
  204. white-space: nowrap;
  205. font-size: $font-size-sm;
  206. background-color: $graph-tooltip-bg;
  207. color: $text-color;
  208. .graph-tooltip-time {
  209. text-align: center;
  210. position: relative;
  211. top: -3px;
  212. padding: 0.2rem;
  213. font-weight: bold;
  214. color: $text-color;
  215. }
  216. .graph-tooltip-list-item {
  217. display: table-row;
  218. &--highlight {
  219. color: $text-color-emphasis;
  220. font-weight: bold;
  221. }
  222. }
  223. .graph-tooltip-series-name {
  224. display: table-cell;
  225. padding: 0.15rem;
  226. }
  227. .graph-tooltip-value {
  228. display: table-cell;
  229. font-weight: bold;
  230. padding-left: 15px;
  231. text-align: right;
  232. }
  233. }
  234. .graph-annotation {
  235. .label-tag {
  236. margin-right: 4px;
  237. margin-top: 8px;
  238. }
  239. .graph-annotation-title {
  240. font-weight: $font-weight-semi-bold;
  241. position: relative;
  242. top: -0.4rem;
  243. }
  244. a {
  245. color: $blue;
  246. text-decoration: underline;
  247. }
  248. .graph-annotation-time {
  249. position: relative;
  250. text-align: center;
  251. top: 0.6rem;
  252. }
  253. }
  254. .left-yaxis-label {
  255. top: 50%;
  256. left: -5px;
  257. transform: rotate(-90deg);
  258. transform-origin: left top;
  259. }
  260. .right-yaxis-label {
  261. top: 50%;
  262. right: -5px;
  263. transform: rotate(90deg);
  264. transform-origin: right top;
  265. }
  266. .axisLabel {
  267. color: $text-color;
  268. font-size: $font-size-sm;
  269. position: absolute;
  270. text-align: center;
  271. font-size: 12px;
  272. }
  273. .alert-handle-wrapper {
  274. position: absolute;
  275. user-select: none;
  276. .alert-handle {
  277. z-index: 10;
  278. position: relative;
  279. float: right;
  280. box-shadow: $card-shadow;
  281. background: $card-background;
  282. cursor: move;
  283. width: 100px;
  284. font-size: $font-size-sm;
  285. border-radius: 4px;
  286. text-align: left;
  287. color: $text-muted;
  288. &:hover {
  289. background-color: $btn-inverse-bg-hl;
  290. }
  291. .icon-gf {
  292. font-size: 14px;
  293. position: relative;
  294. top: 0px;
  295. float: left;
  296. border-right: 1px solid $btn-divider-left;
  297. padding: 0.5rem 0.3rem 0.4rem 0.4rem;
  298. }
  299. }
  300. .alert-handle-value {
  301. border-left: 1px solid $btn-divider-right;
  302. padding: 0.5rem;
  303. line-height: 2rem;
  304. .alert-handle-grip {
  305. background: url($btn-drag-image) no-repeat 50% 50%;
  306. background-size: 8px;
  307. float: right;
  308. width: 1rem;
  309. height: 2rem;
  310. margin-right: 2px;
  311. }
  312. }
  313. &--T1 {
  314. right: -222px;
  315. width: 245px;
  316. .alert-handle-line {
  317. width: 145px;
  318. }
  319. }
  320. &--T0{
  321. right: -104px;
  322. width: 129px;
  323. .alert-handle-line {
  324. width: 28px;
  325. }
  326. }
  327. &--no-value {
  328. .alert-handle-line {
  329. display: none;
  330. }
  331. }
  332. .alert-handle-line {
  333. float: left;
  334. height: 2px;
  335. margin-top: 13px;
  336. z-index: 0;
  337. position: relative;
  338. &--critical {
  339. background-color: rgba(237, 46, 24, 0.60);
  340. }
  341. &--warning {
  342. background-color: rgba(247, 149, 32, 0.60);
  343. }
  344. }
  345. }
  346. .thresholds-form-disabled {
  347. filter: blur(3px);
  348. }