graph.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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: 5px 10px;
  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. label {
  143. display: inline-block;
  144. }
  145. .btn {
  146. padding: 1px 3px;
  147. margin-right: 0px;
  148. line-height: initial;
  149. }
  150. .close {
  151. margin-right: 5px;
  152. color: @linkColor;
  153. opacity: 0.7;
  154. text-shadow: none;
  155. }
  156. .editor-row {
  157. padding: 5px;
  158. }
  159. }
  160. .annotation-tags {
  161. color: @purple;
  162. }
  163. .graph-series-override {
  164. input {
  165. float: left;
  166. margin-right: 10px;
  167. }
  168. .graph-series-override-option {
  169. float: left;
  170. padding: 2px 6px;
  171. }
  172. .graph-series-override-selector {
  173. float: left;
  174. }
  175. }
  176. .graph-tooltip {
  177. white-space: nowrap;
  178. .graph-tooltip-time {
  179. text-align: center;
  180. font-weight: bold;
  181. position: relative;
  182. top: -3px;
  183. }
  184. .graph-tooltip-list-item {
  185. display: table-row;
  186. }
  187. .graph-tooltip-series-name {
  188. display: table-cell;
  189. }
  190. .graph-tooltip-value {
  191. display: table-cell;
  192. font-weight: bold;
  193. padding-left: 10px;
  194. text-align: right;
  195. }
  196. }
  197. .left-yaxis-label {
  198. top: 50%;
  199. left: -5px;
  200. transform: rotate(-90deg);
  201. -o-transform: rotate(-90deg);
  202. -ms-transform: rotate(-90deg);
  203. -moz-transform: rotate(-90deg);
  204. -webkit-transform: rotate(-90deg);
  205. transform-origin: left top;
  206. -o-transform-origin: left top;
  207. -ms-transform-origin: left top;
  208. -moz-transform-origin: left top;
  209. -webkit-transform-origin: left top;
  210. }
  211. .right-yaxis-label {
  212. top: 50%;
  213. right: -5px;
  214. -webkit-transform: rotate(90deg);
  215. -webkit-transform-origin: right top;
  216. -moz-transform: rotate(90deg);
  217. -moz-transform-origin: right top;
  218. -ms-transform: rotate(90deg);
  219. -ms-transform-origin: right top;
  220. -o-transform: rotate(90deg);
  221. -o-transform-origin: right top;
  222. transform: rotate(90deg);
  223. transform-origin: right top;
  224. }
  225. .axisLabel {
  226. color: @textColor;
  227. font-size: @fontSizeSmall;
  228. position: absolute;
  229. text-align: center;
  230. font-size: 12px;
  231. }