UX and styling improvements for the Fuscripts site.
Added
\[w:XX%\] for desktop width, \[mw:XX%\] for mobile width, or \[w:80% mw:50%\] for both. Uses CSS custom properties (--dw, --mw) set inline on figure/img elements, with media query rules in the stylesheet for responsive behavior.Changed
max-width styles with CSS custom properties, enabling responsive behavior that inline styles alone cannot express (media queries cannot be used in inline styles).Technical
parseImageCaptionWidth() updated in both fusite/commons/src/utils/notion.ts and fusite/commons/src/services/imageProcessor.ts to parse \[w:\] and \[mw:\] tagsbuildImageStyleAttr() helper generates style="--dw: X%; --mw: Y%" attributesprocessNotionImage() in imageProcessor now accepts optional displayMobileWidth parametermain.css using attribute selectors (figure\[style*="--dw"\]) for desktop and @media (max-width: 640px) for mobile@keyframes tagWaveTilt and @keyframes tagReflex with --tag-i custom property for stagger delay