_panel_graph.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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. display: table;
  80. .graph-legend-series {
  81. display: table-row;
  82. float: none;
  83. padding-left: 0;
  84. &--right-y {
  85. float: none;
  86. .graph-legend-alias::after {
  87. content: '(right-y)';
  88. padding: 0 5px;
  89. color: $text-color-weak;
  90. }
  91. }
  92. }
  93. td, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  94. float: none;
  95. display: table-cell;
  96. white-space: nowrap;
  97. padding: 2px 10px;
  98. text-align: right;
  99. }
  100. .graph-legend-icon {
  101. width: 5px;
  102. padding: 0;
  103. top: 0;
  104. .fa {
  105. top: 4px;
  106. }
  107. }
  108. .graph-legend-value {
  109. padding-left: 15px;
  110. }
  111. .graph-legend-alias {
  112. padding-left: 7px;
  113. text-align: left;
  114. width: 95%;
  115. }
  116. .graph-legend-series:nth-child(odd) {
  117. background-color: $grafanaListAccent;
  118. }
  119. .graph-legend-value {
  120. &.current, &.max, &.min, &.total, &.avg {
  121. &::before {
  122. content: '';
  123. }
  124. }
  125. }
  126. th {
  127. text-align: right;
  128. padding: 0px 10px 1px 0;
  129. font-weight: bold;
  130. color: $blue;
  131. font-size: 85%;
  132. white-space: nowrap;
  133. }
  134. }
  135. .graph-legend-rightside {
  136. &.graph-wrapper {
  137. display: table;
  138. width: 100%;
  139. }
  140. .graph-canvas-wrapper {
  141. display: table-cell;
  142. width: 100%;
  143. position: relative;
  144. }
  145. .graph-legend-wrapper {
  146. display: table-cell;
  147. vertical-align: top;
  148. position: relative;
  149. left: 4px;
  150. }
  151. .graph-legend {
  152. margin: 0;
  153. }
  154. .graph-legend-series {
  155. display: block;
  156. padding-left: 0px;
  157. }
  158. .graph-legend-table .graph-legend-series {
  159. display: table-row;
  160. }
  161. }
  162. .graph-legend-series-hidden {
  163. .graph-legend-value,
  164. .graph-legend-alias {
  165. color: $link-color-disabled;
  166. }
  167. }
  168. .graph-legend-popover {
  169. width: 200px;
  170. label {
  171. display: inline-block;
  172. }
  173. .btn {
  174. padding: 1px 3px;
  175. margin-right: 0px;
  176. line-height: initial;
  177. }
  178. .close {
  179. margin-right: 5px;
  180. color: $link-color;
  181. opacity: 0.7;
  182. text-shadow: none;
  183. }
  184. .editor-row {
  185. padding: 5px;
  186. }
  187. }
  188. .annotation-tags {
  189. color: $purple;
  190. }
  191. .graph-series-override {
  192. input {
  193. float: left;
  194. margin-right: 10px;
  195. }
  196. .graph-series-override-option {
  197. float: left;
  198. padding: 2px 6px;
  199. }
  200. .graph-series-override-selector {
  201. float: left;
  202. }
  203. }
  204. .graph-tooltip {
  205. white-space: nowrap;
  206. font-size: $font-size-sm;
  207. background-color: $graph-tooltip-bg;
  208. color: $text-color;
  209. .graph-tooltip-time {
  210. text-align: center;
  211. position: relative;
  212. top: -3px;
  213. padding: 0.2rem;
  214. font-weight: bold;
  215. color: $text-color;
  216. }
  217. .graph-tooltip-list-item {
  218. display: table-row;
  219. &--highlight {
  220. color: $text-color-emphasis;
  221. font-weight: bold;
  222. }
  223. }
  224. .graph-tooltip-series-name {
  225. display: table-cell;
  226. padding: 0.15rem;
  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-title {
  241. font-weight: $font-weight-semi-bold;
  242. position: relative;
  243. top: -0.4rem;
  244. }
  245. a {
  246. color: $blue;
  247. text-decoration: underline;
  248. }
  249. .graph-annotation-time {
  250. position: relative;
  251. text-align: center;
  252. top: 0.6rem;
  253. }
  254. }
  255. .left-yaxis-label {
  256. top: 50%;
  257. left: 0;
  258. transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  259. // this is needed for phantomsjs 2.1
  260. -webkit-transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  261. }
  262. .right-yaxis-label {
  263. top: 50%;
  264. right: 0;
  265. transform: translateX(50%) translateY(-50%) rotate(90deg);
  266. // this is needed for phantomsjs 2.1
  267. -webkit-transform: translateX(50%) translateY(-50%) rotate(90deg);
  268. }
  269. .axisLabel {
  270. color: $text-color;
  271. font-size: $font-size-sm;
  272. position: absolute;
  273. text-align: center;
  274. font-size: 12px;
  275. }
  276. .alert-handle-wrapper {
  277. position: absolute;
  278. user-select: none;
  279. .alert-handle {
  280. z-index: 10;
  281. position: relative;
  282. float: right;
  283. box-shadow: $card-shadow;
  284. background: $card-background;
  285. cursor: move;
  286. width: 100px;
  287. font-size: $font-size-sm;
  288. border-radius: 4px;
  289. text-align: left;
  290. color: $text-muted;
  291. &:hover {
  292. background-color: $btn-inverse-bg-hl;
  293. }
  294. .icon-gf {
  295. font-size: 14px;
  296. position: relative;
  297. top: 0px;
  298. float: left;
  299. border-right: 1px solid $btn-divider-left;
  300. padding: 0.5rem 0.3rem 0.4rem 0.4rem;
  301. }
  302. }
  303. .alert-handle-value {
  304. border-left: 1px solid $btn-divider-right;
  305. padding: 0.5rem;
  306. line-height: 2rem;
  307. .alert-handle-grip {
  308. background: url($btn-drag-image) no-repeat 50% 50%;
  309. background-size: 8px;
  310. float: right;
  311. width: 1rem;
  312. height: 2rem;
  313. margin-right: 2px;
  314. }
  315. }
  316. &--T1 {
  317. right: -222px;
  318. width: 245px;
  319. .alert-handle-line {
  320. width: 145px;
  321. }
  322. }
  323. &--T0{
  324. right: -104px;
  325. width: 129px;
  326. .alert-handle-line {
  327. width: 28px;
  328. }
  329. }
  330. &--no-value {
  331. .alert-handle-line {
  332. display: none;
  333. }
  334. }
  335. .alert-handle-line {
  336. float: left;
  337. height: 2px;
  338. margin-top: 13px;
  339. z-index: 0;
  340. position: relative;
  341. &--critical {
  342. background-color: rgba(237, 46, 24, 0.60);
  343. }
  344. &--warning {
  345. background-color: rgba(247, 149, 32, 0.60);
  346. }
  347. }
  348. }
  349. .thresholds-form-disabled {
  350. filter: blur(3px);
  351. }