refactor(ui): new page header component and page size foundation (#1966)
This commit is contained in:
+56
-5
@@ -5,6 +5,8 @@
|
||||
}
|
||||
|
||||
.mobile-topbar {
|
||||
--topbar-title-shift: 0.375rem;
|
||||
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@@ -26,13 +28,65 @@
|
||||
gap: 0.4375rem;
|
||||
}
|
||||
|
||||
.mobile-topbar-brand {
|
||||
.mobile-topbar-center {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.mobile-topbar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
gap: 0.35rem;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
|
||||
&.is-faded {
|
||||
opacity: 0;
|
||||
transform: translateY(calc(-1 * var(--topbar-title-shift)));
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-topbar-title {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 0.5rem;
|
||||
opacity: 0;
|
||||
transform: translateY(var(--topbar-title-shift));
|
||||
pointer-events: none;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
|
||||
&.is-visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-topbar-title-text {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 1.0313rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.mobile-topbar {
|
||||
--topbar-title-shift: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-topbar-brand-icon {
|
||||
@@ -49,14 +103,11 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mobile-topbar-button {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mobile-topbar-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 2.1875rem;
|
||||
height: 2.1875rem;
|
||||
padding: 0;
|
||||
|
||||
Reference in New Issue
Block a user