Commit Graph
11 Commits
Author SHA1 Message Date
agw b70ce3911e feat(adapter): keep card border/shadow even with Bootstrap .border-0/.shadow-none 2026-06-15 12:34:34 +02:00
Asger Geel Weirsøe 1c9292e22d weirsoe-ui.js: publish measured fixed-navbar height as --wt-nav-height
So content can clear a fixed top navbar exactly instead of guessing (CSS guesses
overlapped on mobile when the bar was taller). Measured on load/resize/orientation
from .navbar.is-fixed-top (or [data-wt-fixed-nav]); consumers use
padding-top: calc(var(--wt-nav-height) + gap).
2026-06-14 19:45:00 +02:00
Asger Geel Weirsøe 437b4fadd2 No card flicker during sort: body.wt-sorting freezes item transitions; hover lift gated behind @media (hover:hover)
Touch no longer triggers the hover lift (which flickered while dragging), and
transitions/hover-transform on sortable items are frozen during an active drag.
2026-06-14 19:25:00 +02:00
Asger Geel Weirsøe b70a65d39e Dark-mode <progress> styling + mobile no-sideways-scroll guards
- adapters/bulma.css: dark progress bars (surface track + accent/good fill).
- base: body overflow-x:hidden + overflow-wrap, and .media-content min-width:0
  so long content wraps instead of widening the page on mobile.
2026-06-14 19:05:00 +02:00
agw ec84e68161 feat: reusable app-shell primitives (tile/grid/stat/field/flash/table/segment/select-card/palette) 2026-06-15 11:53:47 +02:00
Asger Geel Weirsøe 4388f02f18 weirsoe-ui.js: mobile drag lifts a floating clone + wider auto-scroll zone
Touch drag now lifts the card into a position:fixed .wt-drag-clone (shadow +
scale) that follows the finger, with a dimmed placeholder reordering underneath
— reads as actually moving the card. Edge auto-scroll zone widened to 130px with
a minimum speed so it reliably scrolls on mobile.
2026-06-14 18:40:00 +02:00
Asger Geel Weirsøe a04a3c0970 weirsoe-ui.js: reusable sortable (desktop DnD + clean drag image + mobile touch) and copy-link
Generic drag-and-drop sortable list + copy-to-clipboard, extracted from the wish
app so any consumer can reuse it. [data-wt-sortable] + data-order-url on a
container; [data-item-id] children; .drag-handle affordance. Desktop uses native
DnD with a solid drag image (no smeared translucent ghost); mobile uses
long-press to lift + drag-reorder + edge auto-scroll. Plus .drag-handle/.wt-dragging CSS.
2026-06-14 18:10:00 +02:00
agw e14632026d feat(adapter): Bootstrap 5 adapter (maps Bootstrap -> tokens) 2026-06-15 19:26:00 +02:00
Asger Geel Weirsøe 3b1e359421 Fix dark-mode white bar (html bg + body min-height) and centred container
- html now gets --color-bg (not just body) + body min-height:100vh, so a short
  page never reveals a light html canvas as a bar at the bottom.
- Bulma adapter: force dark html/body + transparent sections, and centre
  .container.fullwidth with !important (beats Bulma's .is-marginless margin:0).
2026-06-14 17:05:00 +02:00
Asger Geel Weirsøe 41c22e4bb5 Exact asger toggle (theme key + prefers-color-scheme), responsive container + full site-chrome components
- weirsoe-theme.js: match asger.weirsoe.dk exactly — localStorage['theme'],
  prefers-color-scheme default, light<->dark click delegation.
- Container tokens + .wt-container(/--wide/--narrow/--bleed); Bulma adapter
  constrains content to a centred column past tablet (full-bleed on phones).
- Site chrome extracted from agw/pw so it can drop its hardcoded CSS: .wt-header
  /.wt-nav/.wt-brand/.wt-nav-link/.wt-main/.wt-footer, postcard .wt-card(+date/
  title/desc, --raised) and .wt-chip. README components table + theme-color note.
2026-06-14 16:20:00 +02:00
Asger Geel Weirsøe 5784f1f955 weirsoe-theme: framework-agnostic dark/light card design system
Extracted from asger.weirsoe.dk (src/styles/global.css). Tokens (--color-*) +
base layer (glow, selection, smooth theme transition) + .wt-* components +
.prose, plus a persisted dark/light toggle (weirsoe-theme.js) and a Bulma
adapter (adapters/bulma.css) so existing Bulma sites get the card look without
markup changes. Pure CSS, system fonts, no external requests.
2026-06-14 15:42:00 +02:00