_panel_graph.scss 4.7 KB

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