Give the phone a native harbour scene with interruptible dermaga pans.
Replace stacked zone strips with one water scene per dermaga, a shore sheet, and a continuous Prod↔Staging camera pan; closing Perlu kamu clears the dim filter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
245
board/board.css
245
board/board.css
@@ -56,6 +56,8 @@ button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px soli
|
||||
|
||||
.brand { position: relative; display: flex; align-items: center; gap: 10px; }
|
||||
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
|
||||
.brand-me { display: none; margin-left: auto; }
|
||||
.toolbar { display: none; }
|
||||
h1 { position: relative; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: -1px; }
|
||||
.empty { position: relative; margin: 0; max-width: 520px; font-size: 17px; line-height: 1.5; }
|
||||
.legend { position: relative; margin: -8px 0 0; max-width: 520px; font-size: 13px; line-height: 1.4; color: #1E4A51; opacity: .78; }
|
||||
@@ -180,7 +182,7 @@ aside { min-width: 0; }
|
||||
:root { --boat-w: 104px; }
|
||||
}
|
||||
|
||||
/* Phone: full harbour + floating dock + bottom sheet for detail. */
|
||||
/* Phone: one harbour scene + bottom sheet from the shore. */
|
||||
@media (max-width: 899px) {
|
||||
.harbour {
|
||||
display: block;
|
||||
@@ -190,69 +192,165 @@ aside { min-width: 0; }
|
||||
overflow: visible;
|
||||
}
|
||||
.water {
|
||||
padding: 18px 16px calc(88px + env(safe-area-inset-bottom));
|
||||
gap: 14px;
|
||||
padding: 14px 16px 0;
|
||||
gap: 12px;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
}
|
||||
.brand span { font-size: 22px; }
|
||||
h1 { font-size: 28px; letter-spacing: -.5px; }
|
||||
.legend { margin-top: -4px; font-size: 12px; }
|
||||
.zone .floats, .quay, .pilings { display: none; }
|
||||
.lane, .lane.has-break { padding: 14px 0 22px; }
|
||||
.lane h2 { font-size: 20px; }
|
||||
.breakwater {
|
||||
left: 0; right: 0; bottom: -6px; height: 10px;
|
||||
border-radius: 999px;
|
||||
background-image: none;
|
||||
background-color: rgba(168, 158, 140, .55);
|
||||
box-shadow: none;
|
||||
}
|
||||
.breakwater svg { display: none; }
|
||||
|
||||
/* One strip per zone; boats scroll sideways. */
|
||||
.zones {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
height: auto;
|
||||
padding-right: 0;
|
||||
transition: none;
|
||||
}
|
||||
.zone {
|
||||
background: rgba(255, 253, 248, .34);
|
||||
border-radius: 18px;
|
||||
padding: 10px 10px 8px;
|
||||
}
|
||||
.zone-label { margin-bottom: 2px; }
|
||||
.boats {
|
||||
.brand { padding-top: env(safe-area-inset-top); }
|
||||
.brand span { font-size: 22px; }
|
||||
.brand { width: 100%; }
|
||||
.brand-me { display: block; margin: 0 0 0 auto; }
|
||||
.brand-me .avatar { width: 40px; height: 40px; }
|
||||
h1 { font-size: 28px; letter-spacing: -.5px; max-width: 18ch; }
|
||||
.legend { display: none; }
|
||||
.empty { font-size: 15px; }
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 4px 8px;
|
||||
overflow-x: auto;
|
||||
overscroll-behavior-x: contain;
|
||||
scroll-snap-type: x mandatory;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: 2px 4px 6px;
|
||||
margin: 0 -2px;
|
||||
scrollbar-width: none;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
position: relative;
|
||||
}
|
||||
.toolbar[hidden] { display: none !important; }
|
||||
.dermaga {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.chip-pill {
|
||||
min-height: 32px;
|
||||
padding: 4px 12px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 253, 248, .55);
|
||||
color: #1E4A51;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.chip-pill[aria-pressed="true"] {
|
||||
background: var(--teal);
|
||||
color: #fff;
|
||||
}
|
||||
.chip-pill.filter { background: rgba(246, 242, 234, .9); }
|
||||
.chip-pill.filter[aria-pressed="true"] { background: #FBEBD0; color: #5C4310; }
|
||||
.chip-pill .count {
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.chip-pill.filter[aria-pressed="true"] .count { background: var(--buoy); color: var(--ink); }
|
||||
|
||||
.zone .floats, .quay, .pilings, .breakwater, .lane h2, .zone-label { display: none; }
|
||||
.lane, .lane.has-break, .lane.phone-harbour {
|
||||
padding: 0;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
/* Full-bleed harbour so the camera pan clips at the screen edge, not the padded water. */
|
||||
main#lanes {
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
min-height: 280px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 -16px;
|
||||
width: calc(100% + 32px);
|
||||
overflow: hidden;
|
||||
}
|
||||
.phone-harbour { overflow: visible; }
|
||||
/* Dual-scene camera pan: both harbours stay mounted so a reverse tap can retarget. */
|
||||
main#lanes.lane-panning {
|
||||
display: block;
|
||||
}
|
||||
main#lanes.lane-panning .lane-pan {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex: none;
|
||||
will-change: transform;
|
||||
}
|
||||
.stale { margin: 0 16px 12px; align-self: center; }
|
||||
|
||||
/* One water plane: Dicek high, Siap mid, Beres near the sand. */
|
||||
.harbour-scene {
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
min-height: 300px;
|
||||
display: grid;
|
||||
grid-template-rows: 1fr 1.15fr 1fr auto;
|
||||
padding: 4px 16px 0;
|
||||
}
|
||||
.band {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.band-cek { align-items: flex-end; padding-bottom: 4px; }
|
||||
.band-siap { align-items: center; }
|
||||
.band-beres { align-items: flex-start; padding-top: 6px; }
|
||||
.band .boats {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
gap: 4px 14px;
|
||||
width: 100%;
|
||||
overflow: visible;
|
||||
padding: 0 4px;
|
||||
margin: 0;
|
||||
}
|
||||
.beach {
|
||||
height: 28px;
|
||||
margin: 8px -16px 0;
|
||||
width: calc(100% + 32px);
|
||||
border-radius: 40% 40% 0 0 / 100% 100% 0 0;
|
||||
background: linear-gradient(180deg, #E4D4B0 0%, var(--sand) 55%, #DFCDA3 100%);
|
||||
box-shadow: 0 -8px 18px rgba(23, 43, 51, .06);
|
||||
}
|
||||
.boats::-webkit-scrollbar { display: none; }
|
||||
.zone.beres .boats { justify-content: flex-start; }
|
||||
.boat {
|
||||
flex: 0 0 auto;
|
||||
width: 112px;
|
||||
scroll-snap-align: start;
|
||||
min-height: 148px;
|
||||
padding-top: 6px;
|
||||
width: 108px;
|
||||
min-height: 0;
|
||||
padding: 4px 2px 2px;
|
||||
gap: 2px;
|
||||
}
|
||||
.boat .hull { width: 88px; height: 66px; }
|
||||
.boat .hull svg { width: 88px; height: 66px; }
|
||||
.boat .boat-title { font-size: 12px; -webkit-line-clamp: 2; }
|
||||
.boat .boat-title { display: none; }
|
||||
.boat .chip {
|
||||
font-size: 12px;
|
||||
padding: 5px 10px;
|
||||
background: rgba(255, 253, 248, .88);
|
||||
box-shadow: 0 4px 12px rgba(23, 43, 51, .08);
|
||||
}
|
||||
.boat.picked {
|
||||
z-index: 2;
|
||||
}
|
||||
.boat.picked .chip {
|
||||
background: var(--teal);
|
||||
color: #fff;
|
||||
padding: 7px 12px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 22px rgba(23, 43, 51, .2);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.boat.picked .shade { background: rgba(255, 255, 248, .95); }
|
||||
|
||||
/* Dock + sheet share .shore so the scrim can never paint over #detail.
|
||||
Shore must be a full-viewport layer: its children are all out-of-flow, so
|
||||
height:auto collapses to 0 and the sheet ends up above the screen. */
|
||||
/* Sheet only: no floating dock. Shore is a full-viewport layer so #detail anchors to the bottom. */
|
||||
.shore {
|
||||
position: fixed;
|
||||
z-index: 20;
|
||||
@@ -279,33 +377,7 @@ aside { min-width: 0; }
|
||||
pointer-events: none;
|
||||
}
|
||||
.shore .edge { display: none; }
|
||||
.shore-top {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin: 0 12px calc(12px + env(safe-area-inset-bottom));
|
||||
padding: 8px;
|
||||
background: rgba(246, 242, 234, .96);
|
||||
border: 1px solid rgba(23, 43, 51, .06);
|
||||
border-radius: 22px;
|
||||
box-shadow: 0 10px 28px rgba(23, 43, 51, .14);
|
||||
backdrop-filter: blur(10px);
|
||||
transition: opacity .2s ease, transform .2s ease;
|
||||
}
|
||||
.harbour[data-sheet="detail"] .shore-top,
|
||||
.harbour[data-sheet="list"] .shore-top {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
pointer-events: none;
|
||||
}
|
||||
.seg { flex: 1 1 auto; min-width: 0; }
|
||||
.seg button { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 6px 12px; font-size: 14px; }
|
||||
.seg #show-mine { padding-right: 8px; }
|
||||
.avatar { width: 40px; height: 40px; }
|
||||
.shore-top { display: none !important; }
|
||||
|
||||
.scrim {
|
||||
display: block;
|
||||
@@ -333,11 +405,11 @@ aside { min-width: 0; }
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
max-height: min(92dvh, 860px);
|
||||
max-height: min(88dvh, 820px);
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
pointer-events: auto;
|
||||
padding: 0 14px calc(18px + env(safe-area-inset-bottom));
|
||||
padding: 0 14px calc(14px + env(safe-area-inset-bottom));
|
||||
background: var(--paper);
|
||||
background-image: radial-gradient(#E2D8C6 1.2px, transparent 1.4px);
|
||||
background-size: 24px 24px;
|
||||
@@ -352,7 +424,7 @@ aside { min-width: 0; }
|
||||
display: block;
|
||||
width: 44px;
|
||||
height: 5px;
|
||||
margin: 10px auto 14px;
|
||||
margin: 10px auto 12px;
|
||||
border-radius: 999px;
|
||||
background: #D5CBB8;
|
||||
}
|
||||
@@ -365,18 +437,21 @@ aside { min-width: 0; }
|
||||
}
|
||||
body.sheet-open { overflow: hidden; }
|
||||
|
||||
.card { padding: 4px 4px 18px; gap: 18px; border-radius: 0; box-shadow: none; background: transparent; }
|
||||
.card h2 { font-size: 22px; }
|
||||
.card { padding: 4px 4px 10px; gap: 16px; border-radius: 0; box-shadow: none; background: transparent; }
|
||||
.card h2 { font-size: 24px; }
|
||||
.card .title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
||||
.tone { padding: 16px; }
|
||||
.tone .icon { width: 44px; height: 44px; }
|
||||
.tone .word { font-size: 24px; }
|
||||
|
||||
/* Thumb zone: Gas right under the tone; findings scroll below. */
|
||||
.actions .buttons.main { display: flex; flex-direction: column; gap: 10px; }
|
||||
.actions .buttons.main .act { width: 100%; min-height: 52px; }
|
||||
.actions .buttons.main .act { width: 100%; min-height: 52px; border-radius: 18px; }
|
||||
.actions .buttons.side { display: flex; gap: 10px; }
|
||||
.actions .buttons.side .act { flex: 1 1 0; min-height: 48px; }
|
||||
.actions .buttons.side .act { flex: 1 1 0; min-height: 48px; border-radius: 16px; }
|
||||
.release-row { flex-direction: column; }
|
||||
.release-row .act { width: 100%; min-height: 52px; }
|
||||
.card .more { display: flex; flex-direction: column; gap: 16px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
Reference in New Issue
Block a user