fixed mobile
This commit is contained in:
+196
-1
@@ -173,7 +173,20 @@ select:focus[data-flux-control] {
|
||||
border: 1px solid rgb(228 228 231);
|
||||
background: white;
|
||||
color: rgb(63 63 70);
|
||||
transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
|
||||
box-shadow: 0 10px 24px rgb(0 0 0 / 0.08);
|
||||
transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
|
||||
}
|
||||
|
||||
.wms-mobile-menu {
|
||||
border-color: rgb(14 116 144 / 0.22);
|
||||
background: linear-gradient(135deg, rgb(255 255 255), rgb(236 254 255));
|
||||
color: rgb(14 116 144);
|
||||
}
|
||||
|
||||
.dark .wms-mobile-menu {
|
||||
border-color: rgb(103 232 249 / 0.22);
|
||||
background: linear-gradient(135deg, rgb(24 24 27), rgb(8 47 73));
|
||||
color: rgb(165 243 252);
|
||||
}
|
||||
|
||||
.wms-sidebar-toggle {
|
||||
@@ -643,6 +656,27 @@ select:focus[data-flux-control] {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wms-mobile-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 3.1rem;
|
||||
height: 2rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgb(14 116 144 / 0.24);
|
||||
background: linear-gradient(135deg, rgb(14 116 144 / 0.14), rgb(37 99 235 / 0.12));
|
||||
color: rgb(14 116 144);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.dark .wms-mobile-badge {
|
||||
border-color: rgb(103 232 249 / 0.26);
|
||||
background: linear-gradient(135deg, rgb(8 145 178 / 0.26), rgb(37 99 235 / 0.20));
|
||||
color: rgb(165 243 252);
|
||||
}
|
||||
|
||||
.wms-page-hero {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
@@ -676,3 +710,164 @@ select:focus[data-flux-control] {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@layer components {
|
||||
body.wms-mobile-nav-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.wms-app-shell {
|
||||
display: block !important;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.wms-main-panel {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.wms-mobile-header {
|
||||
position: sticky !important;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
display: flex !important;
|
||||
min-height: 4.25rem;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
border-bottom: 1px solid rgb(228 228 231);
|
||||
background: rgb(255 255 255 / 0.94);
|
||||
padding: 0.75rem 1rem;
|
||||
box-shadow: 0 14px 34px rgb(15 23 42 / 0.08);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.dark .wms-mobile-header {
|
||||
border-bottom-color: rgb(63 63 70);
|
||||
background: rgb(24 24 27 / 0.94);
|
||||
box-shadow: 0 14px 34px rgb(0 0 0 / 0.28);
|
||||
}
|
||||
|
||||
.wms-mobile-menu {
|
||||
display: inline-grid !important;
|
||||
width: 2.65rem;
|
||||
height: 2.65rem;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
border-radius: 0.9rem;
|
||||
border: 1px solid rgb(14 116 144 / 0.28);
|
||||
background: linear-gradient(135deg, rgb(255 255 255), rgb(236 254 255));
|
||||
color: rgb(14 116 144);
|
||||
font-size: 1.05rem;
|
||||
box-shadow: 0 12px 28px rgb(14 116 144 / 0.16);
|
||||
}
|
||||
|
||||
.dark .wms-mobile-menu {
|
||||
border-color: rgb(103 232 249 / 0.30);
|
||||
background: linear-gradient(135deg, rgb(24 24 27), rgb(8 47 73));
|
||||
color: rgb(165 243 252);
|
||||
}
|
||||
|
||||
.wms-mobile-title {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: rgb(24 24 27);
|
||||
font-size: 0.98rem;
|
||||
font-weight: 850;
|
||||
letter-spacing: -0.02em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.dark .wms-mobile-title {
|
||||
color: rgb(244 244 245);
|
||||
}
|
||||
|
||||
.wms-mobile-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 3.15rem;
|
||||
height: 2rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgb(14 116 144 / 0.24);
|
||||
background: linear-gradient(135deg, rgb(14 116 144 / 0.14), rgb(37 99 235 / 0.12));
|
||||
color: rgb(14 116 144);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.dark .wms-mobile-badge {
|
||||
border-color: rgb(103 232 249 / 0.26);
|
||||
background: linear-gradient(135deg, rgb(8 145 178 / 0.26), rgb(37 99 235 / 0.20));
|
||||
color: rgb(165 243 252);
|
||||
}
|
||||
|
||||
.wms-sidebar {
|
||||
position: fixed !important;
|
||||
inset: 0 auto 0 0;
|
||||
z-index: 70;
|
||||
width: min(23.5rem, calc(100vw - 2.25rem)) !important;
|
||||
min-width: min(23.5rem, calc(100vw - 2.25rem)) !important;
|
||||
height: 100dvh;
|
||||
transform: translateX(-110%);
|
||||
box-shadow: 28px 0 70px rgb(0 0 0 / 0.30);
|
||||
}
|
||||
|
||||
html[data-wms-mobile-sidebar='open'] .wms-sidebar {
|
||||
transform: translateX(0) !important;
|
||||
}
|
||||
|
||||
.wms-mobile-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 60;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html[data-wms-mobile-sidebar='open'] .wms-mobile-overlay {
|
||||
display: block !important;
|
||||
background: rgb(0 0 0 / 0.52);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.wms-mobile-close {
|
||||
display: inline-grid !important;
|
||||
}
|
||||
|
||||
.wms-sidebar-toggle {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
html[data-wms-sidebar='collapsed'] [data-wms-sidebar-label],
|
||||
html[data-wms-sidebar='collapsed'] .wms-brand-copy,
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar-heading,
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar-link span {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar-link {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.wms-content {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.wms-mobile-header,
|
||||
.wms-mobile-overlay,
|
||||
.wms-mobile-close {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user