summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-12-09 12:19:09 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-12-09 12:19:09 +0800
commit523211a98feb6423e8ecddfefd7389df9cbfbf91 (patch)
tree24784150dc9afed833159f6b2b91b67e73f22c53
parent0cd573d183773e853cb5a2aa67340d73655338d3 (diff)
perf: better table overflow styles
-rw-r--r--_sass/yat/_base.scss2
-rw-r--r--_sass/yat/_layout.scss1
2 files changed, 2 insertions, 1 deletions
diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss
index bef96b7..879442a 100644
--- a/_sass/yat/_base.scss
+++ b/_sass/yat/_base.scss
@@ -225,11 +225,13 @@ pre {
* Tables
*/
table {
+ display: block;
margin-bottom: $spacing-unit;
width: 100%;
text-align: $table-text-align;
color: lighten($text-color, 5%);
border-collapse: collapse;
+ overflow: auto;
tr {
&:nth-child(even) {
diff --git a/_sass/yat/_layout.scss b/_sass/yat/_layout.scss
index 75a77e4..7c56e80 100644
--- a/_sass/yat/_layout.scss
+++ b/_sass/yat/_layout.scss
@@ -389,7 +389,6 @@ html {
.post-content {
margin-bottom: $spacing-unit;
- overflow-x: auto;
overflow-wrap: normal;
word-wrap: normal;
word-break: normal;