Skip to content

Commit ea955aa

Browse files
committed
Remove margins from first/last lists within table cells.
1 parent dfc7106 commit ea955aa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/assets/sass/modules/_lists.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ li {
2222
}
2323
}
2424

25+
/**
26+
* Remove margins from first/last lists within table cells.
27+
*/
28+
29+
th,
30+
td {
31+
ul,
32+
ol {
33+
&:first-of-type {
34+
margin-top: 0;
35+
}
36+
37+
&:last-of-type {
38+
margin-bottom: 0;
39+
}
40+
}
41+
}
42+
2543
/**
2644
* CSS Lists and Counters Module Level 3 list marker styling.
2745
*/

0 commit comments

Comments
 (0)