refine Semi UI responsive application shell
This commit is contained in:
@@ -2215,7 +2215,7 @@ button, a { -webkit-tap-highlight-color: transparent; }
|
||||
.v2-history-mobile-list { display: none; }
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.v2-mobile-navigation { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; height: calc(66px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #dce4ee; background: rgba(255,255,255,.97); padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(20,35,55,.10); backdrop-filter: blur(16px); }
|
||||
.v2-mobile-navigation { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; height: calc(66px + env(safe-area-inset-bottom)); grid-template-columns: repeat(var(--v2-mobile-nav-count, 5), minmax(0, 1fr)); border-top: 1px solid #dce4ee; background: rgba(255,255,255,.97); padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(20,35,55,.10); backdrop-filter: blur(16px); }
|
||||
.v2-mobile-nav-item { position: relative; display: flex; min-width: 0; min-height: 54px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 0; border-radius: 10px; background: transparent; color: #718096; text-decoration: none; cursor: pointer; }
|
||||
.v2-mobile-nav-item > svg { font-size: 20px; }
|
||||
.v2-mobile-nav-item > span { max-width: 100%; overflow: hidden; font-size: 10px; font-weight: 700; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
@@ -4837,15 +4837,25 @@
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.v2-topbar {
|
||||
height: 56px;
|
||||
flex-basis: 56px;
|
||||
padding-inline: 12px 8px;
|
||||
}
|
||||
|
||||
.v2-topbar-title > .semi-typography {
|
||||
.v2-topbar-title {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.v2-topbar-title > .v2-topbar-product.semi-typography {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.v2-topbar-title > h4.semi-typography {
|
||||
.v2-topbar-title > .v2-topbar-page-title.semi-typography {
|
||||
display: block;
|
||||
max-width: min(58vw, 230px);
|
||||
font-size: 17px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.v2-topbar-actions {
|
||||
@@ -4872,6 +4882,52 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.v2-mobile-navigation {
|
||||
border-top-color: #e1e8f1;
|
||||
background: rgba(255, 255, 255, .985);
|
||||
box-shadow: 0 -8px 26px rgba(25, 44, 70, .085);
|
||||
}
|
||||
|
||||
.v2-mobile-navigation .v2-mobile-nav-item {
|
||||
gap: 2px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.v2-mobile-navigation .v2-mobile-nav-item > .semi-icon,
|
||||
.v2-mobile-navigation > .semi-button.v2-mobile-nav-item .semi-icon {
|
||||
display: inline-grid;
|
||||
width: 32px;
|
||||
height: 26px;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
border-radius: 9px;
|
||||
font-size: 18px;
|
||||
transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
|
||||
}
|
||||
|
||||
.v2-mobile-navigation .v2-mobile-nav-item.is-active {
|
||||
background: transparent;
|
||||
color: var(--v2-blue);
|
||||
}
|
||||
|
||||
.v2-mobile-navigation .v2-mobile-nav-item.is-active > .semi-icon,
|
||||
.v2-mobile-navigation > .semi-button.v2-mobile-nav-item.is-active .semi-icon {
|
||||
background: #eaf3ff;
|
||||
box-shadow: inset 0 0 0 1px rgba(18, 104, 243, .07);
|
||||
}
|
||||
|
||||
.v2-mobile-navigation .v2-mobile-nav-item.is-active::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.v2-mobile-navigation > .semi-button.v2-mobile-nav-item .semi-button-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.v2-help-sheet .semi-sidesheet-inner {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user