graph.less 4.3 KB

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