_panel_graph.scss 6.5 KB

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