- {% include fixlinenos.html content=content %}
+ {% include refactor-content.html content=content %}
{% include footer.html %}
diff --git a/assets/css/_addon/main.scss b/assets/css/_addon/main.scss
index 6ce089c1b6aaa..22fa90d108408 100644
--- a/assets/css/_addon/main.scss
+++ b/assets/css/_addon/main.scss
@@ -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;
- }
-}
-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);
+ thead {
+ border-bottom: solid 2px rgba(210, 215, 217, 0.75);
+ th {
+ @extend %table-cell;
}
- & {
- border-bottom: 1px solid var(--tb-border-color);
- }
- }
- th {
- @extend %table-cell;
}
- }
- tbody td {
- @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
/*--- post ---*/
diff --git a/assets/css/_addon/module.scss b/assets/css/_addon/module.scss
index 24d276771559a..81fc8eb37d84e 100644
--- a/assets/css/_addon/module.scss
+++ b/assets/css/_addon/module.scss
@@ -15,7 +15,7 @@
}
%table-cell {
- padding: .35rem .8rem;
+ padding: .4rem 1rem;
font-size: 95%;
}