Skip to content

Commit cad2582

Browse files
Restore list and table block margins
Consistent with paragraph block margins
1 parent f9588c4 commit cad2582

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

assets-src/styles/sass/30-base/_lists.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
ul,
66
ol {
7-
// margin-block-end: 1em;
8-
// margin-block-start: 1em;
7+
margin-block: 1rem;
98
padding-inline-start: 2.4em;
109

1110
// > * + *,
@@ -48,8 +47,7 @@ nav ol,
4847
Description lists / Definition lists
4948
*/
5049
dl {
51-
margin-block-end: 1em;
52-
margin-block-start: 1em;
50+
margin-block: 1rem;
5351

5452
dt {
5553
font-weight: bold;

assets-src/styles/sass/30-base/_tables.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
table {
66
border: 1px solid $border-color;
77
border-collapse: collapse;
8-
// margin-bottom: 1rem;
9-
// margin-top: 1rem;
8+
margin-block: 1rem;
109
width: 100%;
1110
}
1211

@@ -40,8 +39,7 @@ https://adrianroselli.com/2020/11/under-engineered-responsive-tables.html
4039
@media screen {
4140
.table-wrap {
4241
border: 1px solid $border-color;
43-
// margin-bottom: 1rem;
44-
// margin-top: 1rem;
42+
margin-block: 1rem;
4543
max-inline-size: 100% !important;
4644

4745
&[role][aria-labelledby][tabindex] {
@@ -50,8 +48,7 @@ https://adrianroselli.com/2020/11/under-engineered-responsive-tables.html
5048

5149
table {
5250
border: 0;
53-
// margin-bottom: 0;
54-
// margin-top: 0;
51+
margin-block: 0;
5552
}
5653

5754
&:focus {

0 commit comments

Comments
 (0)