Commit 1bffe0f
committed
nicer style rules for margin around footnote defs
previous implementation used `:not(.fd) + .fd` and `.fd + :not(.fd)`,
which is not only quite awkward, but the latter rule also applies padding
to an arbitrary element (`:not(.fd)`), which makes it very hard to
override in user styles.
this commit replaces these awkward rules with much nicer
`.fd:{first,last}-of-type`, which also describe exactly our usecase.1 parent 35ed24c commit 1bffe0f
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
205 | 204 | | |
206 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| |||
0 commit comments