viewLayout.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .chartview {
  2. padding-top: 30px;
  3. .chartview-toolbar {
  4. height: 30px;
  5. margin-top: -30px;
  6. display: flex;
  7. padding: 0 10px;
  8. justify-content: space-between;
  9. .chart-title {
  10. font-size: 20px;
  11. }
  12. .chart-tools {
  13. display: none;
  14. font-size: 20px;
  15. .anticon {
  16. margin-left: 10px;
  17. cursor: pointer;
  18. }
  19. }
  20. }
  21. .chartview-content {
  22. .chart-default {
  23. background-image: url(/images/chart-default.png);
  24. width: 100%;
  25. height: 100%;
  26. background-position: center;
  27. background-size: contain;
  28. background-repeat: no-repeat;
  29. }
  30. .richtexteditor {
  31. padding-bottom: 10px;
  32. height: 100%;
  33. .w-e-toolbar {
  34. height: 30px;
  35. background-color: white !important;
  36. border: none !important;
  37. position: fixed;
  38. top: 0;
  39. display: none;
  40. }
  41. .w-e-text-container {
  42. height: 100% !important;
  43. pointer-events: none;
  44. border: none !important;
  45. .w-e-text {
  46. overflow-y: auto;
  47. padding: 0 14px;
  48. &>table {
  49. margin: 0;
  50. }
  51. &>p {
  52. margin: 0;
  53. }
  54. }
  55. .w-e-panel-container {
  56. z-index:100000;
  57. }
  58. }
  59. }
  60. }
  61. &:hover {
  62. .chart-tools {
  63. display: block;
  64. .anticon {
  65. &:hover {
  66. color: red;
  67. }
  68. }
  69. }
  70. }
  71. }
  72. .chartview-edit {
  73. .chartview-toolbar {
  74. cursor: move;
  75. }
  76. .chartview-content {
  77. canvas {
  78. cursor: move;
  79. }
  80. .richtexteditor {
  81. .w-e-text-container {
  82. pointer-events: all;
  83. }
  84. }
  85. }
  86. }
  87. .previewbox {
  88. top: 50px;
  89. width: 98% !important;
  90. height: 80%;
  91. .ant-modal-content {
  92. height: 100%;
  93. .ant-modal-close {
  94. display: none;
  95. }
  96. .ant-modal-body {
  97. height: 100%;
  98. .chartview {
  99. height: 100%;
  100. }
  101. .chartview-edit {
  102. .chartview-toolbar {
  103. cursor: default;
  104. }
  105. .chartview-content {
  106. canvas {
  107. cursor: default;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. }
  114. .react-grid-layout {
  115. background: #eee;
  116. }
  117. .layoutJSON {
  118. background: #ddd;
  119. border: 1px solid black;
  120. margin-top: 10px;
  121. padding: 10px;
  122. }
  123. .columns {
  124. -moz-columns: 120px;
  125. -webkit-columns: 120px;
  126. columns: 120px;
  127. }
  128. .react-grid-item {
  129. box-sizing: border-box;
  130. }
  131. .react-grid-item:not(.react-grid-placeholder) {
  132. background: white;
  133. border: 1px solid #D6D6D6;
  134. }
  135. .react-grid-item.resizing {
  136. opacity: 0.9;
  137. }
  138. .react-grid-item.static {
  139. background: #cce;
  140. }
  141. .react-grid-item .text {
  142. font-size: 24px;
  143. text-align: center;
  144. position: absolute;
  145. top: 0;
  146. bottom: 0;
  147. left: 0;
  148. right: 0;
  149. margin: auto;
  150. }
  151. .react-grid-item .minMax {
  152. font-size: 12px;
  153. }
  154. .react-grid-item .add {
  155. cursor: pointer;
  156. }
  157. .react-grid-dragHandleExample {
  158. cursor: move; /* fallback if grab cursor is unsupported */
  159. cursor: grab;
  160. cursor: -moz-grab;
  161. cursor: -webkit-grab;
  162. }
  163. li b {
  164. font-size: 19px;
  165. line-height: 14px;
  166. }
  167. .toolbox {
  168. background-color: #dfd;
  169. width: 100%;
  170. height: 120px;
  171. overflow: scroll;
  172. }
  173. .hide-button {
  174. cursor: pointer;
  175. position: absolute;
  176. font-size: 20px;
  177. top: 0px;
  178. right: 5px;
  179. }
  180. .toolbox__title {
  181. font-size: 24px;
  182. margin-bottom: 5px;
  183. }
  184. .toolbox__items {
  185. display: block;
  186. }
  187. .toolbox__items__item {
  188. display: inline-block;
  189. text-align: center;
  190. line-height: 40px;
  191. cursor: pointer;
  192. width: 40px;
  193. height: 40px;
  194. padding: 10px;
  195. margin: 5px;
  196. border: 1px solid black;
  197. background-color: #ddd;
  198. }
  199. .react-grid-layout {
  200. position: relative;
  201. transition: height 200ms ease;
  202. }
  203. .react-grid-item {
  204. transition: all 200ms ease;
  205. transition-property: left, top;
  206. }
  207. .react-grid-item.cssTransforms {
  208. transition-property: transform;
  209. }
  210. .react-grid-item.resizing {
  211. z-index: 2;
  212. opacity: 0.5;
  213. will-change: width, height;
  214. }
  215. .react-grid-item.react-draggable-dragging {
  216. transition: none;
  217. opacity: 0.5;
  218. z-index: 3;
  219. will-change: transform;
  220. }
  221. .react-grid-item.react-grid-placeholder {
  222. background: #dddddd;
  223. border: 5px dashed #cccccc;
  224. transition-duration: 100ms;
  225. z-index: 1;
  226. user-select: none;
  227. }
  228. .react-grid-item > .react-resizable-handle {
  229. position: absolute;
  230. width: 20px;
  231. height: 20px;
  232. bottom: 0;
  233. right: 0;
  234. cursor: se-resize;
  235. }
  236. .react-grid-item > .react-resizable-handle::after {
  237. content: "";
  238. position: absolute;
  239. right: 3px;
  240. bottom: 3px;
  241. width: 5px;
  242. height: 5px;
  243. border-right: 2px solid rgba(0, 0, 0, 0.4);
  244. border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  245. }