From ff43360afc2d7699794a5b8ca38fbbf3a4a71339 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 1 Jan 2019 18:31:32 -0500 Subject: [PATCH] Fix wide tables that overflow parent container Close #2008 --- CHANGELOG.md | 1 + _sass/minimal-mistakes/_tables.scss | 2 ++ docs/_docs/18-history.md | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c98fdd34e275..6dfdf76b3b62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Bug Fixes +- Fix wide tables that overflow parent container. [#2008](https://github.com/mmistakes/minimal-mistakes/issues/2008) - Fix Spanish `comments_label` and `comments_title` UI text strings. [#1997](https://github.com/mmistakes/minimal-mistakes/pull/1997) - Allow sidebar navigation with custom sidebar content. [#1986](https://github.com/mmistakes/minimal-mistakes/issues/1986) - Fix Google Custom Search JavaScript error when not using Instant Search. [#1983](https://github.com/mmistakes/minimal-mistakes/pull/1983) diff --git a/_sass/minimal-mistakes/_tables.scss b/_sass/minimal-mistakes/_tables.scss index 05211df05344..c270a775bfa4 100644 --- a/_sass/minimal-mistakes/_tables.scss +++ b/_sass/minimal-mistakes/_tables.scss @@ -3,11 +3,13 @@ ========================================================================== */ table { + display: block; margin-bottom: 1em; width: 100%; font-family: $global-font-family; font-size: $type-size-6; border-collapse: collapse; + overflow-x: auto; & + table { margin-top: 1em; diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index f393c3090497..d4e43c4c77a1 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -22,6 +22,7 @@ toc: true ### Bug Fixes +- Fix wide tables that overflow parent container. [#2008](https://github.com/mmistakes/minimal-mistakes/issues/2008) - Fix Spanish `comments_label` and `comments_title` UI text strings. [#1997](https://github.com/mmistakes/minimal-mistakes/pull/1997) - Allow sidebar navigation with custom sidebar content. [#1986](https://github.com/mmistakes/minimal-mistakes/issues/1986) - Fix Google Custom Search JavaScript error when not using Instant Search. [#1983](https://github.com/mmistakes/minimal-mistakes/pull/1983)