Pivot.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. @import '~assets/less/variable';
  2. .wrapper {
  3. flex: 1;
  4. display: flex;
  5. flex-direction: column;
  6. min-height: 0;
  7. position: relative;
  8. }
  9. .block {
  10. flex: 1;
  11. display: flex;
  12. flex-direction: row;
  13. min-height: 0;
  14. .leftSide {
  15. flex-shrink: 0;
  16. display: flex;
  17. flex-direction: column;
  18. .corner {
  19. flex-shrink: 0;
  20. border: 0;
  21. &.raw {
  22. border-top: 1px;
  23. border-left: 1px;
  24. }
  25. }
  26. .rowHeader {
  27. flex: 1;
  28. display: flex;
  29. flex-direction: row;
  30. min-height: 0;
  31. .rowTitle {
  32. flex-shrink: 0;
  33. max-height: 100%;
  34. font-size: 1.16em;
  35. font-weight: bold;
  36. display: flex;
  37. align-items: center;
  38. .ellipsis;
  39. p {
  40. transform-origin: 0 center;
  41. }
  42. }
  43. .rowBody {
  44. flex-shrink: 0;
  45. overflow-y: auto;
  46. // display: flex;
  47. // flex-direction: row;
  48. .hideScrollbar;
  49. }
  50. }
  51. .rowFooter {
  52. flex-shrink: 0;
  53. height: 50px;
  54. }
  55. }
  56. .rightSide {
  57. min-width: 0;
  58. flex: 1;
  59. display: flex;
  60. flex-direction: column;
  61. .columnTitle {
  62. max-width: 100%;
  63. text-align: center;
  64. font-size: 14px;
  65. font-weight: bold;
  66. line-height: 27px;
  67. .ellipsis;
  68. }
  69. .columnHeader {
  70. flex-shrink: 0;
  71. overflow-x: auto;
  72. .hideScrollbar;
  73. }
  74. .columnBody {
  75. flex: 1;
  76. overflow: auto;
  77. &.bodyCollapsed {
  78. flex: none;
  79. }
  80. }
  81. .columnFooter {
  82. flex-shrink: 0;
  83. height: 50px;
  84. overflow-x: auto;
  85. .hideScrollbar;
  86. }
  87. }
  88. .xAxis {
  89. height: 100%;
  90. display: flex;
  91. flex-direction: row;
  92. }
  93. .yAxis {
  94. flex-shrink: 0;
  95. width: 64px;
  96. }
  97. .legend {
  98. flex-shrink: 0;
  99. max-width: 180px;
  100. margin-bottom: 50px;
  101. overflow-y: auto;
  102. display: none;
  103. &.shown {
  104. display: block;
  105. }
  106. }
  107. }
  108. .pivot {
  109. border-collapse: collapse;
  110. border-spacing: 0;
  111. tr {
  112. &:nth-child(even) > td {
  113. background-color: fade(@black, 5);
  114. }
  115. }
  116. th {
  117. border: 0;
  118. line-height: 26px;
  119. p {
  120. max-width: 200px;
  121. margin: 0 auto; // 单th 100%
  122. .ellipsis;
  123. &.colContent {
  124. height: 26px;
  125. }
  126. &.hasAuxiliaryLine {
  127. position: relative;
  128. overflow: visible;
  129. .line {
  130. width: 64px;
  131. border: 0;
  132. border-top: 1px;
  133. position: absolute;
  134. top: -1px;
  135. left: 100%;
  136. z-index: 1;
  137. }
  138. }
  139. }
  140. }
  141. td {
  142. padding: 4px;
  143. line-height: 18px;
  144. }
  145. .cellContent {
  146. text-align: right;
  147. }
  148. .topBorder {
  149. border-top: 1px;
  150. }
  151. .bottomBorder {
  152. border-top: 1px;
  153. }
  154. .leftBorder {
  155. border-left: 1px;
  156. }
  157. .rightBorder {
  158. border-right: 1px;
  159. }
  160. }
  161. .chartContainer {
  162. display: flex;
  163. flex-direction: column;
  164. .chartRow {
  165. flex-shrink: 0;
  166. display: flex;
  167. flex-direction: row;
  168. .chartColumn {
  169. flex-shrink: 0;
  170. }
  171. }
  172. }
  173. .columnHeader,
  174. .rowBody,
  175. .columnBody {
  176. &.raw {
  177. th,
  178. td {
  179. border: 1px;
  180. }
  181. }
  182. }
  183. .columnHeader {
  184. &.raw {
  185. position: relative;
  186. top: 1px;
  187. }
  188. }
  189. .rowBody {
  190. &.raw {
  191. position: relative;
  192. left: 1px;
  193. }
  194. }
  195. .legendBox {
  196. padding: 8px 0 8px 16px;
  197. h3 {
  198. padding-left: 6px;
  199. line-height: 2.5em;
  200. .ellipsis;
  201. }
  202. .list {
  203. li {
  204. height: 2.25em;
  205. padding: 0 4px 0 28px;
  206. line-height: 2.25em;
  207. position: relative;
  208. cursor: pointer;
  209. .ellipsis;
  210. &:hover {
  211. background-color: fade(@black, 5);
  212. }
  213. &.disabled {
  214. color: @disabled-text-color !important;
  215. span {
  216. background-color: @disabled-text-color !important;
  217. }
  218. }
  219. span {
  220. width: 16px;
  221. height: 16px;
  222. border-radius: 2px;
  223. position: absolute;
  224. top: 6px;
  225. left: 6px;
  226. }
  227. }
  228. }
  229. }