_panel_graph.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. .graph-panel {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. &--legend-right {
  6. flex-direction: row;
  7. // .graph-panel__chart {
  8. // display: table-cell;
  9. // width: 100%;
  10. // position: relative;
  11. // }
  12. .graph-legend {
  13. max-height: 100%;
  14. position: relative;
  15. left: 4px;
  16. margin: 0 0 0 1rem;
  17. }
  18. .graph-legend-series {
  19. display: block;
  20. padding-left: 0px;
  21. }
  22. .graph-legend-table .graph-legend-series {
  23. display: table-row;
  24. }
  25. }
  26. }
  27. .graph-panel__chart {
  28. position: relative;
  29. cursor: crosshair;
  30. flex-grow: 1;
  31. }
  32. .datapoints-warning {
  33. pointer: none;
  34. position: absolute;
  35. top: 50%;
  36. left: 50%;
  37. z-index: 10;
  38. margin-top: -50px;
  39. margin-left: -100px;
  40. width: 200px;
  41. text-align: center;
  42. cursor: auto;
  43. padding: 10px;
  44. }
  45. .graph-legend {
  46. @include clearfix();
  47. flex: 0 1 auto;
  48. max-height: 30%;
  49. margin: 0 $spacer;
  50. text-align: center;
  51. width: calc(100% - $spacer);
  52. padding-top: 6px;
  53. position: relative;
  54. .popover-content {
  55. padding: 0;
  56. }
  57. }
  58. .graph-legend-icon {
  59. position: relative;
  60. padding-right: 4px;
  61. top: 1px;
  62. }
  63. .graph-legend-icon,
  64. .graph-legend-alias,
  65. .graph-legend-value {
  66. cursor: pointer;
  67. float: left;
  68. white-space: nowrap;
  69. font-size: 85%;
  70. text-align: left;
  71. &.current::before {
  72. content: "Current: "
  73. }
  74. &.max::before {
  75. content: "Max: "
  76. }
  77. &.min::before {
  78. content: "Min: "
  79. }
  80. &.total::before {
  81. content: "Total: "
  82. }
  83. &.avg::before {
  84. content: "Avg: "
  85. }
  86. }
  87. .graph-legend-icon .fa {
  88. font-size: 135%;
  89. position: relative;
  90. top: 1px;
  91. }
  92. .graph-legend-series {
  93. float: left;
  94. white-space: nowrap;
  95. padding-left: 10px;
  96. &--right-y {
  97. float: right;
  98. }
  99. }
  100. .graph-legend-value {
  101. padding-left: 6px;
  102. }
  103. .graph-legend-table {
  104. tbody {
  105. display: block;
  106. overflow-y: auto;
  107. overflow-x: hidden;
  108. padding-bottom: 1px;
  109. }
  110. .graph-legend-series {
  111. display: table-row;
  112. float: none;
  113. padding-left: 0;
  114. &--right-y {
  115. float: none;
  116. .graph-legend-alias::after {
  117. content: '(right-y)';
  118. padding: 0 5px;
  119. color: $text-color-weak;
  120. }
  121. }
  122. }
  123. td, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  124. float: none;
  125. display: table-cell;
  126. white-space: nowrap;
  127. padding: 2px 10px;
  128. text-align: right;
  129. }
  130. .graph-legend-icon {
  131. width: 5px;
  132. padding: 0;
  133. top: 0;
  134. .fa {
  135. top: 4px;
  136. }
  137. }
  138. .graph-legend-value {
  139. padding-left: 15px;
  140. }
  141. .graph-legend-alias {
  142. padding-left: 7px;
  143. text-align: left;
  144. width: 95%;
  145. max-width: 650px;
  146. text-overflow: ellipsis;
  147. overflow: hidden;
  148. }
  149. .graph-legend-series:nth-child(odd) {
  150. background: $table-bg-accent;
  151. }
  152. .graph-legend-value {
  153. &.current, &.max, &.min, &.total, &.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: 200px;
  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.60);
  369. }
  370. &--warning {
  371. background-color: rgba(247, 149, 32, 0.60);
  372. }
  373. }
  374. }
  375. .thresholds-form-disabled {
  376. filter: blur(3px);
  377. }