File
Blob: src/styles/sites.css
| 1 | @import "tailwindcss" source(none); |
| 2 | /* ADR 2026-05-19: |
| 3 | Sites is a separate public asset surface from the app shell. Keep Tailwind's |
| 4 | candidate scan scoped to markup that can actually render in published Sites; |
| 5 | otherwise app-only utilities inflate the blocking Sites stylesheet. |
| 6 | |
| 7 | Measured after scoping: |
| 8 | 111,941 B raw / 18,240 B gzip -> 55,267 B raw / 10,615 B gzip. |
| 9 | */ |
| 10 | @source "../sites"; |
| 11 | @source "../client/sites"; |
| 12 | @source "../shared/sites"; |
| 13 | @source "../shared/editor/presentation"; |
| 14 | @source "../shared/components/ui"; |
| 15 | @import "./theme.css"; |
| 16 | @import "./editor/content.css"; |
| 17 | @import "./editor/callout.css"; |
| 18 | @import "./editor/code-block.css"; |
| 19 | @import "./editor/image-node.css"; |
| 20 | @import "./editor/emoji.css"; |
| 21 | @import "./editor/page-mention.css"; |
| 22 | @import "./editor/details.css"; |
| 23 | @import "./editor/table.css"; |
| 24 | @import "./editor/outline.css"; |
| 25 | |
| 26 | html { |
| 27 | scroll-behavior: smooth; |
| 28 | } |
| 29 | |
| 30 | .site-shell .tiptap :is(h1, h2, h3, h4, h5, h6)[id] { |
| 31 | scroll-margin-top: 5rem; |
| 32 | } |
| 33 | |
| 34 | .site-shell .tiptap ul[data-type="taskList"] > li > label input[type="checkbox"]:disabled { |
| 35 | cursor: default; |
| 36 | opacity: 1; |
| 37 | } |
| 38 | |
| 39 | @media (prefers-reduced-motion: reduce) { |
| 40 | html { |
| 41 | scroll-behavior: auto; |
| 42 | } |
| 43 | } |