_panel_graph.scss 7.1 KB

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