Skip to content

Commit

Permalink
Fix "follow" links z-index order to avoid overlapping issues
Browse files Browse the repository at this point in the history
Close #1167
  • Loading branch information
mmistakes committed Aug 9, 2017
1 parent 91f38f4 commit 173f184
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## Bug Fixes

- Fix positioning of sidebar table of contents when using `layout: splash`. [#1169](https://github.com/mmistakes/minimal-mistakes/issues/1169)
- Fix "follow" links `z-index` order to avoid overlapping issues. [#1167](https://github.com/mmistakes/minimal-mistakes/issues/1167)

### Maintenance

Expand Down
9 changes: 7 additions & 2 deletions _sass/minimal-mistakes/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
========================================================================== */

.sidebar {
@include clearfix();
margin-bottom: 1em;
-webkit-transform: translate3d(0, 0 , 0);
transform: translate3d(0, 0 , 0);

@include clearfix();
margin-bottom: 1em;
@include breakpoint(max-width $large) {
/* fix z-index order of follow links */
position: relative;
z-index: 10;
}

@include breakpoint($large) {
float: left;
Expand Down
3 changes: 2 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-09T08:30:18-04:00
last_modified_at: 2017-08-09T09:02:47-04:00
---

## Unreleased
Expand All @@ -20,6 +20,7 @@ last_modified_at: 2017-08-09T08:30:18-04:00
## Bug Fixes

- Fix positioning of sidebar table of contents when using `layout: splash`. [#1169](https://github.com/mmistakes/minimal-mistakes/issues/1169)
- Fix "follow" links `z-index` order to avoid overlapping issues. [#1167](https://github.com/mmistakes/minimal-mistakes/issues/1167)

### Maintenance

Expand Down
9 changes: 7 additions & 2 deletions docs/_sass/minimal-mistakes/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
========================================================================== */

.sidebar {
@include clearfix();
margin-bottom: 1em;
-webkit-transform: translate3d(0, 0 , 0);
transform: translate3d(0, 0 , 0);

@include clearfix();
margin-bottom: 1em;
@include breakpoint(max-width $large) {
/* fix z-index order of follow links */
position: relative;
z-index: 10;
}

@include breakpoint($large) {
float: left;
Expand Down

0 comments on commit 173f184

Please sign in to comment.