The label yields to the tab, the board keeps its viewport
Browse files at this commit9f04477da433f4422f221132e59ca238ae9a0e7eParent: 20280ed- feat
- the label yields to the tab, the board keeps its viewport
6 changed files +44 -40
- crates/izlek-web/src/logs.rs +0 -2
- crates/izlek-web/src/rules.rs +0 -2
- crates/izlek-web/src/settings.rs +0 -2
- style/_instrument.scss +3 -16
- style/_ledger.scss +11 -8
- style/main.scss +30 -10
crates/izlek-web/src/logs.rsmodified+0 -2
| @@ -391,8 +391,6 @@ async fn logs_screen(cx: &Cx, snapshot: LogsSnapshot) -> Result { | |||
| 391 | <span class="wordmark-text">"izlek"</span> | 391 | <span class="wordmark-text">"izlek"</span> |
| 392 | <span class="wordmark-dot"></span> | 392 | <span class="wordmark-dot"></span> |
| 393 | </a> | 393 | </a> |
| 394 | - <div class="topbar-divider"></div> | ||
| 395 | - <span class="board-name">(t(lang, Key::Logs))</span> | ||
| 396 | (crate::layout::topbar_nav(cx, crate::layout::NavPage::Logs, lang).await?) | 394 | (crate::layout::topbar_nav(cx, crate::layout::NavPage::Logs, lang).await?) |
| 397 | <div class="spacer"></div> | 395 | <div class="spacer"></div> |
| 398 | (crate::layout::user_menu(cx, &me.display_name, &me.email, me.role, lang).await?) | 396 | (crate::layout::user_menu(cx, &me.display_name, &me.email, me.role, lang).await?) |
crates/izlek-web/src/rules.rsmodified+0 -2
| @@ -715,8 +715,6 @@ async fn rules_page(cx: &Cx) -> Result { | |||
| 715 | <span class="wordmark-text">"izlek"</span> | 715 | <span class="wordmark-text">"izlek"</span> |
| 716 | <span class="wordmark-dot"></span> | 716 | <span class="wordmark-dot"></span> |
| 717 | </a> | 717 | </a> |
| 718 | - <div class="topbar-divider"></div> | ||
| 719 | - <span class="board-name">(t(lang, Key::MailRules))</span> | ||
| 720 | (crate::layout::topbar_nav(cx, crate::layout::NavPage::Rules, lang).await?) | 718 | (crate::layout::topbar_nav(cx, crate::layout::NavPage::Rules, lang).await?) |
| 721 | <div class="spacer"></div> | 719 | <div class="spacer"></div> |
| 722 | (crate::layout::user_menu(cx, &user.display_name, &user.email, user.role, lang).await?) | 720 | (crate::layout::user_menu(cx, &user.display_name, &user.email, user.role, lang).await?) |
crates/izlek-web/src/settings.rsmodified+0 -2
| @@ -786,8 +786,6 @@ async fn settings_page(cx: &Cx) -> Result { | |||
| 786 | <span class="wordmark-text">"izlek"</span> | 786 | <span class="wordmark-text">"izlek"</span> |
| 787 | <span class="wordmark-dot"></span> | 787 | <span class="wordmark-dot"></span> |
| 788 | </a> | 788 | </a> |
| 789 | - <div class="topbar-divider"></div> | ||
| 790 | - <span class="board-name">(t(lang, Key::NavSettings))</span> | ||
| 791 | (crate::layout::topbar_nav(cx, crate::layout::NavPage::Settings, lang).await?) | 789 | (crate::layout::topbar_nav(cx, crate::layout::NavPage::Settings, lang).await?) |
| 792 | <div class="spacer"></div> | 790 | <div class="spacer"></div> |
| 793 | (crate::layout::user_menu(cx, &user.display_name, &user.email, user.role, lang).await?) | 791 | (crate::layout::user_menu(cx, &user.display_name, &user.email, user.role, lang).await?) |
style/_instrument.scssmodified+3 -16
| @@ -11,8 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | // --- Instrument skin: chrome (topbar, wordmark, nav) ----------------------- | 12 | // --- Instrument skin: chrome (topbar, wordmark, nav) ----------------------- |
| 13 | 13 | ||
| 14 | - // 44px chrome strip. Pairs with the .board-stage min-height below, which | 14 | + // 44px chrome strip. |
| 15 | - // re-derives its calc from these two literals. | ||
| 16 | .topbar { | 15 | .topbar { |
| 17 | height: 44px; | 16 | height: 44px; |
| 18 | } | 17 | } |
| @@ -21,12 +20,8 @@ | |||
| 21 | height: 40px; | 20 | height: 40px; |
| 22 | } | 21 | } |
| 23 | 22 | ||
| 24 | - .board-stage { | 23 | + // The wordmark reads as an engraved panel label: mono, uppercase, tracked |
| 25 | - min-height: calc(100vh - 44px - 40px); | 24 | + // wide. |
| 26 | - } | ||
| 27 | - | ||
| 28 | - // Wordmark and board name read as engraved panel labels: mono, uppercase, | ||
| 29 | - // tracked wide. | ||
| 30 | .wordmark-text { | 25 | .wordmark-text { |
| 31 | font-family: var(--font-mono); | 26 | font-family: var(--font-mono); |
| 32 | font-size: 13px; | 27 | font-size: 13px; |
| @@ -35,14 +30,6 @@ | |||
| 35 | text-transform: uppercase; | 30 | text-transform: uppercase; |
| 36 | } | 31 | } |
| 37 | 32 | ||
| 38 | - .board-name { | ||
| 39 | - font-family: var(--font-mono); | ||
| 40 | - font-size: 11px; | ||
| 41 | - font-weight: 600; | ||
| 42 | - letter-spacing: 0.12em; | ||
| 43 | - text-transform: uppercase; | ||
| 44 | - } | ||
| 45 | - | ||
| 46 | // Active nav underlines in accent, not ink. | 33 | // Active nav underlines in accent, not ink. |
| 47 | .topbar-nav-on { | 34 | .topbar-nav-on { |
| 48 | box-shadow: inset 0 -2px 0 var(--accent); | 35 | box-shadow: inset 0 -2px 0 var(--accent); |
style/_ledger.scssmodified+11 -8
| @@ -18,11 +18,6 @@ | |||
| 18 | font-weight: 600; | 18 | font-weight: 600; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | - .board-name { | ||
| 22 | - font-family: var(--font-display); | ||
| 23 | - font-size: 15px; | ||
| 24 | - } | ||
| 25 | - | ||
| 26 | .auth-title, | 21 | .auth-title, |
| 27 | .settings-title, | 22 | .settings-title, |
| 28 | .detail-title, | 23 | .detail-title, |
| @@ -36,7 +31,7 @@ | |||
| 36 | 31 | ||
| 37 | .settings-title { font-size: 22px; } | 32 | .settings-title { font-size: 22px; } |
| 38 | .panel-title { font-size: 15px; } | 33 | .panel-title { font-size: 15px; } |
| 39 | - .card-title { font-size: 14px; } | 34 | + .card-title { font-size: 16px; } |
| 40 | 35 | ||
| 41 | // --- Ledger skin: rules & ornaments (no boxes) ------------------------------- | 36 | // --- Ledger skin: rules & ornaments (no boxes) ------------------------------- |
| 42 | 37 | ||
| @@ -83,7 +78,7 @@ | |||
| 83 | border-bottom: 1px solid var(--border); | 78 | border-bottom: 1px solid var(--border); |
| 84 | border-radius: 0; | 79 | border-radius: 0; |
| 85 | box-shadow: none; | 80 | box-shadow: none; |
| 86 | - padding: 10px 2px; | 81 | + padding: 12px 2px 14px 2px; |
| 87 | transition: border-color var(--dur-fast) var(--ease); | 82 | transition: border-color var(--dur-fast) var(--ease); |
| 88 | 83 | ||
| 89 | &:hover { | 84 | &:hover { |
| @@ -98,6 +93,11 @@ | |||
| 98 | .card-title { text-decoration: line-through; } | 93 | .card-title { text-decoration: line-through; } |
| 99 | } | 94 | } |
| 100 | 95 | ||
| 96 | + // Ledger entries stack into a continuous ruled column — no gaps between rows. | ||
| 97 | + .column-cards { | ||
| 98 | + gap: 0; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | .rule-row { | 101 | .rule-row { |
| 102 | background: transparent; | 102 | background: transparent; |
| 103 | border: none; | 103 | border: none; |
| @@ -115,7 +115,10 @@ | |||
| 115 | border-bottom: 1px solid var(--rule-strong); | 115 | border-bottom: 1px solid var(--rule-strong); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | - .topbar-nav-on { box-shadow: inset 0 -2px 0 var(--rule-strong); } | 118 | + .topbar-nav-on { |
| 119 | + border-bottom: 2px solid var(--rule-strong); | ||
| 120 | + box-shadow: none; | ||
| 121 | + } | ||
| 119 | 122 | ||
| 120 | // --- Ledger skin: chips as inked text ---------------------------------------- | 123 | // --- Ledger skin: chips as inked text ---------------------------------------- |
| 121 | 124 | ||
style/main.scssmodified+30 -10
| @@ -325,6 +325,19 @@ body { | |||
| 325 | font-size: 13px; | 325 | font-size: 13px; |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | +// The board page owns the viewport: chrome and the occasional refusal line | ||
| 329 | +// keep their natural height, the stage absorbs the rest, the document never | ||
| 330 | +// scrolls. | ||
| 331 | +body:has(.board-stage) { | ||
| 332 | + height: 100vh; | ||
| 333 | + overflow: hidden; | ||
| 334 | + display: flex; | ||
| 335 | + flex-direction: column; | ||
| 336 | + | ||
| 337 | + > * { flex: none; } | ||
| 338 | + > .board-stage { flex: 1; min-height: 0; } | ||
| 339 | +} | ||
| 340 | + | ||
| 328 | a { | 341 | a { |
| 329 | color: var(--accent); | 342 | color: var(--accent); |
| 330 | transition: color var(--dur-fast) var(--ease); | 343 | transition: color var(--dur-fast) var(--ease); |
| @@ -372,22 +385,22 @@ a { | |||
| 372 | background: var(--border); | 385 | background: var(--border); |
| 373 | } | 386 | } |
| 374 | 387 | ||
| 375 | -.board-name { | ||
| 376 | - font-size: 13px; | ||
| 377 | - font-weight: 600; | ||
| 378 | -} | ||
| 379 | - | ||
| 380 | .topbar-nav-links { | 388 | .topbar-nav-links { |
| 381 | display: flex; | 389 | display: flex; |
| 382 | gap: 16px; | 390 | gap: 16px; |
| 391 | + margin-left: auto; | ||
| 383 | } | 392 | } |
| 384 | 393 | ||
| 394 | +// The spacer's flex-grow eats the free space before auto margins see any, so | ||
| 395 | +// inside the chrome the nav's auto margin does the pushing instead. | ||
| 396 | +.topbar > .spacer { display: none; } | ||
| 397 | + | ||
| 385 | .topbar-nav { | 398 | .topbar-nav { |
| 386 | font-family: var(--font-mono); | 399 | font-family: var(--font-mono); |
| 387 | font-size: 10px; | 400 | font-size: 10px; |
| 388 | letter-spacing: 0.08em; | 401 | letter-spacing: 0.08em; |
| 389 | text-transform: uppercase; | 402 | text-transform: uppercase; |
| 390 | - color: var(--muted-soft); | 403 | + color: var(--muted); |
| 391 | text-decoration: none; | 404 | text-decoration: none; |
| 392 | padding-bottom: 2px; | 405 | padding-bottom: 2px; |
| 393 | 406 | ||
| @@ -683,14 +696,16 @@ a { | |||
| 683 | position: relative; | 696 | position: relative; |
| 684 | display: flex; | 697 | display: flex; |
| 685 | flex-direction: column; | 698 | flex-direction: column; |
| 686 | - min-height: calc(100vh - var(--topbar-height) - 52px); | 699 | + flex: 1; |
| 700 | + min-height: 0; | ||
| 687 | padding: 20px 24px 24px 24px; | 701 | padding: 20px 24px 24px 24px; |
| 688 | } | 702 | } |
| 689 | 703 | ||
| 690 | .board-columns { | 704 | .board-columns { |
| 691 | flex: 1; | 705 | flex: 1; |
| 706 | + min-height: 0; | ||
| 692 | display: grid; | 707 | display: grid; |
| 693 | - grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); | 708 | + grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); |
| 694 | gap: 16px; | 709 | gap: 16px; |
| 695 | align-items: stretch; | 710 | align-items: stretch; |
| 696 | } | 711 | } |
| @@ -730,8 +745,13 @@ a { | |||
| 730 | .column-cards { | 745 | .column-cards { |
| 731 | display: flex; | 746 | display: flex; |
| 732 | flex-direction: column; | 747 | flex-direction: column; |
| 733 | - gap: 10px; | 748 | + gap: 8px; |
| 734 | flex: 1; | 749 | flex: 1; |
| 750 | + min-height: 0; | ||
| 751 | + overflow-y: auto; | ||
| 752 | + scrollbar-width: none; | ||
| 753 | + | ||
| 754 | + &::-webkit-scrollbar { display: none; } | ||
| 735 | } | 755 | } |
| 736 | 756 | ||
| 737 | .column-empty { | 757 | .column-empty { |
| @@ -755,7 +775,7 @@ a { | |||
| 755 | background: var(--surface); | 775 | background: var(--surface); |
| 756 | border: 1px solid var(--border); | 776 | border: 1px solid var(--border); |
| 757 | border-radius: var(--radius-md); | 777 | border-radius: var(--radius-md); |
| 758 | - padding: 12px; | 778 | + padding: 10px 12px; |
| 759 | box-shadow: var(--shadow-1); | 779 | box-shadow: var(--shadow-1); |
| 760 | cursor: pointer; | 780 | cursor: pointer; |
| 761 | transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); | 781 | transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); |