_panel_graph.scss 4.6 KB

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