Skip to content

Commit 0fb3f85

Browse files
Add css to make tables more readable without messing up the blog posts
Signed-off-by: Thib <[email protected]>
1 parent 4ea3538 commit 0fb3f85

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

sass/_base.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,17 @@ pre table {
196196
border-collapse: collapse;
197197
}
198198

199+
:not(pre)>table {
200+
border-collapse: collapse;
201+
border: 1px solid #000000;
202+
203+
td,
204+
th {
205+
padding: .5rem;
206+
border: 1px solid #000000;
207+
}
208+
}
209+
199210
/* The black block on pages at the top. */
200211
.page-header {
201212
display: flex;

sass/_blog.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ article.post {
1919
table {
2020
table-layout: fixed;
2121
border-spacing: 0;
22+
border: unset;
23+
border-collapse: unset;
2224

2325
th {
26+
border: unset;
2427
border-top: 1px solid var(--borders-color);
2528
}
2629

2730
td,
2831
th {
2932
padding: .5rem;
33+
border: unset;
3034
border-bottom: 1px solid var(--borders-color);
3135
}
3236

@@ -201,4 +205,4 @@ h3 a {
201205
font-size: 1rem;
202206
margin-right: 0.5rem;
203207
color: inherit;
204-
}
208+
}

0 commit comments

Comments
 (0)