style.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. @import "~ant-design-vue/es/style/themes/default.less";
  2. // 编辑器
  3. .editor {
  4. min-width: 370px;
  5. min-height: 648px;
  6. padding: 10px 15px;
  7. background: #f8f9fa;
  8. // overflow: hidden;
  9. // 标题
  10. &-title {
  11. font-size: @font-size-base;
  12. font-weight: 600;
  13. color: #595961;
  14. margin-top: 5px;
  15. }
  16. // 内容
  17. &-content {
  18. margin-top: 15px;
  19. width: 340px;
  20. }
  21. // 副标题
  22. .sub-title {
  23. text-align: center;
  24. font-size: @font-size-base;
  25. color: #9797a1;
  26. margin-bottom: 15px;
  27. line-height: 20px;
  28. }
  29. // 文字标签
  30. .label,
  31. .tips-wrap,
  32. .link {
  33. display: block;
  34. // line-height: 32px;
  35. white-space: nowrap;
  36. font-size: 12px;
  37. }
  38. .label {
  39. margin-right: 20px;
  40. &.value {
  41. max-width: 164px;
  42. white-space: nowrap;
  43. text-overflow: ellipsis;
  44. overflow: hidden;
  45. word-break: break-all;
  46. }
  47. }
  48. .tips-wrap {
  49. flex: 1;
  50. color: #a7a7b1;
  51. }
  52. // 区块
  53. .block-box {
  54. border-radius: 4px;
  55. padding: 12px 11px;
  56. background: #f0f2f5;
  57. margin: 0 auto 10px;
  58. &:last-child {
  59. margin-bottom: 0;
  60. }
  61. &.drag {
  62. .block-title {
  63. cursor: move;
  64. }
  65. }
  66. .block-title {
  67. line-height: 30px;
  68. font-weight: 700;
  69. font-size: @font-size-base;
  70. margin-bottom: 10px;
  71. display: flex;
  72. justify-content: space-between;
  73. &:last-child {
  74. margin-bottom: 0;
  75. }
  76. .link,
  77. .tips {
  78. font-size: 12px;
  79. font-weight: normal;
  80. }
  81. .link {
  82. letter-spacing: 1px
  83. }
  84. .tips {
  85. color: #9797a1;
  86. }
  87. }
  88. .block-item {
  89. display: flex;
  90. justify-content: space-between;
  91. align-items: center;
  92. margin-bottom: 15px;
  93. &:last-child {
  94. margin-bottom: 0;
  95. }
  96. &.has-tips {
  97. .label {
  98. margin-top: -22px;
  99. }
  100. }
  101. .tips {
  102. margin-top: 5px;
  103. font-size: 12px;
  104. color: #9797a1;
  105. }
  106. &-common {
  107. flex: 1;
  108. &-row {
  109. display: flex;
  110. align-items: center;
  111. margin-bottom: 6px;
  112. // line-height: 32px;
  113. &:last-child {
  114. margin-bottom: 0;
  115. }
  116. }
  117. }
  118. &-custom {
  119. margin-left: 20px;
  120. }
  121. }
  122. }
  123. }
  124. // 颜色选择器
  125. .item-colorPicker {
  126. display: flex;
  127. // 重置颜色
  128. .rest-color {
  129. margin-right: 10px;
  130. font-size: 12px;
  131. line-height: 32px;
  132. cursor: pointer;
  133. color: @primary-color !important;
  134. }
  135. // 颜色选择组件
  136. .m-colorPicker {
  137. display: block;
  138. background-color: #ffffff;
  139. border: 1px solid #efefef;
  140. padding: 5px;
  141. width: 61px;
  142. /deep/.colorBtn {
  143. cursor: pointer;
  144. width: 48px;
  145. height: 20px;
  146. border: 1px solid #000;
  147. }
  148. /deep/.box {
  149. left: -152px;
  150. top: 35px;
  151. z-index: 9999;
  152. }
  153. }
  154. }
  155. // 多选框
  156. .item-checkbox {
  157. margin-right: -10px;
  158. user-select: none;
  159. .ant-checkbox-wrapper {
  160. margin: 0 10px 0 0;
  161. line-height: 28px;
  162. font-size: 12px;
  163. }
  164. .ant-checkbox-wrapper+.ant-checkbox-wrapper {
  165. margin-left: 0;
  166. }
  167. }
  168. // 滑块组件
  169. .item-slider {
  170. width: 100%;
  171. display: flex;
  172. .ant-slider {
  173. flex: 1;
  174. margin: 10px 10px 10px 6px;
  175. /deep/.ant-slider-rail {
  176. background: #dfdfe1;
  177. }
  178. }
  179. }
  180. // 单位
  181. .unit-text {
  182. padding: 0 10px;
  183. line-height: 32px;
  184. font-size: 12px;
  185. }
  186. // 新增数据
  187. .data-add {
  188. margin-top: 10px;
  189. button {
  190. width: 100%;
  191. color: @primary-color;
  192. height: 40px;
  193. border-radius: 5px;
  194. font-size: 12px;
  195. border-color: #cccccc21;
  196. &:hover {
  197. border-color: @primary-color;
  198. }
  199. }
  200. }
  201. // 文字描述
  202. .text-describe {
  203. padding: 5px;
  204. font-size: @font-size-base;
  205. line-height: 25px;
  206. .empty {
  207. height: 10px;
  208. }
  209. }
  210. // 覆盖默认样式
  211. a {
  212. user-select: none;
  213. }
  214. .ant-input {
  215. font-size: 12px;
  216. border-radius: 5px;
  217. }
  218. .ant-tabs {
  219. overflow: unset;
  220. /deep/.ant-tabs-nav-container {
  221. font-size: 12.5px;
  222. .ant-tabs-nav {
  223. width: 100%;
  224. .ant-tabs-tab {
  225. padding: 12px 20px;
  226. color: #595961;
  227. width: 105px;
  228. margin: 0 30px;
  229. text-align: center;
  230. }
  231. }
  232. .ant-tabs-ink-bar {
  233. background-color: #595961;
  234. height: 3px;
  235. }
  236. }
  237. }
  238. .ant-radio-group {
  239. font-size: 12px;
  240. /deep/.ant-radio-button-wrapper {
  241. height: 30px;
  242. line-height: 28px;
  243. }
  244. }