_panel_graph.scss 6.9 KB

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