Commit 343921b
committed
fix: eliminate double margin in fieldsets and p-wrapped form inputs
- Add fieldset > :last-child margin-bottom: 0 (matching article/details pattern)
- Use :nth-last-child(of :not(datalist, script, style)) to skip invisible elements
- Kill input/select/textarea margin when last visible child of <p> or <div>
to prevent stacking with the parent's own margin-bottom1 parent f7e12da commit 343921b
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
98 | 111 | | |
99 | 112 | | |
100 | 113 | | |
| |||
0 commit comments