_panel_graph.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 20px;
  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. min-height: 100px;
  158. label {
  159. display: inline-block;
  160. }
  161. .btn {
  162. padding: 1px 3px;
  163. margin-right: 0px;
  164. line-height: initial;
  165. }
  166. .close {
  167. margin-right: 5px;
  168. color: $link-color;
  169. opacity: 0.7;
  170. text-shadow: none;
  171. }
  172. .editor-row {
  173. padding: 5px;
  174. }
  175. }
  176. .annotation-tags {
  177. color: $purple;
  178. }
  179. .graph-series-override {
  180. input {
  181. float: left;
  182. margin-right: 10px;
  183. }
  184. .graph-series-override-option {
  185. float: left;
  186. padding: 2px 6px;
  187. }
  188. .graph-series-override-selector {
  189. float: left;
  190. }
  191. }
  192. .graph-tooltip {
  193. white-space: nowrap;
  194. .graph-tooltip-time {
  195. text-align: center;
  196. font-weight: $font-weight-semi-bold;
  197. position: relative;
  198. top: -3px;
  199. }
  200. .tone-down {
  201. opacity: 0.7;
  202. }
  203. .label-tag {
  204. margin-right: 4px;
  205. margin-top: 8px;
  206. }
  207. .graph-tooltip-list-item {
  208. display: table-row;
  209. }
  210. .graph-tooltip-series-name {
  211. display: table-cell;
  212. }
  213. .graph-tooltip-value {
  214. display: table-cell;
  215. font-weight: bold;
  216. padding-left: 10px;
  217. text-align: right;
  218. }
  219. }
  220. .left-yaxis-label {
  221. top: 50%;
  222. left: -5px;
  223. transform: rotate(-90deg);
  224. -o-transform: rotate(-90deg);
  225. -ms-transform: rotate(-90deg);
  226. -moz-transform: rotate(-90deg);
  227. -webkit-transform: rotate(-90deg);
  228. transform-origin: left top;
  229. -o-transform-origin: left top;
  230. -ms-transform-origin: left top;
  231. -moz-transform-origin: left top;
  232. -webkit-transform-origin: left top;
  233. }
  234. .right-yaxis-label {
  235. top: 50%;
  236. right: -5px;
  237. -webkit-transform: rotate(90deg);
  238. -webkit-transform-origin: right top;
  239. -moz-transform: rotate(90deg);
  240. -moz-transform-origin: right top;
  241. -ms-transform: rotate(90deg);
  242. -ms-transform-origin: right top;
  243. -o-transform: rotate(90deg);
  244. -o-transform-origin: right top;
  245. transform: rotate(90deg);
  246. transform-origin: right top;
  247. }
  248. .axisLabel {
  249. color: $text-color;
  250. font-size: $font-size-sm;
  251. position: absolute;
  252. text-align: center;
  253. font-size: 12px;
  254. }
  255. .graph-legend-fixed-height {
  256. overflow-y: scroll;
  257. }