|
| 1 | +import { style, globalStyle } from '@vanilla-extract/css' |
| 2 | + |
| 3 | +export const content = style({ |
| 4 | + fontSize: '1rem', |
| 5 | + lineHeight: '1.6em', |
| 6 | +}) |
| 7 | + |
| 8 | +globalStyle(`${content} a`, { |
| 9 | + color: '#5d3861', |
| 10 | +}) |
| 11 | + |
| 12 | +globalStyle(`${content} h1`, { |
| 13 | + color: '#770c56', |
| 14 | + fontSize: '2.3rem', |
| 15 | + marginBottom: '30px', |
| 16 | + paddingBottom: '23px', |
| 17 | + borderBottom: '1px solid rgba(88,68,82,0.1)', |
| 18 | +}) |
| 19 | + |
| 20 | +globalStyle(`${content} h2`, { |
| 21 | + color: '#4a3142', |
| 22 | + fontSize: '1.3rem', |
| 23 | + marginBottom: '15px', |
| 24 | + paddingBottom: '10px', |
| 25 | + marginTop: '30px', |
| 26 | + borderBottom: '1px solid rgba(88,68,82,0.1)', |
| 27 | +}) |
| 28 | + |
| 29 | +globalStyle(`${content} h3`, { |
| 30 | + color: '#4a3142', |
| 31 | + fontWeight: '500', |
| 32 | + fontSize: '1.2rem', |
| 33 | + marginBottom: '20px', |
| 34 | + marginTop: '20px', |
| 35 | +}) |
| 36 | + |
| 37 | +globalStyle(`${content} ol`, { |
| 38 | + listStyle: 'decimal', |
| 39 | + maxWidth: '700px', |
| 40 | + marginLeft: '25px', |
| 41 | + marginBottom: '10px', |
| 42 | +}) |
| 43 | + |
| 44 | +globalStyle(`${content} ol ol`, { |
| 45 | + marginBottom: '0', |
| 46 | +}) |
| 47 | + |
| 48 | +globalStyle(`${content} ol p + ul`, { |
| 49 | + marginTop: '-10px', |
| 50 | +}) |
| 51 | + |
| 52 | +globalStyle(`${content} ol pre:last-child`, { |
| 53 | + marginBottom: '10px', |
| 54 | +}) |
| 55 | + |
| 56 | +globalStyle(`${content} ol ul`, { |
| 57 | + marginBottom: '0', |
| 58 | +}) |
| 59 | + |
| 60 | +globalStyle(`${content} ol:last-child`, { |
| 61 | + marginBottom: '0', |
| 62 | +}) |
| 63 | + |
| 64 | +globalStyle(`${content} p`, { |
| 65 | + marginBottom: '10px', |
| 66 | + maxWidth: '700px', |
| 67 | +}) |
| 68 | + |
| 69 | +globalStyle(`${content} p:empty`, { |
| 70 | + display: 'none', |
| 71 | +}) |
| 72 | + |
| 73 | +globalStyle(`${content} p:last-child`, { |
| 74 | + marginBottom: '0', |
| 75 | +}) |
| 76 | + |
| 77 | +globalStyle(`${content} pre`, { |
| 78 | + marginBottom: '10px', |
| 79 | +}) |
| 80 | + |
| 81 | +globalStyle(`${content} pre:last-child`, { |
| 82 | + marginBottom: '0', |
| 83 | +}) |
| 84 | + |
| 85 | +globalStyle(`${content} table`, { |
| 86 | + backgroundColor: '#fffffe', |
| 87 | + borderRadius: '2px', |
| 88 | + marginBottom: '10px', |
| 89 | +}) |
| 90 | + |
| 91 | +globalStyle(`${content} table table`, { |
| 92 | + fontSize: '14px', |
| 93 | +}) |
| 94 | + |
| 95 | +globalStyle(`${content} table table td`, { |
| 96 | + border: '1px solid #d6cdd3', |
| 97 | + padding: '3px 6px', |
| 98 | +}) |
| 99 | + |
| 100 | +globalStyle(`${content} table table th`, { |
| 101 | + backgroundColor: '#fdfdfd', |
| 102 | + border: '1px solid #d6cdd3', |
| 103 | + padding: '3px 6px', |
| 104 | +}) |
| 105 | + |
| 106 | +globalStyle(`${content} table td`, { |
| 107 | + border: '1px solid #b9a2b2', |
| 108 | + padding: '5px 10px', |
| 109 | +}) |
| 110 | + |
| 111 | +globalStyle(`${content} table th`, { |
| 112 | + border: '1px solid #b9a2b2', |
| 113 | + padding: '5px 10px', |
| 114 | + fontWeight: '600', |
| 115 | + textAlign: 'left', |
| 116 | + backgroundColor: '#faf6f0', |
| 117 | +}) |
| 118 | + |
| 119 | +globalStyle(`${content} table:last-child`, { |
| 120 | + marginBottom: '0', |
| 121 | +}) |
| 122 | + |
| 123 | +globalStyle(`${content} ul`, { |
| 124 | + listStyle: 'disc', |
| 125 | + maxWidth: '700px', |
| 126 | + marginLeft: '25px', |
| 127 | + marginBottom: '10px', |
| 128 | +}) |
| 129 | + |
| 130 | +globalStyle(`${content} ul ol`, { |
| 131 | + marginBottom: '0', |
| 132 | +}) |
| 133 | + |
| 134 | +globalStyle(`${content} ul p + ul`, { |
| 135 | + marginTop: '-10px', |
| 136 | +}) |
| 137 | + |
| 138 | +globalStyle(`${content} ul pre:last-child`, { |
| 139 | + marginBottom: '10px', |
| 140 | +}) |
| 141 | + |
| 142 | +globalStyle(`${content} ul ul`, { |
| 143 | + marginBottom: '0', |
| 144 | +}) |
| 145 | + |
| 146 | +globalStyle(`${content} ul:last-child`, { |
| 147 | + marginBottom: '0', |
| 148 | +}) |
0 commit comments