| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- /** 全局样式 */
- $--ele-font-path: '~ele-admin/es/style/fonts';
- @import '~ele-admin/es/style/themes/dynamic.scss';
- @import '~ele-admin/es/style/index.scss';
- @import './transition/index.scss';
- /* 布局-横向 */
- /* c:center,s:start,e:end,a:around,b:between,w:wrap */
- .rx {
- display: flex;
- }
- .rx-c {
- display: flex;
- align-items: center;
- }
- .rx-cc {
- display: flex;
- flex-flow: row nowrap;
- justify-content: center;
- align-items: center;
- }
- .rx-sc {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-start;
- align-items: center;
- }
- .rx-ss {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-start;
- align-items: flex-start;
- }
- .rx-warp {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-start;
- align-items: flex-start;
- flex-wrap: wrap;
- }
- .rx-se {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-start;
- align-items: flex-end;
- }
- .rx-dir-start {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- }
- .rx-ec {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-end;
- align-items: center;
- }
- .rx-es {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-end;
- align-items: flex-start;
- }
- .rx-ee {
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-end;
- align-items: flex-end;
- }
- .rx-ac {
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-around;
- align-items: center;
- }
- .rx-bc {
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-between;
- align-items: center;
- }
- .rx-bs {
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-between;
- align-items: flex-start;
- }
- .rx-be {
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-between;
- align-items: flex-end;
- }
- .rx-vc {
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-evenly;
- align-items: center;
- }
- .rx-cs {
- display: flex;
- flex-flow: row nowrap;
- justify-content: center;
- align-items: flex-start;
- }
- .rx-wsc {
- display: flex;
- flex-flow: row wrap;
- justify-content: flex-start;
- align-items: center;
- }
- .rx-wss {
- display: flex;
- flex-flow: row wrap;
- justify-content: flex-start;
- align-content: flex-start;
- }
- .rx-wbs {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- align-content: flex-start;
- }
- /* 布局-纵向 */
- .cx {
- display: flex;
- flex-flow: column nowrap;
- }
- .cx-cc {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: center;
- }
- .cx-ce {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: flex-end;
- }
- .cx-sc {
- display: flex;
- flex-flow: column nowrap;
- justify-content: flex-start;
- align-items: center;
- }
- .cx-cs {
- display: flex;
- flex-flow: column nowrap;
- justify-content: center;
- align-items: flex-start;
- }
- .cx-rc {
- display: flex;
- flex-flow: column-reverse nowrap;
- justify-content: center;
- align-items: center;
- }
- table th .is-required::before {
- content: '*';
- color: red;
- margin-right: 4px;
- }
- // 步骤条边线显示
- //.el-step__head.is-process .el-step__icon.is-text {
- // border: none !important;
- // background: none !important;
- //}
- // .el-step.is-vertical .el-step__line{
- // left: 10px;
- // }
- .repair_infoLogs .el-step:last-of-type .el-step__line {
- display: block !important;
- width: 3px !important;
- }
- .repair_infoLogs .el-steps:last-child .el-step__line {
- display: none !important;
- }
- /* 下拉触发器(如审批按钮区的“更多”):可点击文字统一显示手型光标 */
- .el-dropdown-link {
- cursor: pointer;
- }
- /*
- * 物品清单「有效期」列:数字输入框 + 有效期单位下拉 拼成一个输入组
- * 问题:左侧输入框包在 el-form-item 里,内容区默认 40px 行高,输入框按基线排版
- * 会被往下压 2px,导致和右侧下拉框上下错位;同时两个框各自带边框,拼接处成了双线。
- * 全项目有 6 份 inventoryTable 副本(报价单/商机/合同/采购/销售/退货),统一在这里修。
- */
- .period {
- display: flex;
- align-items: center;
- width: 100%;
- .borderleftnone {
- flex: 1 1 0;
- min-width: 0;
- .el-form-item {
- margin-bottom: 0;
- }
- /* 去掉行高/基线影响,让输入框与右侧下拉框顶边对齐 */
- .el-form-item__content {
- display: flex;
- line-height: normal;
- }
- .el-input__inner {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- }
- .borderrightnone {
- /* 和左侧输入框等分整列宽度 */
- flex: 1 1 0;
- min-width: 0;
- /* 拼接处只留左侧输入框的右边框,避免两条边框叠成双线 */
- .el-input__inner {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- border-left: 0;
- }
- }
- /* 单元格很窄,默认 15px 内边距会把"请输入/请选择"截断 */
- .el-input__inner {
- padding-left: 6px;
- padding-right: 6px;
- }
- }
- /*
- * 表格内的多选(如报价单物品清单的「产地」):
- * el-tag 是 flex 子项,单元格一窄就被压扁,文字被裁掉、关闭按钮溢出到 tag 外面。
- * 这里让 tag 不被压缩,并把 tag / 关闭图标收小一号,保证 2~3 个字的选项能完整显示。
- */
- .time-form .el-select .el-tag {
- flex: 0 0 auto;
- max-width: 100%;
- height: 22px;
- line-height: 20px;
- padding: 0 4px;
- font-size: 12px;
- }
- .time-form .el-select .el-tag .el-icon-close {
- flex: none;
- position: static;
- width: 14px;
- height: 14px;
- line-height: 14px;
- font-size: 10px;
- margin-left: 3px;
- }
- .time-form .el-select__tags-text {
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- }
|