Skip to content

Commit 09c34f3

Browse files
Bikram GoleBikram Gole
authored andcommitted
Scope two-row bottom rail to home
1 parent c890f8f commit 09c34f3

1 file changed

Lines changed: 36 additions & 10 deletions

File tree

styles.css

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -973,25 +973,42 @@ nav a.active {
973973
bottom: max(0.7rem, env(safe-area-inset-bottom));
974974
transform: translateX(-50%);
975975
display: flex;
976-
flex-direction: column;
977976
align-items: center;
978977
justify-content: center;
979-
gap: 0.28rem;
978+
gap: 0.38rem;
980979
z-index: 22;
981980
pointer-events: auto;
982981
padding: 0.36rem 0.6rem;
983-
min-height: 3.2rem;
982+
min-height: 2.4rem;
984983
border-radius: 999px;
985984
background: rgba(6, 12, 26, 0.65);
986985
border: 1px solid rgba(109, 146, 219, 0.25);
987986
backdrop-filter: blur(8px);
988987
box-shadow: 0 8px 20px rgba(4, 10, 20, 0.28);
989988
max-width: min(92vw, 980px);
990989
width: fit-content;
990+
overflow-x: auto;
991+
overflow-y: hidden;
992+
scroll-snap-type: x proximity;
993+
scroll-padding: 0.6rem;
994+
overscroll-behavior-x: contain;
995+
-webkit-overflow-scrolling: touch;
996+
scrollbar-width: none;
997+
-ms-overflow-style: none;
998+
}
999+
1000+
.section-rail::-webkit-scrollbar {
1001+
display: none;
1002+
}
1003+
1004+
body[data-page="home"] .section-rail {
1005+
flex-direction: column;
1006+
gap: 0.28rem;
1007+
min-height: 3.2rem;
9911008
overflow: hidden;
9921009
}
9931010

994-
.section-rail .rail-row {
1011+
body[data-page="home"] .section-rail .rail-row {
9951012
display: flex;
9961013
align-items: center;
9971014
justify-content: center;
@@ -4449,11 +4466,7 @@ body.istj-mode .egg-btn {
44494466
transform: translateX(-50%);
44504467
gap: 0.32rem;
44514468
padding: 0.26rem 0.42rem;
4452-
min-height: 2.9rem;
4453-
}
4454-
4455-
.section-rail .rail-row {
4456-
gap: 0.28rem;
4469+
min-height: 2.15rem;
44574470
}
44584471

44594472
.section-rail a {
@@ -4464,6 +4477,15 @@ body.istj-mode .egg-btn {
44644477
.section-rail .rail-label {
44654478
display: none;
44664479
}
4480+
4481+
body[data-page="home"] .section-rail {
4482+
min-height: 2.9rem;
4483+
gap: 0.26rem;
4484+
}
4485+
4486+
body[data-page="home"] .section-rail .rail-row {
4487+
gap: 0.28rem;
4488+
}
44674489
}
44684490

44694491
@media (max-width: 520px) {
@@ -4498,13 +4520,17 @@ body.istj-mode .egg-btn {
44984520
right: auto;
44994521
bottom: 0.55rem;
45004522
transform: translateX(-50%);
4501-
min-height: 2.8rem;
4523+
min-height: 2.05rem;
45024524
}
45034525

45044526
.section-rail a::before {
45054527
width: 5px;
45064528
height: 5px;
45074529
}
4530+
4531+
body[data-page="home"] .section-rail {
4532+
min-height: 2.8rem;
4533+
}
45084534
}
45094535

45104536
/* Theme remap pass: Liquid Glass gets the old subtle style, Material 3 gets true colorful Android-inspired UI. */

0 commit comments

Comments
 (0)