Skip to content

Commit 608b5b8

Browse files
authored
Add borders dividing table rows in rendered content (#1816)
1 parent 3a7999c commit 608b5b8

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

Diff for: assets/css/content/general.css

+14-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109

110110
.content-inner table {
111111
margin: 2em 0;
112+
border-collapse: collapse;
112113
}
113114

114115
.content-inner th {
@@ -119,13 +120,25 @@
119120
padding-bottom: .5em;
120121
}
121122

123+
.content-inner thead tr {
124+
border-bottom: 1px solid var(--tableHeadBorder);
125+
}
126+
127+
.content-inner tbody tr {
128+
border-bottom: 1px solid var(--tableBodyBorder);
129+
}
130+
131+
.content-inner tbody tr:last-child {
132+
border-bottom: none
133+
}
134+
122135
.content-inner tr {
123-
border-bottom: 1px solid var(--gray50);
124136
vertical-align: bottom;
125137
height: 2.5em;
126138
}
127139

128140
.content-inner :is(td, th) {
141+
padding: 0.25em;
129142
padding-left: 1em;
130143
line-height: 2em;
131144
vertical-align: top;

Diff for: assets/css/custom-props/theme-dark.css

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ body.dark {
1818
--blockquoteBackground: var(--coldGrayDim);
1919
--blockquoteBorder: var(--coldGrayDark);
2020

21+
--tableHeadBorder: var(--gray600);
22+
--tableBodyBorder: var(--gray700);
23+
2124
--warningBackground: hsl( 40, 67%, 79%);
2225
--warningHeadingBackground: hsl( 27, 66%, 29%);
2326
--warningHeading: var(--white);

Diff for: assets/css/custom-props/theme-light.css

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
--blockquoteBackground: var(--coldGrayFaint);
1919
--blockquoteBorder: var(--coldGrayLight);
2020

21+
--tableHeadBorder: var(--gray100);
22+
--tableBodyBorder: var(--gray50);
23+
2124
--warningBackground: hsl( 33, 100%, 97%);
2225
--warningHeadingBackground: hsl( 33, 87%, 64%);
2326
--warningHeading: var(--black);

0 commit comments

Comments
 (0)