_panel_graph.scss 4.4 KB

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