|
1 | 1 | [data-root] { |
| 2 | + --font-sans: |
| 3 | + "-apple-system", |
| 4 | + "BlinkMacSystemFont", |
| 5 | + "Inter", |
| 6 | + "system-ui", |
| 7 | + "-apple-system", |
| 8 | + "BlinkMacSystemFont", |
| 9 | + "Segoe UI", |
| 10 | + "Roboto", |
| 11 | + "Helvetica Neue", |
| 12 | + "Arial", |
| 13 | + "Noto Sans", |
| 14 | + "sans-serif", |
| 15 | + "Apple Color Emoji", |
| 16 | + "Segoe UI Emoji", |
| 17 | + "Segoe UI Symbol", |
| 18 | + "Noto Color Emoji"; |
| 19 | + --font-mono: |
| 20 | + "Menlo", |
| 21 | + "Monaco", |
| 22 | + "Consolas", |
| 23 | + "Liberation Mono", |
| 24 | + "Courier New", |
| 25 | + "monospace"; |
| 26 | + |
2 | 27 | -webkit-font-smoothing: auto; |
3 | 28 | -moz-osx-font-smoothing: auto; |
4 | 29 |
|
|
8 | 33 | caret-color: var(--black); |
9 | 34 | } |
10 | 35 |
|
11 | | -/* Obscures markdown syntax. */ |
12 | | -[data-display-markdown-mode="false"] [data-type="markdown"] { |
13 | | - display: none; |
| 36 | +/* Displays markdown syntax as pseudo elements (1 of 2). */ |
| 37 | +[data-display-markdown-mode="true"] [data-type="em"]::before, |
| 38 | +[data-display-markdown-mode="true"] [data-type="strong"]::before, |
| 39 | +[data-display-markdown-mode="true"] [data-type="code"]::before, |
| 40 | +[data-display-markdown-mode="true"] [data-type="strike"]::before, |
| 41 | +[data-display-markdown-mode="true"] [data-type="a"]::before { |
| 42 | + content: attr(data-markdown-start); |
| 43 | + --text-opacity: 1; |
| 44 | + color: #1c64f2; |
| 45 | + color: rgba(28, 100, 242, var(--text-opacity)); |
| 46 | +} |
| 47 | +/* Displays markdown syntax as pseudo elements (2 of 2). */ |
| 48 | +[data-display-markdown-mode="true"] [data-type="em"]::after, |
| 49 | +[data-display-markdown-mode="true"] [data-type="strong"]::after, |
| 50 | +[data-display-markdown-mode="true"] [data-type="code"]::after, |
| 51 | +[data-display-markdown-mode="true"] [data-type="strike"]::after, |
| 52 | +[data-display-markdown-mode="true"] [data-type="a"]::after { |
| 53 | + content: attr(data-markdown-end); |
| 54 | + --text-opacity: 1; |
| 55 | + color: #1c64f2; |
| 56 | + color: rgba(28, 100, 242, var(--text-opacity)); |
14 | 57 | } |
15 | 58 |
|
16 | | -/* Masks markdown syntax as text-blue-600. */ |
17 | | -[data-display-markdown-mode="true"] [data-type="strike"] [data-type="markdown"] { |
| 59 | +/* <strike> .text-blue-600 -> <strike> .text-gray-400 */ |
| 60 | +[data-display-markdown-mode="true"] [data-type="strike"] .text-blue-600 { |
18 | 61 | --text-opacity: 1; |
19 | 62 | color: #9fa6b2; |
20 | 63 | color: rgba(159, 166, 178, var(--text-opacity)); |
|
0 commit comments