index.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. /** 全局样式 */
  2. $--ele-font-path: '~ele-admin/es/style/fonts';
  3. @import '~ele-admin/es/style/themes/dynamic.scss';
  4. @import '~ele-admin/es/style/index.scss';
  5. @import './transition/index.scss';
  6. /* 布局-横向 */
  7. /* c:center,s:start,e:end,a:around,b:between,w:wrap */
  8. .rx {
  9. display: flex;
  10. }
  11. .rx-c {
  12. display: flex;
  13. align-items: center;
  14. }
  15. .rx-cc {
  16. display: flex;
  17. flex-flow: row nowrap;
  18. justify-content: center;
  19. align-items: center;
  20. }
  21. .rx-sc {
  22. display: flex;
  23. flex-flow: row nowrap;
  24. justify-content: flex-start;
  25. align-items: center;
  26. }
  27. .rx-ss {
  28. display: flex;
  29. flex-flow: row nowrap;
  30. justify-content: flex-start;
  31. align-items: flex-start;
  32. }
  33. .rx-warp {
  34. display: flex;
  35. flex-flow: row nowrap;
  36. justify-content: flex-start;
  37. align-items: flex-start;
  38. flex-wrap: wrap;
  39. }
  40. .rx-se {
  41. display: flex;
  42. flex-flow: row nowrap;
  43. justify-content: flex-start;
  44. align-items: flex-end;
  45. }
  46. .rx-dir-start {
  47. display: flex;
  48. flex-direction: column;
  49. align-items: flex-start;
  50. }
  51. .rx-ec {
  52. display: flex;
  53. flex-flow: row nowrap;
  54. justify-content: flex-end;
  55. align-items: center;
  56. }
  57. .rx-es {
  58. display: flex;
  59. flex-flow: row nowrap;
  60. justify-content: flex-end;
  61. align-items: flex-start;
  62. }
  63. .rx-ee {
  64. display: flex;
  65. flex-flow: row nowrap;
  66. justify-content: flex-end;
  67. align-items: flex-end;
  68. }
  69. .rx-ac {
  70. display: flex;
  71. flex-flow: row nowrap;
  72. justify-content: space-around;
  73. align-items: center;
  74. }
  75. .rx-bc {
  76. display: flex;
  77. flex-flow: row nowrap;
  78. justify-content: space-between;
  79. align-items: center;
  80. }
  81. .rx-bs {
  82. display: flex;
  83. flex-flow: row nowrap;
  84. justify-content: space-between;
  85. align-items: flex-start;
  86. }
  87. .rx-be {
  88. display: flex;
  89. flex-flow: row nowrap;
  90. justify-content: space-between;
  91. align-items: flex-end;
  92. }
  93. .rx-vc {
  94. display: flex;
  95. flex-flow: row nowrap;
  96. justify-content: space-evenly;
  97. align-items: center;
  98. }
  99. .rx-cs {
  100. display: flex;
  101. flex-flow: row nowrap;
  102. justify-content: center;
  103. align-items: flex-start;
  104. }
  105. .rx-wsc {
  106. display: flex;
  107. flex-flow: row wrap;
  108. justify-content: flex-start;
  109. align-items: center;
  110. }
  111. .rx-wss {
  112. display: flex;
  113. flex-flow: row wrap;
  114. justify-content: flex-start;
  115. align-content: flex-start;
  116. }
  117. .rx-wbs {
  118. display: flex;
  119. flex-flow: row wrap;
  120. justify-content: space-between;
  121. align-content: flex-start;
  122. }
  123. /* 布局-纵向 */
  124. .cx {
  125. display: flex;
  126. flex-flow: column nowrap;
  127. }
  128. .cx-cc {
  129. display: flex;
  130. flex-flow: column nowrap;
  131. justify-content: center;
  132. align-items: center;
  133. }
  134. .cx-ce {
  135. display: flex;
  136. flex-flow: column nowrap;
  137. justify-content: center;
  138. align-items: flex-end;
  139. }
  140. .cx-sc {
  141. display: flex;
  142. flex-flow: column nowrap;
  143. justify-content: flex-start;
  144. align-items: center;
  145. }
  146. .cx-cs {
  147. display: flex;
  148. flex-flow: column nowrap;
  149. justify-content: center;
  150. align-items: flex-start;
  151. }
  152. .cx-rc {
  153. display: flex;
  154. flex-flow: column-reverse nowrap;
  155. justify-content: center;
  156. align-items: center;
  157. }
  158. table th .is-required::before {
  159. content: '*';
  160. color: red;
  161. margin-right: 4px;
  162. }
  163. // 步骤条边线显示
  164. //.el-step__head.is-process .el-step__icon.is-text {
  165. // border: none !important;
  166. // background: none !important;
  167. //}
  168. // .el-step.is-vertical .el-step__line{
  169. // left: 10px;
  170. // }
  171. .repair_infoLogs .el-step:last-of-type .el-step__line {
  172. display: block !important;
  173. width: 3px !important;
  174. }
  175. .repair_infoLogs .el-steps:last-child .el-step__line {
  176. display: none !important;
  177. }
  178. /* 下拉触发器(如审批按钮区的“更多”):可点击文字统一显示手型光标 */
  179. .el-dropdown-link {
  180. cursor: pointer;
  181. }
  182. /*
  183. * 物品清单「有效期」列:数字输入框 + 有效期单位下拉 拼成一个输入组
  184. * 问题:左侧输入框包在 el-form-item 里,内容区默认 40px 行高,输入框按基线排版
  185. * 会被往下压 2px,导致和右侧下拉框上下错位;同时两个框各自带边框,拼接处成了双线。
  186. * 全项目有 6 份 inventoryTable 副本(报价单/商机/合同/采购/销售/退货),统一在这里修。
  187. */
  188. .period {
  189. display: flex;
  190. align-items: center;
  191. width: 100%;
  192. .borderleftnone {
  193. flex: 1 1 0;
  194. min-width: 0;
  195. .el-form-item {
  196. margin-bottom: 0;
  197. }
  198. /* 去掉行高/基线影响,让输入框与右侧下拉框顶边对齐 */
  199. .el-form-item__content {
  200. display: flex;
  201. line-height: normal;
  202. }
  203. .el-input__inner {
  204. border-top-right-radius: 0;
  205. border-bottom-right-radius: 0;
  206. }
  207. }
  208. .borderrightnone {
  209. /* 和左侧输入框等分整列宽度 */
  210. flex: 1 1 0;
  211. min-width: 0;
  212. /* 拼接处只留左侧输入框的右边框,避免两条边框叠成双线 */
  213. .el-input__inner {
  214. border-top-left-radius: 0;
  215. border-bottom-left-radius: 0;
  216. border-left: 0;
  217. }
  218. }
  219. /* 单元格很窄,默认 15px 内边距会把"请输入/请选择"截断 */
  220. .el-input__inner {
  221. padding-left: 6px;
  222. padding-right: 6px;
  223. }
  224. }
  225. /*
  226. * 表格内的多选(如报价单物品清单的「产地」):
  227. * el-tag 是 flex 子项,单元格一窄就被压扁,文字被裁掉、关闭按钮溢出到 tag 外面。
  228. * 这里让 tag 不被压缩,并把 tag / 关闭图标收小一号,保证 2~3 个字的选项能完整显示。
  229. */
  230. .time-form .el-select .el-tag {
  231. flex: 0 0 auto;
  232. max-width: 100%;
  233. height: 22px;
  234. line-height: 20px;
  235. padding: 0 4px;
  236. font-size: 12px;
  237. }
  238. .time-form .el-select .el-tag .el-icon-close {
  239. flex: none;
  240. position: static;
  241. width: 14px;
  242. height: 14px;
  243. line-height: 14px;
  244. font-size: 10px;
  245. margin-left: 3px;
  246. }
  247. .time-form .el-select__tags-text {
  248. max-width: 100%;
  249. overflow: hidden;
  250. text-overflow: ellipsis;
  251. }