_panel_graph.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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. .graph-legend-series {
  80. display: table-row;
  81. float: none;
  82. padding-left: 0;
  83. &--right-y {
  84. float: none;
  85. .graph-legend-alias:after {
  86. content: '(right-y)';
  87. padding: 0 5px;
  88. color: $text-color-weak;
  89. }
  90. }
  91. }
  92. td, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  93. float: none;
  94. display: table-cell;
  95. white-space: nowrap;
  96. padding: 2px 10px;
  97. text-align: right;
  98. }
  99. .graph-legend-icon {
  100. width: 5px;
  101. padding: 0;
  102. top: 0;
  103. .fa {
  104. top: 4px;
  105. }
  106. }
  107. .graph-legend-value {
  108. padding-left: 15px;
  109. }
  110. .graph-legend-alias {
  111. padding-left: 7px;
  112. text-align: left;
  113. width: 95%;
  114. }
  115. .graph-legend-series:nth-child(odd) {
  116. background-color: $grafanaListAccent;
  117. }
  118. .graph-legend-value {
  119. &.current, &.max, &.min, &.total, &.avg {
  120. &:before {
  121. content: '';
  122. }
  123. }
  124. }
  125. th {
  126. text-align: right;
  127. padding: 0px 10px 1px 0;
  128. font-weight: bold;
  129. color: $blue;
  130. font-size: 85%;
  131. white-space: nowrap;
  132. }
  133. }
  134. .graph-legend-rightside {
  135. &.graph-wrapper {
  136. display: table;
  137. width: 100%;
  138. }
  139. .graph-canvas-wrapper {
  140. display: table-cell;
  141. width: 100%;
  142. position: relative;
  143. }
  144. .graph-legend-wrapper {
  145. display: table-cell;
  146. vertical-align: top;
  147. position: relative;
  148. left: 4px;
  149. }
  150. .graph-legend {
  151. margin: 0;
  152. }
  153. .graph-legend-series {
  154. display: block;
  155. padding-left: 0px;
  156. }
  157. .graph-legend-table .graph-legend-series {
  158. display: table-row;
  159. }
  160. }
  161. .graph-legend-series-hidden {
  162. .graph-legend-value,
  163. .graph-legend-alias {
  164. color: $link-color-disabled;
  165. }
  166. }
  167. .graph-legend-popover {
  168. width: 200px;
  169. label {
  170. display: inline-block;
  171. }
  172. .btn {
  173. padding: 1px 3px;
  174. margin-right: 0px;
  175. line-height: initial;
  176. }
  177. .close {
  178. margin-right: 5px;
  179. color: $link-color;
  180. opacity: 0.7;
  181. text-shadow: none;
  182. }
  183. .editor-row {
  184. padding: 5px;
  185. }
  186. }
  187. .annotation-tags {
  188. color: $purple;
  189. }
  190. .graph-series-override {
  191. input {
  192. float: left;
  193. margin-right: 10px;
  194. }
  195. .graph-series-override-option {
  196. float: left;
  197. padding: 2px 6px;
  198. }
  199. .graph-series-override-selector {
  200. float: left;
  201. }
  202. }
  203. .graph-tooltip {
  204. white-space: nowrap;
  205. font-size: $font-size-sm;
  206. background-color: $graph-tooltip-bg;
  207. color: $text-color;
  208. .graph-tooltip-time {
  209. text-align: center;
  210. position: relative;
  211. top: -3px;
  212. padding: 0.2rem;
  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. }
  225. .graph-tooltip-value {
  226. display: table-cell;
  227. font-weight: bold;
  228. padding-left: 15px;
  229. text-align: right;
  230. }
  231. }
  232. .graph-annotation {
  233. .label-tag {
  234. margin-right: 4px;
  235. margin-top: 8px;
  236. }
  237. .graph-annotation-title {
  238. font-weight: $font-weight-semi-bold;
  239. position: relative;
  240. top: -0.4rem;
  241. }
  242. a {
  243. color: $blue;
  244. text-decoration: underline;
  245. }
  246. .graph-annotation-time {
  247. position: relative;
  248. text-align: center;
  249. top: 0.6rem;
  250. }
  251. }
  252. .left-yaxis-label {
  253. top: 50%;
  254. left: -5px;
  255. transform: rotate(-90deg);
  256. transform-origin: left top;
  257. }
  258. .right-yaxis-label {
  259. top: 50%;
  260. right: -5px;
  261. transform: rotate(90deg);
  262. transform-origin: right top;
  263. }
  264. .axisLabel {
  265. color: $text-color;
  266. font-size: $font-size-sm;
  267. position: absolute;
  268. text-align: center;
  269. font-size: 12px;
  270. }