_panel_graph.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  117. float: none;
  118. display: table-cell;
  119. white-space: nowrap;
  120. padding: 2px 10px;
  121. text-align: right;
  122. }
  123. .graph-legend-icon {
  124. width: 5px;
  125. padding: 0;
  126. top: 0;
  127. .fa {
  128. top: 4px;
  129. }
  130. }
  131. .graph-legend-value {
  132. padding-left: 15px;
  133. }
  134. .graph-legend-alias {
  135. padding-left: 7px;
  136. text-align: left;
  137. width: 95%;
  138. max-width: 650px;
  139. text-overflow: ellipsis;
  140. overflow: hidden;
  141. }
  142. .graph-legend-series:nth-child(odd) {
  143. background: $table-bg-accent;
  144. }
  145. .graph-legend-value {
  146. &.current, &.max, &.min, &.total, &.avg {
  147. &::before {
  148. content: '';
  149. }
  150. }
  151. }
  152. th {
  153. text-align: right;
  154. padding: 0px 10px 1px 0;
  155. font-weight: bold;
  156. color: $blue;
  157. font-size: 85%;
  158. white-space: nowrap;
  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: 210px;
  169. label {
  170. display: inline-block;
  171. }
  172. .btn {
  173. padding: 1px 3px;
  174. margin-right: 0px;
  175. line-height: initial;
  176. }
  177. }
  178. .annotation-tags {
  179. color: $purple;
  180. }
  181. .graph-series-override {
  182. input {
  183. float: left;
  184. margin-right: 10px;
  185. }
  186. .graph-series-override-option {
  187. float: left;
  188. padding: 2px 6px;
  189. }
  190. .graph-series-override-selector {
  191. float: left;
  192. }
  193. }
  194. .graph-tooltip {
  195. white-space: nowrap;
  196. font-size: $font-size-sm;
  197. background-color: $graph-tooltip-bg;
  198. color: $text-color;
  199. .graph-tooltip-time {
  200. text-align: center;
  201. position: relative;
  202. top: -3px;
  203. padding: 0.2rem;
  204. font-weight: bold;
  205. color: $text-color;
  206. }
  207. .graph-tooltip-list-item {
  208. display: table-row;
  209. &--highlight {
  210. color: $text-color-emphasis;
  211. font-weight: bold;
  212. }
  213. }
  214. .graph-tooltip-series-name {
  215. display: table-cell;
  216. padding: 0.15rem;
  217. max-width: 650px;
  218. text-overflow: ellipsis;
  219. overflow: hidden;
  220. }
  221. .graph-tooltip-value {
  222. display: table-cell;
  223. font-weight: bold;
  224. padding-left: 15px;
  225. text-align: right;
  226. }
  227. }
  228. .graph-annotation {
  229. .label-tag {
  230. margin-right: 4px;
  231. margin-top: 8px;
  232. }
  233. .graph-annotation__header {
  234. background-color: $popover-border-color;
  235. padding: 6px 10px;
  236. display: flex;
  237. }
  238. .graph-annotation__title {
  239. font-weight: $font-weight-semi-bold;
  240. padding-right: $spacer;
  241. overflow: hidden;
  242. display: inline-block;
  243. white-space: nowrap;
  244. text-overflow: ellipsis;
  245. flex-grow: 1;
  246. }
  247. .graph-annotation__edit-icon {
  248. padding-left: $spacer;
  249. }
  250. .graph-annotation__time {
  251. color: $text-muted;
  252. font-style: italic;
  253. font-weight: normal;
  254. display: inline-block;
  255. position: relative;
  256. top: 1px;
  257. }
  258. .graph-annotation__body {
  259. padding: 0.65rem;
  260. }
  261. .graph-annotation__user {
  262. img {
  263. border-radius: 50%;
  264. width: 16px;
  265. height: 16px;
  266. }
  267. }
  268. a[href] {
  269. color: $blue;
  270. text-decoration: underline;
  271. }
  272. }
  273. .left-yaxis-label {
  274. top: 50%;
  275. left: 2px;
  276. transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  277. // this is needed for phantomsjs 2.1
  278. -webkit-transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  279. }
  280. .right-yaxis-label {
  281. top: 50%;
  282. right: 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. .axisLabel {
  288. display: inline-block;
  289. color: $text-color;
  290. font-size: $font-size-sm;
  291. position: absolute;
  292. text-align: center;
  293. font-size: 12px;
  294. }
  295. .alert-handle-wrapper {
  296. position: absolute;
  297. user-select: none;
  298. .alert-handle {
  299. z-index: 10;
  300. position: relative;
  301. float: right;
  302. box-shadow: $card-shadow;
  303. background: $card-background;
  304. cursor: move;
  305. width: 100px;
  306. font-size: $font-size-sm;
  307. border-radius: 4px;
  308. text-align: left;
  309. color: $text-muted;
  310. &:hover {
  311. background-color: $btn-inverse-bg-hl;
  312. }
  313. .icon-gf {
  314. font-size: 14px;
  315. position: relative;
  316. top: 0px;
  317. float: left;
  318. border-right: 1px solid $btn-divider-left;
  319. padding: 0.5rem 0.3rem 0.4rem 0.4rem;
  320. }
  321. }
  322. .alert-handle-value {
  323. border-left: 1px solid $btn-divider-right;
  324. padding: 0.5rem;
  325. line-height: 2rem;
  326. .alert-handle-grip {
  327. background: url($btn-drag-image) no-repeat 50% 50%;
  328. background-size: 8px;
  329. float: right;
  330. width: 1rem;
  331. height: 2rem;
  332. margin-right: 2px;
  333. }
  334. }
  335. &--T1 {
  336. right: -222px;
  337. width: 245px;
  338. .alert-handle-line {
  339. width: 145px;
  340. }
  341. }
  342. &--T0{
  343. right: -104px;
  344. width: 129px;
  345. .alert-handle-line {
  346. width: 28px;
  347. }
  348. }
  349. &--no-value {
  350. .alert-handle-line {
  351. display: none;
  352. }
  353. }
  354. .alert-handle-line {
  355. float: left;
  356. height: 2px;
  357. margin-top: 13px;
  358. z-index: 0;
  359. position: relative;
  360. &--critical {
  361. background-color: rgba(237, 46, 24, 0.60);
  362. }
  363. &--warning {
  364. background-color: rgba(247, 149, 32, 0.60);
  365. }
  366. }
  367. }
  368. .thresholds-form-disabled {
  369. filter: blur(3px);
  370. }