| 1 | body { margin: 0; background: #fff; color: #000; } |
| 2 | /* As OneNote's window: the page scrolls both ways in its own pane, the page list beside it. */ |
| 3 | body:has(> .view) { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; } |
| 4 | header, nav, .index { font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; } |
| 5 | a { color: #0563c1; } |
| 6 | |
| 7 | header { padding: 8px 16px; background: #f3f3f3; border-bottom: 1px solid #d6d6d6; } |
| 8 | header a { color: inherit; font-weight: 600; text-decoration: none; } |
| 9 | header a:hover { text-decoration: underline; } |
| 10 | |
| 11 | .view { display: grid; grid-template-columns: minmax(0, 1fr) 220px; min-height: 0; } |
| 12 | .page { position: relative; overflow: auto; font: 11pt Calibri, Carlito, sans-serif; } |
| 13 | .sheet { position: absolute; top: 0; min-width: 100%; min-height: 100%; background: inherit; } |
| 14 | .sheet > * { position: absolute; margin: 0; } |
| 15 | .rules { right: 0; bottom: 0; pointer-events: none; } |
| 16 | /* A page exported alone fills the window and scrolls with it. */ |
| 17 | body > .page { overflow: visible; min-height: 100vh; } |
| 18 | .outline p, .outline li { position: relative; } |
| 19 | .outline table { border-collapse: collapse; } |
| 20 | /* OneNote's own web pages pad cells so; its column widths leave room for no more. */ |
| 21 | .outline td { padding: 2pt 3pt !important; } |
| 22 | /* The page's own markers stand in; the lists keep theirs for assistive technology. */ |
| 23 | .outline ul, .outline ol { padding-left: 0; } |
| 24 | .outline li::marker { color: transparent; } |
| 25 | .tag, .marker { position: absolute; white-space: pre; } |
| 26 | .tag img { position: absolute; inset: 0; width: 100%; height: 100%; } |
| 27 | .picture { display: block; } |
| 28 | .ink { display: block; overflow: visible; } |
| 29 | .file { display: inline-flex; flex-direction: column; align-items: center; width: 54pt; color: inherit; |
| 30 | text-decoration: none; font: 11pt Arial, sans-serif; text-align: center; overflow-wrap: anywhere; } |
| 31 | .file span { margin-top: 6pt; } |
| 32 | .missing { display: flex; align-items: center; justify-content: center; box-sizing: border-box; |
| 33 | border: 1px dashed #b4b4b4; color: #7a7a7a; font: 9pt system-ui, sans-serif; } |
| 34 | .failed { margin: 36pt; color: #7a7a7a; } |
| 35 | |
| 36 | nav.pages { background: #f7f7f7; border-left: 1px solid #d6d6d6; padding: 8px 0; overflow-y: auto; } |
| 37 | nav ul, .index ul { list-style: none; margin: 0; padding: 0; } |
| 38 | nav ul ul { padding-left: 14px; } |
| 39 | nav a { display: block; padding: 3px 12px; color: inherit; text-decoration: none; |
| 40 | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 41 | nav a:hover { background: #e8e8e8; } |
| 42 | nav a[aria-current] { background: #fff; font-weight: 600; box-shadow: inset 3px 0 #7a5fb8; } |
| 43 | |
| 44 | .index { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; } |
| 45 | .index h1 { font-size: 24px; font-weight: 600; } |
| 46 | .index h2 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; color: #555; } |
| 47 | .index h3 { font-size: 15px; font-weight: 600; margin: 16px 0 4px; padding-left: 8px; |
| 48 | border-left: 5px solid #c8c8c8; } |
| 49 | .index .group > ul { padding-left: 16px; } |
| 50 | .index li li { padding-left: 13px; } |
| 51 | .index li a { display: inline-block; padding: 2px 0; } |
| 52 | .index .locked { margin: 0 0 0 13px; color: #7a7a7a; } |
| 53 | |
| 54 | @media print { |
| 55 | body:has(> .view) { display: block; height: auto; } |
| 56 | header, nav.pages { display: none; } |
| 57 | .view { display: block; } |
| 58 | .page { overflow: visible; } |
| 59 | } |