From d59818981bdd8d05d182aa5f482895e833a95398 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 9 Aug 2017 08:28:21 -0400 Subject: [PATCH] Fix positioning of sidebar table of contents when using `layout: splash` Close #1169 --- CHANGELOG.md | 4 ++++ _sass/minimal-mistakes/_sidebar.scss | 13 +++++++++++++ docs/_docs/18-history.md | 6 +++++- docs/_sass/minimal-mistakes/_sidebar.scss | 13 +++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f54e5e1..c157c43a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ - Increase font-size of code blocks. - Reduce indent of nested "table of contents" links. +## Bug Fixes + +- Fix positioning of sidebar table of contents when using `layout: splash`. [#1169](https://github.com/mmistakes/minimal-mistakes/issues/1169) + ### Maintenance - Fix typo `words_per_minute` typo in documentation. [#1164](https://github.com/mmistakes/minimal-mistakes/pull/1164) diff --git a/_sass/minimal-mistakes/_sidebar.scss b/_sass/minimal-mistakes/_sidebar.scss index 7dab5fa1..a66a4ae2 100644 --- a/_sass/minimal-mistakes/_sidebar.scss +++ b/_sass/minimal-mistakes/_sidebar.scss @@ -66,6 +66,19 @@ } } +.splash .sidebar__right { + + @include breakpoint($large) { + position: relative; + float: right; + margin-right: 0; + } + + @include breakpoint($x-large) { + margin-right: 0; + } +} + /* Author profile and links ========================================================================== */ diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 3bb9218a..028ade71 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -4,7 +4,7 @@ permalink: /docs/history/ excerpt: "Change log of enhancements and bug fixes made to the theme." sidebar: nav: docs -last_modified_at: 2017-08-08T15:19:23-04:00 +last_modified_at: 2017-08-09T08:20:21-04:00 --- ## Unreleased @@ -17,6 +17,10 @@ last_modified_at: 2017-08-08T15:19:23-04:00 - Increase font-size of code blocks. - Reduce indent of nested "table of contents" links. +## Bug Fixes + +- Fix positioning of sidebar table of contents when using `layout: splash`. [#1169](https://github.com/mmistakes/minimal-mistakes/issues/1169) + ### Maintenance - Fix typo `words_per_minute` typo in documentation. [#1164](https://github.com/mmistakes/minimal-mistakes/pull/1164) diff --git a/docs/_sass/minimal-mistakes/_sidebar.scss b/docs/_sass/minimal-mistakes/_sidebar.scss index 7dab5fa1..a66a4ae2 100644 --- a/docs/_sass/minimal-mistakes/_sidebar.scss +++ b/docs/_sass/minimal-mistakes/_sidebar.scss @@ -66,6 +66,19 @@ } } +.splash .sidebar__right { + + @include breakpoint($large) { + position: relative; + float: right; + margin-right: 0; + } + + @include breakpoint($x-large) { + margin-right: 0; + } +} + /* Author profile and links ========================================================================== */