| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789 |
- // 全局样式
- html,
- body,
- #app {
- min-height: 100%;
- }
- body {
- font-family:
- Inter,
- -apple-system,
- BlinkMacSystemFont,
- 'Segoe UI',
- Roboto,
- sans-serif;
- font-size: 14px;
- line-height: 1.5;
- color: var(--mint-text);
- background: var(--mint-bg-page);
- }
- :root {
- --theme-color: var(--mint-primary);
- --default-bg-color: var(--mint-bg-page);
- --default-box-color: var(--mint-surface);
- --art-card-border: var(--mint-border);
- --custom-radius: 16px;
- }
- // 顶部进度条颜色
- #nprogress .bar {
- z-index: 2400;
- background-color: var(--mint-primary);
- }
- #nprogress .peg {
- box-shadow:
- 0 0 10px var(--theme-color),
- 0 0 5px var(--theme-color) !important;
- }
- #nprogress .spinner-icon {
- border-top-color: var(--theme-color) !important;
- border-left-color: var(--theme-color) !important;
- }
- // 处理移动端组件兼容性
- @media screen and (max-width: 640px) {
- * {
- cursor: default !important;
- }
- }
- // 背景滤镜
- *,
- ::before,
- ::after {
- --tw-backdrop-blur: ;
- --tw-backdrop-brightness: ;
- --tw-backdrop-contrast: ;
- --tw-backdrop-grayscale: ;
- --tw-backdrop-hue-rotate: ;
- --tw-backdrop-invert: ;
- --tw-backdrop-opacity: ;
- --tw-backdrop-saturate: ;
- --tw-backdrop-sepia: ;
- }
- // 色弱模式
- .color-weak {
- filter: invert(80%);
- -webkit-filter: invert(80%);
- }
- #noop {
- display: none;
- }
- // 语言切换选中样式
- .langDropDownStyle {
- // 选中项背景颜色
- .is-selected {
- background-color: var(--art-el-active-color) !important;
- }
- // 语言切换按钮菜单样式优化
- .lang-btn-item {
- .el-dropdown-menu__item {
- padding-left: 13px !important;
- padding-right: 6px !important;
- margin-bottom: 3px !important;
- }
- &:last-child {
- .el-dropdown-menu__item {
- margin-bottom: 0 !important;
- }
- }
- .menu-txt {
- min-width: 60px;
- display: block;
- }
- i {
- font-size: 10px;
- margin-left: 10px;
- }
- }
- }
- // 盒子默认边框
- .page-content {
- border: 1px solid var(--mint-border) !important;
- border-radius: var(--mint-radius) !important;
- box-shadow: var(--mint-shadow) !important;
- }
- @mixin art-card-base($border-color, $shadow: none, $radius-diff: 4px) {
- background: var(--default-box-color);
- border: 1px solid #{$border-color} !important;
- border-radius: calc(var(--custom-radius) + #{$radius-diff}) !important;
- box-shadow: #{$shadow} !important;
- --el-card-border-color: var(--default-border) !important;
- }
- .art-card,
- .art-card-sm,
- .art-card-xs {
- border: 1px solid var(--art-card-border);
- }
- // 盒子边框
- [data-box-mode='border-mode'] {
- .page-content,
- .art-table-card {
- border: 1px solid var(--art-card-border) !important;
- }
- .art-card {
- @include art-card-base(var(--art-card-border), none, 4px);
- }
- .art-card-sm {
- @include art-card-base(var(--art-card-border), none, 0px);
- }
- .art-card-xs {
- @include art-card-base(var(--art-card-border), none, -4px);
- }
- }
- // 盒子阴影
- [data-box-mode='shadow-mode'] {
- .page-content,
- .art-table-card {
- box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.04) !important;
- border: 1px solid var(--art-gray-200) !important;
- }
- .layout-sidebar {
- border-right: 1px solid var(--art-card-border) !important;
- }
- .art-card {
- @include art-card-base(
- var(--art-gray-200),
- (0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.08)),
- 4px
- );
- }
- .art-card-sm {
- @include art-card-base(
- var(--art-gray-200),
- (0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.08)),
- 2px
- );
- }
- .art-card-xs {
- @include art-card-base(
- var(--art-gray-200),
- (0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 1px -1px rgba(0, 0, 0, 0.08)),
- -4px
- );
- }
- }
- // 元素全屏
- .el-full-screen {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- width: 100vw !important;
- height: 100% !important;
- z-index: 2300;
- margin-top: 0;
- padding: 15px;
- box-sizing: border-box;
- background-color: var(--default-box-color);
- display: flex;
- flex-direction: column;
- }
- // 表格卡片
- .art-table-card {
- flex: 1;
- display: flex;
- flex-direction: column;
- margin-top: 12px;
- border-radius: var(--mint-radius) !important;
- border: 1px solid var(--mint-border) !important;
- box-shadow: var(--mint-shadow) !important;
- .el-card__body {
- height: 100%;
- overflow: hidden;
- }
- }
- // 容器全高
- .art-full-height {
- height: var(--art-full-height);
- display: flex;
- flex-direction: column;
- @media (max-width: 640px) {
- height: auto;
- }
- }
- // 徽章样式
- .art-badge {
- position: absolute;
- top: 0;
- right: 20px;
- bottom: 0;
- width: 6px;
- height: 6px;
- margin: auto;
- background: #ff3860;
- border-radius: 50%;
- animation: breathe 1.5s ease-in-out infinite;
- &.art-badge-horizontal {
- right: 0;
- }
- &.art-badge-mixed {
- right: 0;
- }
- &.art-badge-dual {
- right: 5px;
- top: 5px;
- bottom: auto;
- }
- }
- // 文字徽章样式
- .art-text-badge {
- position: absolute;
- top: 0;
- right: 12px;
- bottom: 0;
- min-width: 20px;
- height: 18px;
- line-height: 17px;
- padding: 0 5px;
- margin: auto;
- font-size: 10px;
- color: #fff;
- text-align: center;
- background: #fd4e4e;
- border-radius: 4px;
- &--zero {
- background: #94a3b8;
- }
- &--dual {
- min-width: 34px;
- padding: 0 6px;
- letter-spacing: -0.02em;
- }
- }
- @keyframes breathe {
- 0% {
- opacity: 0.7;
- transform: scale(1);
- }
- 50% {
- opacity: 1;
- transform: scale(1.1);
- }
- 100% {
- opacity: 0.7;
- transform: scale(1);
- }
- }
- // 修复老机型 loading 定位问题
- .art-loading-fix {
- position: fixed !important;
- top: 0 !important;
- left: 0 !important;
- right: 0 !important;
- bottom: 0 !important;
- width: 100vw !important;
- height: 100vh !important;
- display: flex !important;
- align-items: center !important;
- justify-content: center !important;
- }
- .art-loading-fix .el-loading-spinner {
- position: static !important;
- top: auto !important;
- left: auto !important;
- transform: none !important;
- }
- // 去除移动端点击背景色
- @media screen and (max-width: 1180px) {
- * {
- -webkit-tap-highlight-color: transparent;
- }
- }
- .page-head {
- margin-bottom: 16px;
- h1 {
- margin: 0 0 4px;
- font-size: 20px;
- font-weight: 700;
- letter-spacing: -0.02em;
- color: var(--mint-text);
- }
- .page-desc,
- .desc {
- margin: 0;
- color: var(--mint-text-muted);
- font-size: 13px;
- line-height: 1.45;
- max-width: 720px;
- }
- }
- .panel {
- background: var(--mint-surface);
- border: 1px solid var(--mint-border);
- border-radius: var(--mint-radius);
- box-shadow: var(--mint-shadow);
- /* 不要用 overflow:hidden:会导致 el-table 右侧固定列(fixed="right")无法正确粘贴/层级错乱 */
- overflow: visible;
- }
- .panel-top {
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-wrap: wrap;
- gap: 8px;
- padding: 10px 16px;
- border-bottom: 1px solid var(--mint-border);
- h2,
- h3 {
- display: inline-flex;
- align-items: center;
- gap: 2px;
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: var(--mint-text);
- }
- h2 .title-ic,
- h3 .title-ic {
- width: 22px;
- height: 22px;
- border-radius: 8px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- background: var(--mint-primary-bg);
- color: var(--mint-primary-dark);
- border: 1px solid rgba(4, 120, 87, 0.16);
- margin-right: 4px;
- flex-shrink: 0;
- }
- h2 .title-ic::before,
- h3 .title-ic::before {
- content: '';
- width: 14px;
- height: 14px;
- background-color: currentColor;
- opacity: 0.95;
- mask: var(--panel-title-icon-mask) center / contain no-repeat;
- -webkit-mask: var(--panel-title-icon-mask) center / contain no-repeat;
- }
- h2.title-bar-heading {
- gap: 8px;
- }
- h2.title-bar-heading .title-ic {
- display: none !important;
- }
- h2.title-bar-heading::before {
- content: '';
- width: 4px;
- height: 14px;
- border-radius: 999px;
- background: var(--mint-primary, #047857);
- flex-shrink: 0;
- }
- }
- // 面板级胶囊分段 Tab(薄荷绿渐变轨道 + 主色选中,对齐渠道管理等页)
- .panel-pill-tabs {
- // 自定义按钮结构(质检物料库等)
- &:not(.el-tabs) {
- display: flex;
- justify-content: center;
- margin: 12px 24px 4px;
- }
- &--start:not(.el-tabs) {
- justify-content: flex-start;
- }
- &--lg:not(.el-tabs) {
- margin: 16px 24px 8px;
- .panel-pill-tabs__track {
- gap: 6px;
- padding: 5px;
- border-radius: 10px;
- }
- .panel-pill-tabs__btn {
- min-width: 140px;
- padding: 10px 28px;
- border-radius: 8px;
- font-size: 14px;
- }
- }
- &__track {
- display: inline-flex;
- gap: 4px;
- padding: 4px;
- background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
- border: 1px solid #d1fae5;
- border-radius: 8px;
- }
- &__btn {
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 108px;
- padding: 8px 20px;
- border: none;
- border-radius: 6px;
- background: transparent;
- font-size: 13px;
- font-weight: 500;
- line-height: 1.4;
- text-align: center;
- color: var(--mint-text-muted, #64748b);
- cursor: pointer;
- white-space: nowrap;
- transition:
- background 0.15s,
- color 0.15s,
- box-shadow 0.15s;
- &:hover:not(.is-active) {
- color: #065f46;
- }
- &.is-active {
- background: var(--primary, #10b981);
- color: #fff;
- box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
- font-weight: 500;
- &:hover {
- color: #fff;
- background: var(--primary, #10b981);
- }
- }
- }
- &__badge {
- position: absolute;
- top: -5px;
- right: -4px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 18px;
- height: 18px;
- padding: 0 5px;
- border-radius: 999px;
- background: #d97706;
- color: #fff;
- font-size: 11px;
- font-weight: 600;
- line-height: 1;
- border: 2px solid #d1fae5;
- pointer-events: none;
- box-sizing: border-box;
- }
- &__btn.is-active &__badge {
- border-color: var(--primary, #10b981);
- }
- &__badge--zero {
- background: #94a3b8;
- }
- &__badge--dual {
- min-width: 34px;
- padding: 0 6px;
- font-size: 10px;
- letter-spacing: -0.02em;
- }
- // 质检工单 / 我的质检任务 / 生产工单 / 我的生产任务 — Tab 待办角标红色
- &--alert-badge {
- .panel-pill-tabs__badge:not(.panel-pill-tabs__badge--zero) {
- background: #ef4444;
- color: #fff;
- }
- }
- &__btn.is-active &__badge--zero {
- background: rgba(255, 255, 255, 0.92);
- color: var(--primary-dark, #059669);
- border-color: var(--primary, #10b981);
- }
- // el-tabs 结构
- &.el-tabs {
- > .el-tabs__header {
- display: flex;
- justify-content: center;
- margin: 12px 24px 4px;
- padding: 0;
- border: none;
- }
- .el-tabs__nav-wrap {
- flex: 0 1 auto;
- &::after {
- display: none;
- }
- }
- .el-tabs__nav-scroll {
- display: flex;
- justify-content: center;
- }
- .el-tabs__nav {
- display: inline-flex;
- gap: 4px;
- float: none;
- padding: 4px;
- background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
- border: 1px solid #d1fae5;
- border-radius: 8px;
- }
- .el-tabs__active-bar {
- display: none;
- }
- .el-tabs__item {
- display: inline-flex !important;
- align-items: center !important;
- justify-content: center !important;
- box-sizing: border-box;
- min-width: 108px;
- height: auto !important;
- margin: 0 !important;
- padding: 8px 20px !important;
- border: none !important;
- border-radius: 6px;
- font-size: 13px;
- font-weight: 500;
- line-height: 1.4;
- text-align: center !important;
- color: var(--mint-text-muted, #64748b);
- transition:
- background 0.15s,
- color 0.15s,
- box-shadow 0.15s;
- &:hover:not(.is-active) {
- color: #065f46;
- }
- &.is-active {
- background: var(--primary, #10b981);
- color: #fff;
- box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
- font-weight: 500;
- &:hover {
- color: #fff;
- background: var(--primary, #10b981);
- }
- }
- }
- }
- &--start.el-tabs {
- > .el-tabs__header {
- justify-content: flex-start;
- }
- .el-tabs__nav-scroll {
- justify-content: flex-start;
- }
- }
- &--lg.el-tabs {
- > .el-tabs__header {
- margin: 16px 24px 8px;
- }
- .el-tabs__nav {
- gap: 6px;
- padding: 5px;
- border-radius: 10px;
- }
- .el-tabs__item {
- min-width: 140px;
- padding: 10px 28px !important;
- border-radius: 8px;
- font-size: 14px;
- }
- }
- }
- // 缴退费财务确认 — 待确认 / 已确认分区标题(背景与 panel-pill-tabs 轨道一致)
- .finance-section-head {
- display: inline-flex;
- align-items: center;
- width: fit-content;
- max-width: 100%;
- margin: 4px 24px 0;
- padding: 10px 14px;
- background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
- border: 1px solid #d1fae5;
- border-radius: 8px;
- }
- .finance-section-title {
- display: flex;
- align-items: center;
- gap: 8px;
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: var(--text, #1e293b);
- line-height: 1.4;
- &::before {
- content: '';
- width: 4px;
- height: 12px;
- border-radius: 999px;
- background: var(--primary-dark, #059669);
- }
- }
- .finance-section-head--pending .finance-section-title::before {
- background: #d97706;
- }
- .finance-section-count {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 22px;
- height: 22px;
- padding: 0 6px;
- border-radius: 999px;
- background: #f1f5f9;
- font-size: 12px;
- font-weight: 600;
- color: var(--mint-text-muted, #64748b);
- }
- .finance-section-head--pending .finance-section-count {
- background: #fffbeb;
- color: #d97706;
- }
- // 弹窗内 Sticky 胶囊 Tab(detail-tabs / detail-tab,与 panel-pill-tabs 视觉一致)
- .detail-tabs {
- display: flex;
- gap: 4px;
- padding: 4px;
- background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
- border: 1px solid #d1fae5;
- border-radius: 8px;
- width: fit-content;
- box-shadow: none;
- }
- .dialog-form-body > .detail-tabs,
- .protocol-view-body > .detail-tabs,
- .application-detail-body > .detail-tabs,
- .donation-view-body > .detail-tabs,
- .channel-view-body > .detail-tabs,
- .channel-dialog-body > .detail-tabs,
- .dialog-scroll > .detail-tabs {
- position: sticky;
- top: 0;
- z-index: 1000;
- margin: 0 28px 16px;
- isolation: isolate;
- }
- .detail-tab {
- padding: 10px 20px;
- cursor: pointer;
- border-radius: 6px;
- font-size: 14px;
- color: #606266;
- transition:
- background 0.15s,
- color 0.15s,
- box-shadow 0.15s;
- &.active {
- background: var(--primary, #10b981);
- color: #fff;
- font-weight: 500;
- box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
- }
- &:hover:not(.active):not(.is-disabled) {
- color: #065f46;
- }
- &.is-disabled {
- cursor: default;
- opacity: 0.65;
- pointer-events: none;
- }
- }
- // 面板级步骤胶囊 Tab(样本信息管理 / 采集协议单 / 中试·基础实验申请单等)
- .pill-tab-nav {
- padding: 16px 20px 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .pill-tab-nav__rail {
- display: flex;
- align-items: center;
- width: 70%;
- max-width: 100%;
- margin-inline: auto;
- background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
- border: 1px solid #d1fae5;
- border-radius: 10px;
- padding: 6px;
- position: relative;
- overflow: hidden;
- box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
- }
- .pill-tab-nav__progress {
- position: absolute;
- top: 6px;
- bottom: 6px;
- left: 6px;
- background: var(--primary, #10b981);
- border: 1px solid var(--primary-dark, #059669);
- border-radius: 8px;
- box-shadow: 0 1px 3px rgb(16 185 129 / 24%);
- transition:
- transform 0.25s ease,
- width 0.25s ease;
- z-index: 0;
- }
- .pill-tab-nav__step {
- flex: 1;
- position: relative;
- z-index: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- min-width: 0;
- min-height: 44px;
- padding: 8px 10px;
- border: none;
- background: transparent;
- cursor: pointer;
- border-radius: 8px;
- transition: color 0.2s ease;
- }
- .pill-tab-nav__index {
- width: 22px;
- height: 22px;
- border-radius: 50%;
- background: #e2e8f0;
- color: var(--mint-text-muted, #334155);
- font-size: 11px;
- font-weight: 700;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- transition: all 0.2s ease;
- }
- .pill-tab-nav__text {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- min-width: 0;
- text-align: left;
- }
- .pill-tab-nav__title {
- font-size: 13px;
- font-weight: 600;
- color: var(--mint-text-muted, #64748b);
- white-space: nowrap;
- }
- .pill-tab-nav__desc {
- font-size: 11px;
- color: var(--mint-text-muted, #334155);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- }
- .pill-tab-nav__step.is-active .pill-tab-nav__index {
- background: #fff;
- color: var(--primary-dark, #059669);
- }
- .pill-tab-nav__step.is-active .pill-tab-nav__title,
- .pill-tab-nav__step.is-active .pill-tab-nav__desc {
- color: #fff;
- }
- .pill-tab-nav__step.is-done .pill-tab-nav__index {
- background: var(--primary-bg, #ecfdf5);
- color: var(--primary-dark, #059669);
- border: 1px solid var(--mint-border, #c5e0d4);
- }
- .pill-tab-nav__step.is-done .pill-tab-nav__title {
- color: var(--text, #1e293b);
- }
- @media (width <= 960px) {
- .pill-tab-nav__desc {
- display: none;
- }
- .pill-tab-nav__text {
- align-items: center;
- }
- }
- @media (width <= 720px) {
- .pill-tab-nav {
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- align-items: stretch;
- }
- .pill-tab-nav__rail {
- width: 100%;
- min-width: 680px;
- }
- }
- // 面板级左对齐下划线 Tab(对齐 docs/my-material-usage-tab-demos/04-left-underline)
- .panel-underline-tabs {
- &:not(.el-tabs) {
- margin: 12px 24px 0;
- border-bottom: 2px solid var(--mint-border, #e2e8f0);
- }
- &__track {
- display: flex;
- gap: 0;
- }
- &__btn {
- padding: 14px 28px;
- margin-bottom: -2px;
- border: none;
- background: transparent;
- font-size: 15px;
- font-weight: 500;
- line-height: 1.4;
- color: var(--mint-text-muted, #64748b);
- cursor: pointer;
- border-bottom: 3px solid transparent;
- transition:
- color 0.15s,
- border-color 0.15s,
- background 0.15s;
- &:hover:not(.is-active) {
- color: var(--mint-text-muted, #334155);
- background: #f8fafc;
- }
- &.is-active {
- color: var(--primary-dark, #059669);
- font-weight: 600;
- border-bottom-color: var(--primary, #10b981);
- }
- }
- // el-tabs 结构
- &.el-tabs {
- > .el-tabs__header {
- display: flex;
- justify-content: flex-start;
- margin: 12px 24px 0;
- padding: 0;
- border: none;
- border-bottom: 2px solid var(--mint-border, #e2e8f0);
- }
- .el-tabs__nav-wrap {
- flex: 0 1 auto;
- &::after {
- display: none;
- }
- }
- .el-tabs__nav-scroll {
- display: flex;
- justify-content: flex-start;
- }
- .el-tabs__nav {
- float: none;
- gap: 0;
- padding: 0;
- border: none;
- background: transparent;
- }
- .el-tabs__active-bar {
- display: none;
- }
- .el-tabs__item {
- display: inline-flex !important;
- align-items: center !important;
- justify-content: center !important;
- box-sizing: border-box;
- height: auto !important;
- margin: 0 0 -2px !important;
- padding: 14px 28px !important;
- border: none !important;
- border-bottom: 3px solid transparent !important;
- border-radius: 0;
- background: transparent;
- font-size: 15px;
- font-weight: 500;
- line-height: 1.4;
- text-align: center !important;
- color: var(--mint-text-muted, #64748b);
- transition:
- color 0.15s,
- border-color 0.15s,
- background 0.15s;
- &:hover:not(.is-active) {
- color: var(--mint-text-muted, #334155);
- background: #f8fafc;
- }
- &.is-active {
- color: var(--primary-dark, #059669);
- font-weight: 600;
- border-bottom-color: var(--primary, #10b981) !important;
- background: transparent;
- }
- }
- }
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-tenant,
- .console-container .panel-top h2.auto-title-tenant {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M10 10h4'/%3E%3Cpath d='M10 14h4'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-dict,
- .console-container .panel-top h2.auto-title-dict {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-role,
- .console-container .panel-top h2.auto-title-role {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-menu,
- .console-container .panel-top h2.auto-title-menu {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-post,
- .console-container .panel-top h2.auto-title-post {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-unit,
- .console-container .panel-top h2.auto-title-unit {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.3 7L12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-express,
- .console-container .panel-top h2.auto-title-express {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-dept,
- .console-container .panel-top h2.auto-title-dept {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='6' cy='19' r='2'/%3E%3Ccircle cx='18' cy='19' r='2'/%3E%3Cpath d='M12 7v4'/%3E%3Cpath d='m7 15 5-4 5 4'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-list,
- .console-container .panel-top h2.auto-title-list {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
- }
- .page-container .storage-content-header h3 {
- display: inline-flex;
- align-items: center;
- gap: 2px;
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: var(--mint-text);
- .title-ic {
- width: 22px;
- height: 22px;
- border-radius: 8px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- background: var(--mint-primary-bg);
- color: var(--mint-primary-dark);
- border: 1px solid rgba(4, 120, 87, 0.16);
- margin-right: 4px;
- flex-shrink: 0;
- }
- .title-ic::before {
- content: '';
- width: 14px;
- height: 14px;
- background-color: currentColor;
- opacity: 0.95;
- mask: var(--panel-title-icon-mask) center / contain no-repeat;
- -webkit-mask: var(--panel-title-icon-mask) center / contain no-repeat;
- }
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-operation,
- .console-container .panel-top h2.auto-title-operation {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-location,
- .console-container .panel-top h2.auto-title-location {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-11a7 7 0 1 1 14 0c0 6.5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-garment,
- .console-container .panel-top h2.auto-title-garment {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-user,
- .console-container .panel-top h2.auto-title-user {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-route,
- .console-container .panel-top h2.auto-title-route {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-process,
- .console-container .panel-top h2.auto-title-process {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-settings,
- .console-container .panel-top h2.auto-title-settings {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-1.5 2.6-0.2-.1a2 2 0 0 0-2.1.4 1.8 1.8 0 0 0-.6 2v.2H9.6v-.2a1.8 1.8 0 0 0-.6-2 2 2 0 0 0-2.1-.4l-.2.1-1.5-2.6.1-.1A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.6-1.1H3v-3h.0a1.7 1.7 0 0 0 1.6-1.1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 1.5-2.6.2.1a2 2 0 0 0 2.1-.4 1.8 1.8 0 0 0 .6-2V2h4.8v.2a1.8 1.8 0 0 0 .6 2 2 2 0 0 0 2.1.4l.2-.1 1.5 2.6-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10.9h.0v3H21a1.7 1.7 0 0 0-1.6 1.1z'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-category,
- .console-container .panel-top h2.auto-title-category {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-box,
- .console-container .panel-top h2.auto-title-box {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.3 7L12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-receipt,
- .console-container .panel-top h2.auto-title-receipt {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-2-1-2 1-2-1-2 1-2-1-2 1V2z'/%3E%3Cpath d='M8 6h8'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h6'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-file,
- .console-container .panel-top h2.auto-title-file {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-quote,
- .console-container .panel-top h2.auto-title-quote {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
- }
- .page-container
- :is(
- .panel-top h2,
- .panel-top h3,
- .storage-content-header h3,
- .storage-aside__head h2,
- .user-dept-aside__head h2
- ).auto-title-calc,
- .console-container .panel-top h2.auto-title-calc {
- --panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M9 6h6'/%3E%3Cpath d='M8 10h2'/%3E%3Cpath d='M14 10h2'/%3E%3Cpath d='M8 14h2'/%3E%3Cpath d='M14 14h2'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
- }
- .page-container,
- .console-container {
- .filter-block {
- padding: 12px 16px 10px;
- background: var(--mint-surface);
- border-bottom: 1px solid var(--mint-border);
- }
- .filter-grid {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 10px 14px;
- margin-bottom: 0;
- }
- .filter-actions-row {
- margin-top: 10px;
- padding-top: 10px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- }
- .filter-actions-end,
- .toolbar-actions {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- margin-left: auto;
- }
- .search-bar {
- background: var(--mint-surface);
- border: 1px solid var(--mint-border);
- border-radius: var(--mint-radius);
- box-shadow: var(--mint-shadow);
- }
- .detail-hero {
- margin-bottom: 14px;
- padding: 14px 16px;
- border: 1px solid var(--mint-border);
- border-radius: var(--mint-radius);
- background: var(--mint-primary-bg);
- }
- .detail-hero-title {
- font-size: 16px;
- font-weight: 700;
- color: var(--mint-text);
- }
- .detail-hero-meta {
- margin-top: 6px;
- color: var(--mint-text-muted);
- font-size: 13px;
- }
- .detail-section {
- border-radius: var(--mint-radius);
- overflow: hidden;
- margin-bottom: 14px;
- }
- }
- /* 主列表页 + append-to-body 弹窗内嵌列表共用(OpenSpec:弹窗内列表风格一致) */
- .page-container,
- .console-container,
- .el-dialog {
- .list-toolbar,
- .toolbar {
- padding: 0;
- background: var(--mint-table-head);
- border-bottom: 1px solid var(--mint-border);
- }
- .list-toolbar-row,
- .toolbar {
- padding: 8px 16px;
- gap: 8px;
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- justify-content: flex-start;
- }
- /* 列表工具栏按钮间距统一由 gap 控制,清除 Element 默认相邻按钮 margin */
- .list-toolbar-row .el-button + .el-button,
- .toolbar .el-button + .el-button,
- .toolbar-right .el-button + .el-button,
- .toolbar-actions .el-button + .el-button,
- .filter-actions-end .el-button + .el-button {
- margin-left: 0 !important;
- }
- .list-toolbar-selected,
- .toolbar-left {
- display: inline-flex;
- align-items: center;
- min-height: 36px;
- padding: 0 10px 0 0;
- margin-right: 4px;
- border-right: 1px solid var(--mint-border);
- font-size: 12px;
- color: var(--mint-text-muted);
- font-weight: 600;
- }
- .sel-num {
- color: var(--mint-primary-dark);
- font-weight: 700;
- margin: 0 2px;
- }
- .list-body {
- border-top: 1px solid var(--mint-border);
- }
- .list-wrap {
- border-radius: 0 0 var(--mint-radius) var(--mint-radius);
- overflow: visible;
- }
- .pagination.list-pager-bar,
- .list-footer {
- margin-top: 0;
- padding: 10px 16px 12px;
- border-top: 1px solid var(--mint-border);
- background: var(--mint-surface);
- border-radius: 0 0 var(--mint-radius) var(--mint-radius);
- }
- .pagination {
- display: flex;
- justify-content: flex-end;
- margin-top: 0;
- padding: 10px 16px 12px;
- border-top: 1px solid var(--mint-border);
- background: var(--mint-surface);
- }
- }
- @media (max-width: 1100px) {
- .page-container,
- .console-container {
- .filter-grid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- }
- }
- @media (max-width: 560px) {
- .page-container,
- .console-container {
- .filter-grid {
- grid-template-columns: 1fr;
- }
- .filter-actions-row {
- align-items: stretch;
- flex-direction: column;
- }
- }
- }
- /* 弹窗表单栅格(与 docs/web-admin-ui-spec-fresh-mint.md §9.3.1 / §10.3 一致) */
- .form-grid-2 {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 12px 20px;
- }
- .form-grid-3 {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 12px 16px;
- }
- .form-grid-4 {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 12px 14px;
- }
- .form-grid-5 {
- display: grid;
- grid-template-columns: repeat(5, minmax(0, 1fr));
- gap: 12px 12px;
- }
- /* 纵向间距交给 gap,避免与 el-form-item 默认 margin-bottom 叠加 */
- .form-grid,
- .form-grid-2,
- .form-grid-3,
- .form-grid-4,
- .form-grid-5 {
- > .el-form-item,
- > .el-form-item.el-form-item--label-top {
- margin-bottom: 0;
- }
- }
- .form-col-span-2 {
- grid-column: 1 / -1;
- }
- .sort-field {
- display: flex;
- align-items: center;
- }
- .form-tip {
- margin-left: 8px;
- color: var(--mint-text-muted);
- font-size: 12px;
- }
- .form-label-tip {
- margin-left: 4px;
- color: var(--mint-text-muted);
- font-size: 12px;
- font-weight: 400;
- }
- @media (max-width: 900px) {
- .form-grid-3 {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- .form-grid-4,
- .form-grid-5 {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- }
- @media (max-width: 560px) {
- .form-grid-2,
- .form-grid-3,
- .form-grid-4,
- .form-grid-5 {
- grid-template-columns: 1fr;
- }
- }
- /* 查看弹窗键值对:label 在上、value 在下(与 ProtocolViewDialog data-label/data-value 一致) */
- .view-kv-grid {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 12px 20px;
- }
- .view-kv-grid--cols-3 {
- grid-template-columns: repeat(3, minmax(0, 1fr));
- }
- .view-kv-grid--cols-4 {
- grid-template-columns: repeat(4, minmax(0, 1fr));
- }
- .view-kv,
- [class$='-view-kv']:not([class*='-view-kv-grid']) {
- min-width: 0;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 4px;
- font-size: 13px;
- dt {
- margin: 0;
- font-size: 12px;
- color: var(--mint-text-muted, #334155);
- font-weight: 500;
- }
- dd {
- margin: 0;
- color: #1e293b;
- word-break: break-word;
- > .el-tag {
- width: fit-content;
- max-width: 100%;
- }
- }
- }
- .view-kv-span-2 {
- grid-column: 1 / -1;
- }
- .readonly-item {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 4px;
- min-width: 0;
- font-size: 14px;
- line-height: 1.5;
- > .label {
- display: block;
- min-width: 0;
- margin: 0;
- font-size: 12px;
- font-weight: 500;
- color: var(--mint-text-muted, #64748b);
- &::after {
- content: none !important;
- }
- }
- > .el-tag {
- width: fit-content;
- max-width: 100%;
- }
- }
- .qc-work-order-card__meta-item {
- align-items: flex-start;
- dd > .el-tag {
- width: fit-content;
- max-width: 100%;
- }
- }
- .data-value > .el-tag {
- width: fit-content;
- max-width: 100%;
- }
- @media (max-width: 900px) {
- .view-kv-grid--cols-4 {
- grid-template-columns: repeat(3, minmax(0, 1fr));
- }
- }
- @media (max-width: 640px) {
- .view-kv-grid,
- .view-kv-grid--cols-3,
- .view-kv-grid--cols-4 {
- grid-template-columns: 1fr;
- }
- }
- /* 标准 CRUD 弹窗:相对视口上下各保留至少 50px 可视留白,正文区纵向滚动(不占满视口高度) */
- .el-dialog.dialog-form-layout {
- display: flex;
- flex-direction: column;
- max-height: calc(100vh - 100px);
- overflow: hidden;
- }
- .el-dialog.dialog-form-layout .el-dialog__header {
- flex-shrink: 0;
- }
- .el-dialog.dialog-form-layout .el-dialog__body {
- flex: 1;
- min-height: 0;
- overflow-y: auto;
- padding: 18px 22px;
- }
- .el-dialog.dialog-form-layout .el-dialog__footer {
- flex-shrink: 0;
- }
- /* label-top 弹窗:无栅格时也收紧默认 18px 行距 */
- .el-dialog.dialog-form-layout .el-form--label-top > .el-form-item,
- .el-dialog.dialog-form-layout .el-form--label-top > .el-row .el-form-item {
- margin-bottom: 12px;
- }
- .el-dialog.dialog-form-layout .el-form--label-top .form-grid .el-form-item,
- .el-dialog.dialog-form-layout .el-form--label-top .form-grid-2 .el-form-item,
- .el-dialog.dialog-form-layout .el-form--label-top .form-grid-3 .el-form-item,
- .el-dialog.dialog-form-layout .el-form--label-top .form-grid-4 .el-form-item,
- .el-dialog.dialog-form-layout .el-form--label-top .form-grid-5 .el-form-item {
- margin-bottom: 0;
- }
- /* 标准 CRUD / 大表单弹窗遮罩:顶对齐留白,避免 align-center 高弹窗与顶栏贴齐(protocol-dialog-mask 同构,全局兜底) */
- .protocol-dialog-mask,
- .lab-test-item-dialog-mask,
- .el-overlay:has(.el-dialog.dialog-form-layout),
- .el-overlay:has(.el-dialog.system-view-dialog),
- .el-overlay:has(.el-dialog.order-module-dialog) {
- align-items: flex-start !important;
- backdrop-filter: none !important;
- .el-overlay-dialog {
- margin-top: 16px;
- margin-bottom: auto;
- }
- .el-dialog.dialog-form-layout,
- .el-dialog.order-module-dialog {
- max-width: calc(100vw - 48px);
- }
- }
- /* 弹窗异步加载:骨架占位,减轻先小后大 */
- .dialog-scroll.is-view-loading,
- .dialog-form-body.is-dialog-loading,
- .protocol-view-body.is-detail-loading,
- .donation-view-body.is-detail-loading,
- .product-form-container.is-view-loading {
- min-height: min(360px, calc(100vh - 220px));
- }
- #app-header > div {
- background: var(--mint-surface) !important;
- }
- #app-header .relative.box-border.flex-b {
- height: 56px !important;
- line-height: 56px !important;
- padding: 0 var(--mint-content-padding);
- }
- #app-header .header-brand {
- display: flex;
- flex-shrink: 0;
- gap: 12px;
- align-items: center;
- margin-right: 12px;
- padding-right: 16px;
- cursor: pointer;
- border-right: 1px solid var(--mint-border);
- .art-logo img {
- display: block;
- }
- }
- #app-header .header-brand__title {
- max-width: 180px;
- margin: 0;
- font-size: 16px;
- font-weight: 700;
- line-height: 1.35;
- color: var(--mint-text, #0f172a);
- white-space: normal;
- }
- #app-header .flex-c.gap-2\.5 {
- gap: 10px !important;
- }
- #app-content .worktab-strip.w-full {
- margin-bottom: 0 !important;
- padding: 0 24px 4px !important;
- }
- #app-sidebar .layout-sidebar {
- border-right: 1px solid var(--mint-border) !important;
- background: var(--mint-surface);
- }
- #app-sidebar .menu-left .header {
- height: 56px;
- line-height: 56px;
- border-bottom: 1px solid var(--mint-border);
- }
- /* 附件上传拖拽落区高亮(方案 1:卡片化附件 + 行内纸质材料) */
- .attachment-upload.is-dragover {
- border: 1px dashed var(--primary, #10b981);
- border-radius: 8px;
- background: var(--primary-bg, #ecfdf5);
- box-shadow: inset 0 0 0 1px rgb(16 185 129 / 15%);
- }
- .paper-att-list.is-dragover {
- border: 1px dashed var(--primary, #10b981);
- border-radius: 8px;
- background: var(--primary-bg, #ecfdf5);
- }
- .paper-att-cards.is-dragover {
- border: 1px dashed var(--primary, #10b981);
- border-radius: 8px;
- background: var(--primary-bg, #ecfdf5);
- }
|