From 66906309174a4d91cf6168ddb53d3dbfa53f2a95 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 29 Oct 2018 08:55:05 -0400 Subject: [PATCH] Fix breadcrumb navigation alignment Fixes #1917 --- CHANGELOG.md | 1 + _sass/minimal-mistakes/_navigation.scss | 13 ++++--------- docs/_docs/18-history.md | 3 ++- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d1af842..aa005047 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Bug Fixes +- Fix breadcrumb navigation alignment. [#1917](https://github.com/mmistakes/minimal-mistakes/issues/1917) - Fix Algolia search link positioning. [#1904](https://github.com/mmistakes/minimal-mistakes/pull/1904) - Fix Lunr search index merging words. [#1883](https://github.com/mmistakes/minimal-mistakes/issues/1883) - Properly apply `relative_url` filter to internal links in header overlay `actions` array. diff --git a/_sass/minimal-mistakes/_navigation.scss b/_sass/minimal-mistakes/_navigation.scss index 80d24bbf..d732d0ac 100644 --- a/_sass/minimal-mistakes/_navigation.scss +++ b/_sass/minimal-mistakes/_navigation.scss @@ -10,19 +10,14 @@ @include clearfix; margin: 0 auto; max-width: 100%; - padding-left: 2em; - padding-right: 2em; + padding-left: 1em; + padding-right: 1em; font-family: $sans-serif; -webkit-animation: $intro-transition; animation: $intro-transition; -webkit-animation-delay: 0.3s; animation-delay: 0.3s; - @include breakpoint($large) { - padding-left: 1em; - padding-right: 1em; - } - @include breakpoint($x-large) { max-width: $x-large; } @@ -34,11 +29,11 @@ @include breakpoint($large) { float: right; - width: span(10 of 12); + width: calc(100% - #{$right-sidebar-width-narrow}); } @include breakpoint($x-large) { - padding-left: gutter(0.5 of 12); + width: calc(100% - #{$right-sidebar-width}); } } diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index d209b58a..fa7f736e 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: 2018-10-23T10:38:36-04:00 +last_modified_at: 2018-10-29T08:54:43-04:00 toc: true --- @@ -25,6 +25,7 @@ toc: true ### Bug Fixes +- Fix breadcrumb navigation alignment. [#1917](https://github.com/mmistakes/minimal-mistakes/issues/1917) - Fix Algolia search link positioning. [#1904](https://github.com/mmistakes/minimal-mistakes/pull/1904) - Fix Lunr search index merging words. [#1883](https://github.com/mmistakes/minimal-mistakes/issues/1883) - Properly apply `relative_url` filter to internal links in header overlay `actions` array.