_panel_graph.scss 6.6 KB

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