_panel_graph.scss 7.0 KB

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