graph.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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-series {
  41. float: left;
  42. white-space: nowrap;
  43. padding-left: 10px;
  44. padding-top: 6px;
  45. }
  46. .graph-legend-value {
  47. padding-left: 6px;
  48. }
  49. .graph-legend-table {
  50. display: table;
  51. width: 100%;
  52. margin: 0;
  53. .graph-legend-series {
  54. display: table-row;
  55. float: none;
  56. padding-left: 0;
  57. &.pull-right {
  58. float: none;
  59. }
  60. }
  61. td, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  62. float: none;
  63. display: table-cell;
  64. white-space: nowrap;
  65. padding: 2px 10px;
  66. text-align: right;
  67. border-bottom: 1px solid @grafanaListBorderBottom;
  68. }
  69. .graph-legend-icon {
  70. width: 5px;
  71. padding: 0;
  72. top: 0;
  73. .icon-minus {
  74. position: relative;
  75. top: 2px;
  76. }
  77. }
  78. .graph-legend-value {
  79. padding-left: 15px;
  80. }
  81. .graph-legend-alias {
  82. padding-left: 7px;
  83. text-align: left;
  84. width: 95%;
  85. }
  86. .graph-legend-series:nth-child(odd) {
  87. background-color: @grafanaListAccent;
  88. }
  89. .graph-legend-value {
  90. &.current, &.max, &.min, &.total, &.avg {
  91. &:before {
  92. content: '';
  93. }
  94. }
  95. }
  96. th {
  97. text-align: right;
  98. padding: 5px 10px;
  99. font-weight: bold;
  100. color: @blue;
  101. font-size: 85%;
  102. white-space: nowrap;
  103. }
  104. }
  105. .graph-legend-rightside {
  106. &.graph-wrapper {
  107. display: table;
  108. width: 100%;
  109. }
  110. .graph-canvas-wrapper {
  111. display: table-cell;
  112. width: 100%;
  113. position: relative;
  114. }
  115. .graph-legend-wrapper {
  116. display: table-cell;
  117. vertical-align: top;
  118. position: relative;
  119. left: 4px;
  120. top: -20px;
  121. }
  122. .graph-legend {
  123. margin: 0;
  124. }
  125. .graph-legend-series {
  126. display: block;
  127. padding-left: 0px;
  128. }
  129. .graph-legend-table .graph-legend-series {
  130. display: table-row;
  131. }
  132. }
  133. .graph-legend-series-hidden {
  134. a {
  135. color: @linkColorDisabled;
  136. }
  137. }
  138. .graph-legend-popover {
  139. width: 200px;
  140. label {
  141. display: inline-block;
  142. }
  143. .btn {
  144. padding: 1px 3px;
  145. margin-right: 0px;
  146. line-height: initial;
  147. }
  148. .close {
  149. margin-right: 5px;
  150. color: @linkColor;
  151. opacity: 0.7;
  152. text-shadow: none;
  153. }
  154. .editor-row {
  155. padding: 5px;
  156. }
  157. }
  158. .annotation-tags {
  159. color: @purple;
  160. }
  161. .graph-series-override {
  162. input {
  163. float: left;
  164. margin-right: 10px;
  165. }
  166. .graph-series-override-option {
  167. float: left;
  168. padding: 2px 6px;
  169. }
  170. .graph-series-override-selector {
  171. float: left;
  172. }
  173. }
  174. .graph-tooltip {
  175. white-space: nowrap;
  176. .graph-tooltip-time {
  177. text-align: center;
  178. font-weight: bold;
  179. position: relative;
  180. top: -3px;
  181. }
  182. .graph-tooltip-list-item {
  183. display: table-row;
  184. }
  185. .graph-tooltip-series-name {
  186. display: table-cell;
  187. }
  188. .graph-tooltip-value {
  189. display: table-cell;
  190. font-weight: bold;
  191. padding-left: 10px;
  192. text-align: right;
  193. }
  194. }