|
66 | 66 | display: flex; |
67 | 67 | flex-direction: column; |
68 | 68 | gap: var(--space-large); |
69 | | - font-size: var(--font-size-base); |
70 | | - line-height: var(--line-height-loose); |
71 | | - letter-spacing: var(--letter-spacing-tight); |
72 | | - color: var(--color-text-secondary); |
73 | 69 | padding-top: var(--space-xl); |
74 | 70 | border-top: 1px solid var(--color-stroke-weak); |
75 | 71 | } |
76 | 72 |
|
77 | | -/* Copy the body styling to markdown blocks for wagtail styling. */ |
| 73 | +/* Wagtail wraps markdown blocks; keep the flex layout so block rhythm |
| 74 | + matches the body. Typography comes from Boostlook via the `boostlook` |
| 75 | + class on .post-detail__body. */ |
78 | 76 | .post-detail__body .block-markdown { |
79 | 77 | display: flex; |
80 | 78 | flex-direction: column; |
81 | 79 | gap: var(--space-large); |
82 | | - font-size: var(--font-size-base); |
83 | | - line-height: var(--line-height-loose); |
84 | | - letter-spacing: var(--letter-spacing-tight); |
85 | | - color: var(--color-text-secondary); |
86 | | -} |
87 | | - |
88 | | -/* Reset the site-wide `p { @apply py-5 }` from frontend/styles.css |
89 | | - so paragraph rhythm comes from the body's flex `gap`, not from |
90 | | - each <p> contributing its own 1.25rem of top/bottom padding. */ |
91 | | -.post-detail__body p { |
92 | | - padding-top: 0; |
93 | | - padding-bottom: 0; |
94 | 80 | } |
95 | 81 |
|
96 | | -.post-detail__body a { |
97 | | - color: inherit; |
98 | | - text-decoration: underline; |
99 | | -} |
| 82 | +/* The article body's markdown/rich-text styling (body copy color/size, |
| 83 | + links, images, code, lists, headings, bold) now lives in Boostlook |
| 84 | + (boostlook repo: src/css/17-site-components.css), scoped |
| 85 | + .boostlook.post-detail__body, and ships with boostlook-v3.css. The |
| 86 | + container carries the `boostlook` class. #2491 */ |
100 | 87 |
|
101 | 88 | .post-detail__external-url a { |
102 | 89 | color: var(--color-text-secondary); |
103 | 90 | text-decoration: underline; |
104 | 91 | text-underline-position: from-font; |
105 | 92 | } |
106 | 93 |
|
107 | | -.post-detail__body img { |
108 | | - max-width: 100%; |
109 | | - height: auto; |
110 | | - border-radius: var(--border-radius-m); |
111 | | -} |
112 | | - |
113 | | -.post-detail__body pre, |
114 | | -.post-detail__body code { |
115 | | - font-family: var(--font-code); |
116 | | - font-size: var(--font-size-small); |
117 | | -} |
118 | | - |
119 | | -.post-detail__body pre { |
120 | | - padding: var(--space-medium); |
121 | | - border-radius: var(--border-radius-m); |
122 | | - background: var(--color-surface-mid); |
123 | | - overflow-x: auto; |
124 | | -} |
125 | | - |
126 | | -.post-detail__body ul, |
127 | | -.post-detail__body ol { |
128 | | - padding-left: var(--space-large); |
129 | | - list-style-position: outside; |
130 | | -} |
131 | | - |
132 | | -.post-detail__body ul { |
133 | | - list-style-type: disc; |
134 | | -} |
135 | | - |
136 | | -.post-detail__body ol { |
137 | | - list-style-type: decimal; |
138 | | -} |
139 | | - |
140 | | -.post-detail__body ul ul { |
141 | | - list-style-type: circle; |
142 | | -} |
143 | | - |
144 | | -.post-detail__body ol ol, |
145 | | -.post-detail__body ul ol { |
146 | | - list-style-type: lower-alpha; |
147 | | -} |
148 | | - |
149 | | -.post-detail__body h1, |
150 | | -.post-detail__body h2, |
151 | | -.post-detail__body h3, |
152 | | -.post-detail__body h4, |
153 | | -.post-detail__body h5, |
154 | | -.post-detail__body h6 { |
155 | | - color: var(--color-text-primary); |
156 | | - font-family: var(--font-display); |
157 | | - font-weight: var(--font-weight-medium); |
158 | | - line-height: var(--line-height-tight); |
159 | | -} |
160 | | - |
161 | | -.post-detail__body h1 { font-size: var(--font-size-xl); } |
162 | | -.post-detail__body h2 { font-size: var(--font-size-large); } |
163 | | -.post-detail__body h3 { font-size: var(--font-size-medium); } |
164 | | -.post-detail__body h4, |
165 | | -.post-detail__body h5, |
166 | | -.post-detail__body h6 { font-size: var(--font-size-base); } |
167 | | - |
168 | | -.post-detail__body b, |
169 | | -.post-detail__body strong { |
170 | | - color: var(--color-text-primary); |
171 | | - font-weight: var(--font-weight-medium); |
172 | | -} |
173 | | - |
174 | 94 | .post-detail__next, |
175 | 95 | .post-detail__related { |
176 | 96 | display: flex; |
|
0 commit comments