Give the phone its own harbour UI instead of a squeezed desktop.
Full-screen water with a floating dock and bottom sheet for detail, clearer boats and Gas actions, plus a branded gate and a fixed sheet-over-scrim stack. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
240
board/board.css
240
board/board.css
@@ -7,7 +7,7 @@
|
||||
--buoy: #E8A33D;
|
||||
/* Boat slots on the water: a boat's width and one slot row's height. */
|
||||
--boat-w: 120px;
|
||||
--slot-h: 152px;
|
||||
--slot-h: 176px;
|
||||
--paper: #F6F2EA;
|
||||
--sand: #E8D9BB;
|
||||
--quay: #B98B5E;
|
||||
@@ -58,7 +58,9 @@ button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px soli
|
||||
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
|
||||
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; }
|
||||
.stale { position: relative; margin: 0; align-self: flex-start; font-size: 14px; background: rgba(255,253,248,.85); border-radius: 999px; padding: 6px 14px; }
|
||||
.scrim { display: none; }
|
||||
|
||||
main { position: relative; display: flex; flex-direction: column; }
|
||||
.lane { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 0 12px; }
|
||||
@@ -83,7 +85,8 @@ main { position: relative; display: flex; flex-direction: column; }
|
||||
|
||||
/* Boats */
|
||||
.boat { position: relative; background: transparent; border: 0; border-radius: 18px; padding: 4px 2px 8px; width: var(--boat-w); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
|
||||
.boat.dim { opacity: .3; }
|
||||
.boat.dim { opacity: .42; }
|
||||
.boat.needs:not(.dim) .chip { box-shadow: 0 0 0 2px var(--buoy); }
|
||||
.boat.done { opacity: .8; }
|
||||
.boat .hull { display: block; position: relative; width: 96px; height: 72px; animation: float 4.6s ease-in-out infinite; transform-origin: 50% 85%; transition: filter .2s ease; }
|
||||
.boat.done .hull { animation-name: calm; animation-duration: 6s; }
|
||||
@@ -92,7 +95,9 @@ main { position: relative; display: flex; flex-direction: column; }
|
||||
.boat.picked .shade { background: rgba(255,255,255,.95); }
|
||||
.boat:hover .hull { filter: brightness(1.06); animation-duration: 2.2s; }
|
||||
.boat .chip { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; padding: 4px 10px; border-radius: 10px; background: rgba(255,253,248,.82); overflow-wrap: anywhere; }
|
||||
.boat.picked .chip { background: var(--teal); color: #fff; }
|
||||
.boat.picked .chip { background: var(--teal); color: #fff; box-shadow: none; }
|
||||
.boat .boat-title { max-width: 100%; font-size: 11px; line-height: 1.25; text-align: center; color: #1E4A51; opacity: .9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
||||
.boat.picked .boat-title { color: var(--ink); opacity: 1; }
|
||||
.boat .marks { display: flex; align-items: center; justify-content: center; gap: 8px; height: 16px; }
|
||||
.boat .anchor { position: absolute; left: -10px; top: 40px; animation: sway 3s ease-in-out infinite; transform-origin: 18px 0; }
|
||||
.boat .buoy { position: absolute; right: -6px; top: 46px; width: 18px; height: 22px; animation: float 3.4s ease-in-out infinite; }
|
||||
@@ -160,8 +165,7 @@ aside { min-width: 0; }
|
||||
.stamp { margin: -8px 0 0; font-size: 12px; color: var(--ink-soft); }
|
||||
.todo-list { display: flex; flex-direction: column; gap: 12px; }
|
||||
.todo-item { text-align: left; border: 0; cursor: pointer; background: #FBEBD0; border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
|
||||
.todo-item strong { flex: 1; font-size: 15px; }
|
||||
.todo-item .age { font-size: 13px; color: #5C4310; }
|
||||
.todo-item .age { flex: none; font-size: 13px; color: #5C4310; }
|
||||
.todo-item .dot { position: relative; flex: none; width: 12px; height: 12px; }
|
||||
.todo-item .dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--buoy); }
|
||||
.todo-item .dot i:first-child { animation: pulse 1.8s ease-out infinite; }
|
||||
@@ -176,34 +180,203 @@ aside { min-width: 0; }
|
||||
:root { --boat-w: 104px; }
|
||||
}
|
||||
|
||||
/* Phone: the shore becomes a sheet rising from the bottom. */
|
||||
/* Phone: full harbour + floating dock + bottom sheet for detail. */
|
||||
@media (max-width: 899px) {
|
||||
.harbour { display: block; min-height: 100vh; background: linear-gradient(180deg, var(--water-a) 0%, var(--water-b) 60%, var(--water-c) 100%); }
|
||||
.water { padding: 22px 20px 50vh; gap: 18px; }
|
||||
.harbour {
|
||||
display: block;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
background: linear-gradient(180deg, var(--water-a) 0%, var(--water-b) 55%, var(--water-c) 100%);
|
||||
overflow: visible;
|
||||
}
|
||||
.water {
|
||||
padding: 18px 16px calc(88px + env(safe-area-inset-bottom));
|
||||
gap: 14px;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
}
|
||||
.brand span { font-size: 22px; }
|
||||
h1 { font-size: 32px; letter-spacing: -.5px; }
|
||||
.zones { grid-template-columns: 1fr; gap: 14px; height: auto; transition: none; }
|
||||
.boats { display: flex; flex-wrap: wrap; gap: 6px 10px; }
|
||||
.zone.beres .boats { justify-content: flex-start; }
|
||||
.zones { padding-right: 0; }
|
||||
aside, .shore-top { position: static; }
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
.boats::-webkit-scrollbar { display: none; }
|
||||
.zone.beres .boats { justify-content: flex-start; }
|
||||
.lane, .lane.has-break { padding: 18px 0 28px; }
|
||||
.breakwater { left: 40px; }
|
||||
.boat { width: 104px; }
|
||||
.shore { position: fixed; z-index: 10; top: auto; left: 0; right: 0; bottom: 0; height: auto; max-height: 72vh; overflow-y: auto; padding: 16px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: 0 -6px 0 rgba(23,43,51,.05); }
|
||||
.shore-inner { height: auto; gap: 16px; padding: 0; }
|
||||
.shore-inner aside { overflow: visible; padding: 0; scrollbar-gutter: auto; }
|
||||
.shore-top { padding-right: 0; }
|
||||
.boat {
|
||||
flex: 0 0 auto;
|
||||
width: 112px;
|
||||
scroll-snap-align: start;
|
||||
min-height: 148px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
.boat .hull { width: 88px; height: 66px; }
|
||||
.boat .hull svg { width: 88px; height: 66px; }
|
||||
.boat .boat-title { font-size: 12px; -webkit-line-clamp: 2; }
|
||||
|
||||
/* 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. */
|
||||
.shore {
|
||||
position: fixed;
|
||||
z-index: 20;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 100dvh;
|
||||
max-height: none;
|
||||
flex: none;
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.shore-inner {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
gap: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
pointer-events: none;
|
||||
}
|
||||
.shore .edge { display: none; }
|
||||
.shore::before { content: ''; position: sticky; top: -16px; display: block; height: 0; }
|
||||
.card { padding: 18px; gap: 18px; border-radius: 24px; }
|
||||
.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; }
|
||||
|
||||
.scrim {
|
||||
display: block;
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: rgba(23, 43, 51, .28);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity .22s ease;
|
||||
}
|
||||
.harbour[data-sheet="detail"] .scrim,
|
||||
.harbour[data-sheet="list"] .scrim {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.scrim[hidden] { display: none !important; }
|
||||
|
||||
#detail {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
max-height: min(92dvh, 860px);
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
pointer-events: auto;
|
||||
padding: 0 14px calc(18px + env(safe-area-inset-bottom));
|
||||
background: var(--paper);
|
||||
background-image: radial-gradient(#E2D8C6 1.2px, transparent 1.4px);
|
||||
background-size: 24px 24px;
|
||||
border-radius: 28px 28px 0 0;
|
||||
box-shadow: 0 -12px 40px rgba(23, 43, 51, .18);
|
||||
transform: translateY(110%);
|
||||
transition: transform .28s cubic-bezier(.2, .8, .2, 1);
|
||||
scrollbar-gutter: auto;
|
||||
}
|
||||
#detail::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 44px;
|
||||
height: 5px;
|
||||
margin: 10px auto 14px;
|
||||
border-radius: 999px;
|
||||
background: #D5CBB8;
|
||||
}
|
||||
.harbour[data-sheet="detail"] #detail,
|
||||
.harbour[data-sheet="list"] #detail {
|
||||
transform: translateY(0);
|
||||
}
|
||||
.harbour[data-sheet="closed"] #detail {
|
||||
pointer-events: none;
|
||||
}
|
||||
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; }
|
||||
.tone { padding: 16px; }
|
||||
.tone .icon { width: 44px; height: 44px; }
|
||||
.tone .word { font-size: 24px; }
|
||||
.seg button { padding: 6px 14px; }
|
||||
|
||||
.actions .buttons.main { display: flex; flex-direction: column; gap: 10px; }
|
||||
.actions .buttons.main .act { width: 100%; min-height: 52px; }
|
||||
.actions .buttons.side { display: flex; gap: 10px; }
|
||||
.actions .buttons.side .act { flex: 1 1 0; min-height: 48px; }
|
||||
.release-row { flex-direction: column; }
|
||||
.release-row .act { width: 100%; min-height: 52px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
@@ -211,11 +384,14 @@ aside { min-width: 0; }
|
||||
}
|
||||
|
||||
/* Gate and rubric pages */
|
||||
.page-gate, .page-rubric { background: var(--paper); min-height: 100vh; }
|
||||
.page-gate main { max-width: 440px; margin: 0 auto; padding: 18vh 20px 40px; display: flex; flex-direction: column; gap: 18px; }
|
||||
.page-gate h1 { font-size: 40px; }
|
||||
.page-gate p { margin: 0; font-size: 17px; line-height: 1.5; }
|
||||
.page-gate, .page-rubric { background: var(--paper); min-height: 100vh; color: var(--ink); font-family: var(--sans); }
|
||||
.page-gate main { max-width: 440px; margin: 0 auto; padding: 16vh 20px 40px; display: flex; flex-direction: column; gap: 18px; }
|
||||
.page-gate .brand { margin-bottom: 8px; }
|
||||
.page-gate .brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
|
||||
.page-gate h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -1px; margin: 0; }
|
||||
.page-gate p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
|
||||
.btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--teal); color: #fff !important; font-weight: 700; text-decoration: none; }
|
||||
.btn:hover { background: var(--teal-deep); }
|
||||
.page-rubric main { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; line-height: 1.55; }
|
||||
.page-rubric h1, .page-rubric h2, .page-rubric h3 { font-family: var(--serif); scroll-margin-top: 20px; }
|
||||
.page-rubric h2:target { background: #FBEBD0; border-radius: 10px; padding: 4px 10px; margin-left: -10px; }
|
||||
@@ -223,6 +399,8 @@ aside { min-width: 0; }
|
||||
/* Approver actions (M3) */
|
||||
.actions { display: flex; flex-direction: column; gap: 12px; }
|
||||
.actions .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.actions .buttons.main,
|
||||
.actions .buttons.side { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.act { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
|
||||
.act:disabled { opacity: .5; cursor: progress; }
|
||||
.act.primary { background: var(--teal); color: #fff; min-width: 120px; }
|
||||
@@ -231,7 +409,7 @@ aside { min-width: 0; }
|
||||
.act.danger { background: #F8DDD5; color: #9A2E1A; }
|
||||
.countdown { margin: 0; font-size: 15px; font-weight: 700; color: #6B4206; }
|
||||
.note-label { font-size: 14px; font-weight: 700; color: #24525A; }
|
||||
.actions textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 16px; border: 2px solid #E2D8C6; resize: vertical; }
|
||||
.actions textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 16px; border: 2px solid #E2D8C6; resize: vertical; width: 100%; }
|
||||
.actions textarea:focus-visible { outline: 3px solid var(--buoy); outline-offset: 1px; }
|
||||
.act-error { margin: 0; font-size: 14px; color: #9A2E1A; }
|
||||
|
||||
@@ -248,4 +426,6 @@ aside { min-width: 0; }
|
||||
.changelog .by { color: var(--ink-soft); font-size: 14px; }
|
||||
.boat.sailing .hull { animation-name: sail; animation-duration: 2.6s; }
|
||||
@keyframes sail { 0%, 100% { transform: translate(0, 0) rotate(-1deg); } 50% { transform: translate(6px, -3px) rotate(1.5deg); } }
|
||||
@media (max-width: 899px) { .act { flex: 1 1 auto; } }
|
||||
.todo-item .todo-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
|
||||
.todo-item .todo-copy strong { font-size: 15px; }
|
||||
.todo-item .todo-copy span { font-size: 13px; color: #5C4310; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
Reference in New Issue
Block a user