提交
This commit is contained in:
1 parent
a9667f00cc
commit
817dfff43c
174 files changed
+17383
-14508
No files matched your search
@@ -417,7 +417,7 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
// 面板级胶囊分段 Tab(居中,对齐 docs/panel-tab-demos/02-pill-segmented)
|
||||
// 面板级胶囊分段 Tab(薄荷绿渐变轨道 + 主色选中,对齐渠道管理等页)
|
||||
.panel-pill-tabs {
|
||||
// 自定义按钮结构(质检物料库等)
|
||||
&:not(.el-tabs) {
|
||||
@@ -451,8 +451,8 @@ body {
|
||||
display: inline-flex;
|
||||
gap: 4px;
|
||||
padding: 4px;
|
||||
background: #f1f5f9;
|
||||
border: 1px solid var(--mint-border, #e2e8f0);
|
||||
background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
|
||||
border: 1px solid #d1fae5;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@@ -479,15 +479,19 @@ body {
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover:not(.is-active) {
|
||||
color: var(--mint-text-muted, #334155);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
background: #fff;
|
||||
color: var(--primary-dark, #059669);
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||||
font-weight: 600;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -507,13 +511,13 @@ body {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
border: 2px solid #f1f5f9;
|
||||
border: 2px solid #d1fae5;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&__btn.is-active &__badge {
|
||||
border-color: #fff;
|
||||
border-color: var(--primary, #10b981);
|
||||
}
|
||||
|
||||
// el-tabs 结构
|
||||
@@ -544,8 +548,8 @@ body {
|
||||
gap: 4px;
|
||||
float: none;
|
||||
padding: 4px;
|
||||
background: #f1f5f9;
|
||||
border: 1px solid var(--mint-border, #e2e8f0);
|
||||
background: linear-gradient(180deg, var(--primary-bg, #ecfdf5) 0%, #fff 100%);
|
||||
border: 1px solid #d1fae5;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@@ -575,15 +579,19 @@ body {
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover:not(.is-active) {
|
||||
color: var(--mint-text-muted, #334155);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
background: #fff;
|
||||
color: var(--primary-dark, #059669);
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||||
font-weight: 600;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -618,6 +626,199 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
// 弹窗内 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) {
|
||||
|
||||
Reference in new issue
Block a user