1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Resume the min-width of the tables.

It was lost by mistake while fixing #85
This commit is contained in:
Cotes Chung
2020-08-15 00:35:00 +08:00
parent 0809e2b132
commit 188d8ffc69
5 changed files with 56 additions and 42 deletions

View File

@@ -750,42 +750,41 @@ a {
/*--- Begin of Markdown table style ---*/
div.post-content .table-wrapper {
overflow-x: auto;
div.post-content {
>table, li>table {
>table {
min-width: 60%;
display: block;
overflow-x: auto;
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 1.5rem;
thead {
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
th {
@extend %table-cell;
}
}
tbody {
tr {
&:nth-child(2n) {
background-color: var(--tb-even-bg);
}
&:nth-child(2n + 1) {
background-color: var(--tb-odd-bg);
}
& {
border-bottom: 1px solid var(--tb-border-color);
}
td {
@extend %table-cell;
}
}
}
}
}
table {
thead {
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
+tbody tr {
&:nth-child(2n) {
background-color: var(--tb-even-bg);
}
&:nth-child(2n + 1) {
background-color: var(--tb-odd-bg);
}
& {
border-bottom: 1px solid var(--tb-border-color);
}
}
th {
@extend %table-cell;
}
}
tbody td {
@extend %table-cell;
}
} // table
/*--- post ---*/

View File

@@ -15,7 +15,7 @@
}
%table-cell {
padding: .35rem .8rem;
padding: .4rem 1rem;
font-size: 95%;
}