From 523211a98feb6423e8ecddfefd7389df9cbfbf91 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Wed, 9 Dec 2020 12:19:09 +0800 Subject: perf: better table overflow styles --- _sass/yat/_base.scss | 2 ++ _sass/yat/_layout.scss | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to '_sass/yat') 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; -- cgit v1.2.3