RS6 修复移动响应式布局体系
这个提交包含在:
@@ -8,8 +8,13 @@
|
||||
|
||||
:root {
|
||||
--mobile-viewport-height: 100vh;
|
||||
--mobile-bottom-nav-height: 64px;
|
||||
--mobile-sticky-action-height: 76px;
|
||||
--mobile-page-x: clamp(10px, 3vw, 20px);
|
||||
--mobile-page-y: clamp(10px, 2.8vw, 20px);
|
||||
--mobile-card-gap: clamp(8px, 2.5vw, 14px);
|
||||
--mobile-card-padding: clamp(12px, 3.4vw, 16px);
|
||||
--mobile-bottom-nav-height: 68px;
|
||||
--mobile-sticky-action-height: 78px;
|
||||
--mobile-icon-action-min-height: 72px;
|
||||
}
|
||||
|
||||
.page-scaffold.mobile-fixed-action-page {
|
||||
@@ -22,3 +27,133 @@
|
||||
--mobile-viewport-height: 100dvh;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-card {
|
||||
border: 1px solid rgb(228 228 231);
|
||||
border-radius: 12px;
|
||||
background: rgb(255 255 255);
|
||||
box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
|
||||
padding: var(--mobile-card-padding);
|
||||
}
|
||||
|
||||
.mobile-icon-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: var(--mobile-card-gap);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-icon-action {
|
||||
min-width: 0;
|
||||
min-height: var(--mobile-icon-action-min-height);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
border: 1px solid rgb(228 228 231);
|
||||
border-radius: 14px;
|
||||
background: rgb(255 255 255);
|
||||
color: rgb(24 24 27);
|
||||
padding: 8px 4px;
|
||||
text-align: center;
|
||||
box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
|
||||
touch-action: manipulation;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.mobile-icon-action--primary {
|
||||
border-color: rgb(191 219 254);
|
||||
background: rgb(239 246 255);
|
||||
color: rgb(0 57 138);
|
||||
}
|
||||
|
||||
.mobile-icon-action--warning {
|
||||
border-color: rgb(253 230 138);
|
||||
background: rgb(255 251 235);
|
||||
color: rgb(146 64 14);
|
||||
}
|
||||
|
||||
.mobile-icon-action__icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
background: rgb(255 255 255 / 0.86);
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
box-shadow: 0 1px 2px rgb(15 23 42 / 0.07);
|
||||
}
|
||||
|
||||
.mobile-icon-action__label {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.mobile-adaptive-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
|
||||
gap: var(--mobile-card-gap);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
|
||||
gap: var(--mobile-card-gap);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.75rem), 1fr));
|
||||
gap: var(--mobile-card-gap);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-two-action-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-bottom-nav-surface {
|
||||
min-height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
|
||||
padding: 0.375rem var(--mobile-page-x) calc(0.35rem + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.mobile-sticky-action-surface {
|
||||
padding: 0.75rem var(--mobile-page-x) max(0.75rem, env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
@media (max-width: 359px) {
|
||||
:root {
|
||||
--mobile-page-x: 8px;
|
||||
--mobile-card-gap: 6px;
|
||||
--mobile-card-padding: 10px;
|
||||
--mobile-icon-action-min-height: 68px;
|
||||
}
|
||||
|
||||
.mobile-icon-action__icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 10px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.mobile-icon-action__label {
|
||||
font-size: 12px;
|
||||
line-height: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户