_panel_graph.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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 0 0 1rem;
  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. }
  185. .annotation-tags {
  186. color: $purple;
  187. }
  188. .graph-series-override {
  189. input {
  190. float: left;
  191. margin-right: 10px;
  192. }
  193. .graph-series-override-option {
  194. float: left;
  195. padding: 2px 6px;
  196. }
  197. .graph-series-override-selector {
  198. float: left;
  199. }
  200. }
  201. .graph-tooltip {
  202. white-space: nowrap;
  203. font-size: $font-size-sm;
  204. background-color: $graph-tooltip-bg;
  205. color: $text-color;
  206. .graph-tooltip-time {
  207. text-align: center;
  208. position: relative;
  209. top: -3px;
  210. padding: 0.2rem;
  211. font-weight: bold;
  212. color: $text-color;
  213. }
  214. .graph-tooltip-list-item {
  215. display: table-row;
  216. &--highlight {
  217. color: $text-color-emphasis;
  218. font-weight: bold;
  219. }
  220. }
  221. .graph-tooltip-series-name {
  222. display: table-cell;
  223. padding: 0.15rem;
  224. max-width: 650px;
  225. text-overflow: ellipsis;
  226. overflow: hidden;
  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__header {
  241. background-color: $popover-border-color;
  242. padding: 0.40rem 0.65rem;
  243. display: flex;
  244. }
  245. .graph-annotation__title {
  246. font-weight: $font-weight-semi-bold;
  247. padding-right: $spacer;
  248. overflow: hidden;
  249. display: inline-block;
  250. white-space: nowrap;
  251. text-overflow: ellipsis;
  252. flex-grow: 1;
  253. }
  254. .graph-annotation__edit-icon {
  255. padding-left: $spacer;
  256. }
  257. .graph-annotation__time {
  258. color: $text-muted;
  259. font-style: italic;
  260. font-weight: normal;
  261. display: inline-block;
  262. position: relative;
  263. top: 1px;
  264. }
  265. .graph-annotation__body {
  266. padding: 0.65rem;
  267. }
  268. .graph-annotation__user {
  269. img {
  270. border-radius: 50%;
  271. width: 16px;
  272. height: 16px;
  273. }
  274. }
  275. a[href] {
  276. color: $blue;
  277. text-decoration: underline;
  278. }
  279. }
  280. .left-yaxis-label {
  281. top: 50%;
  282. left: 2px;
  283. transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  284. // this is needed for phantomsjs 2.1
  285. -webkit-transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  286. }
  287. .right-yaxis-label {
  288. top: 50%;
  289. right: 2px;
  290. transform: translateX(50%) translateY(-50%) rotate(90deg);
  291. // this is needed for phantomsjs 2.1
  292. -webkit-transform: translateX(50%) translateY(-50%) rotate(90deg);
  293. }
  294. .axisLabel {
  295. display: inline-block;
  296. color: $text-color;
  297. font-size: $font-size-sm;
  298. position: absolute;
  299. text-align: center;
  300. font-size: 12px;
  301. }
  302. .alert-handle-wrapper {
  303. position: absolute;
  304. user-select: none;
  305. .alert-handle {
  306. z-index: 10;
  307. position: relative;
  308. float: right;
  309. box-shadow: $card-shadow;
  310. background: $card-background;
  311. cursor: move;
  312. width: 100px;
  313. font-size: $font-size-sm;
  314. border-radius: 4px;
  315. text-align: left;
  316. color: $text-muted;
  317. &:hover {
  318. background-color: $btn-inverse-bg-hl;
  319. }
  320. .icon-gf {
  321. font-size: 14px;
  322. position: relative;
  323. top: 0px;
  324. float: left;
  325. border-right: 1px solid $btn-divider-left;
  326. padding: 0.5rem 0.3rem 0.4rem 0.4rem;
  327. }
  328. }
  329. .alert-handle-value {
  330. border-left: 1px solid $btn-divider-right;
  331. padding: 0.5rem;
  332. line-height: 2rem;
  333. .alert-handle-grip {
  334. background: url($btn-drag-image) no-repeat 50% 50%;
  335. background-size: 8px;
  336. float: right;
  337. width: 1rem;
  338. height: 2rem;
  339. margin-right: 2px;
  340. }
  341. }
  342. &--T1 {
  343. right: -222px;
  344. width: 245px;
  345. .alert-handle-line {
  346. width: 145px;
  347. }
  348. }
  349. &--T0{
  350. right: -104px;
  351. width: 129px;
  352. .alert-handle-line {
  353. width: 28px;
  354. }
  355. }
  356. &--no-value {
  357. .alert-handle-line {
  358. display: none;
  359. }
  360. }
  361. .alert-handle-line {
  362. float: left;
  363. height: 2px;
  364. margin-top: 13px;
  365. z-index: 0;
  366. position: relative;
  367. &--critical {
  368. background-color: rgba(237, 46, 24, 0.60);
  369. }
  370. &--warning {
  371. background-color: rgba(247, 149, 32, 0.60);
  372. }
  373. }
  374. }
  375. .thresholds-form-disabled {
  376. filter: blur(3px);
  377. }