panel_graph.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. width: 100%;
  56. margin: 0;
  57. .graph-legend-series {
  58. display: table-row;
  59. float: none;
  60. padding-left: 0;
  61. &.pull-right {
  62. float: none;
  63. }
  64. }
  65. td, .graph-legend-alias, .graph-legend-icon, .graph-legend-value {
  66. float: none;
  67. display: table-cell;
  68. white-space: nowrap;
  69. padding: 2px 10px;
  70. text-align: right;
  71. }
  72. .graph-legend-icon {
  73. width: 5px;
  74. padding: 0;
  75. top: 0;
  76. .fa {
  77. top: 4px;
  78. }
  79. }
  80. .graph-legend-value {
  81. padding-left: 15px;
  82. }
  83. .graph-legend-alias {
  84. padding-left: 7px;
  85. text-align: left;
  86. width: 95%;
  87. }
  88. .graph-legend-series:nth-child(odd) {
  89. background-color: @grafanaListAccent;
  90. }
  91. .graph-legend-value {
  92. &.current, &.max, &.min, &.total, &.avg {
  93. &:before {
  94. content: '';
  95. }
  96. }
  97. }
  98. th {
  99. text-align: right;
  100. padding: 0px 10px 1px 0;
  101. font-weight: bold;
  102. color: @blue;
  103. font-size: 85%;
  104. white-space: nowrap;
  105. }
  106. }
  107. .graph-legend-rightside {
  108. &.graph-wrapper {
  109. display: table;
  110. width: 100%;
  111. }
  112. .graph-canvas-wrapper {
  113. display: table-cell;
  114. width: 100%;
  115. position: relative;
  116. }
  117. .graph-legend-wrapper {
  118. display: table-cell;
  119. vertical-align: top;
  120. position: relative;
  121. left: 4px;
  122. }
  123. .graph-legend {
  124. margin: 0;
  125. }
  126. .graph-legend-series {
  127. display: block;
  128. padding-left: 0px;
  129. }
  130. .graph-legend-table .graph-legend-series {
  131. display: table-row;
  132. }
  133. }
  134. .graph-legend-series-hidden {
  135. a {
  136. color: @linkColorDisabled;
  137. }
  138. }
  139. .graph-legend-popover {
  140. width: 200px;
  141. min-height: 100px;
  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. .label-tag {
  185. margin-right: 4px;
  186. margin-top: 8px;
  187. }
  188. .graph-tooltip-list-item {
  189. display: table-row;
  190. }
  191. .graph-tooltip-series-name {
  192. display: table-cell;
  193. }
  194. .graph-tooltip-value {
  195. display: table-cell;
  196. font-weight: bold;
  197. padding-left: 10px;
  198. text-align: right;
  199. }
  200. }
  201. .left-yaxis-label {
  202. top: 50%;
  203. left: -5px;
  204. transform: rotate(-90deg);
  205. -o-transform: rotate(-90deg);
  206. -ms-transform: rotate(-90deg);
  207. -moz-transform: rotate(-90deg);
  208. -webkit-transform: rotate(-90deg);
  209. transform-origin: left top;
  210. -o-transform-origin: left top;
  211. -ms-transform-origin: left top;
  212. -moz-transform-origin: left top;
  213. -webkit-transform-origin: left top;
  214. }
  215. .right-yaxis-label {
  216. top: 50%;
  217. right: -5px;
  218. -webkit-transform: rotate(90deg);
  219. -webkit-transform-origin: right top;
  220. -moz-transform: rotate(90deg);
  221. -moz-transform-origin: right top;
  222. -ms-transform: rotate(90deg);
  223. -ms-transform-origin: right top;
  224. -o-transform: rotate(90deg);
  225. -o-transform-origin: right top;
  226. transform: rotate(90deg);
  227. transform-origin: right top;
  228. }
  229. .axisLabel {
  230. color: @textColor;
  231. font-size: @fontSizeSmall;
  232. position: absolute;
  233. text-align: center;
  234. font-size: 12px;
  235. }
  236. .graph-legend-fixed-height {
  237. overflow-y: scroll;
  238. }