Skip to content

Commit 173f184

Browse files
committed
Fix "follow" links z-index order to avoid overlapping issues
Close mmistakes#1167
1 parent 91f38f4 commit 173f184

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
## Bug Fixes
1212

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

1516
### Maintenance
1617

_sass/minimal-mistakes/_sidebar.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
========================================================================== */
88

99
.sidebar {
10+
@include clearfix();
11+
margin-bottom: 1em;
1012
-webkit-transform: translate3d(0, 0 , 0);
1113
transform: translate3d(0, 0 , 0);
1214

13-
@include clearfix();
14-
margin-bottom: 1em;
15+
@include breakpoint(max-width $large) {
16+
/* fix z-index order of follow links */
17+
position: relative;
18+
z-index: 10;
19+
}
1520

1621
@include breakpoint($large) {
1722
float: left;

docs/_docs/18-history.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permalink: /docs/history/
44
excerpt: "Change log of enhancements and bug fixes made to the theme."
55
sidebar:
66
nav: docs
7-
last_modified_at: 2017-08-09T08:30:18-04:00
7+
last_modified_at: 2017-08-09T09:02:47-04:00
88
---
99

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

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

2425
### Maintenance
2526

docs/_sass/minimal-mistakes/_sidebar.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
========================================================================== */
88

99
.sidebar {
10+
@include clearfix();
11+
margin-bottom: 1em;
1012
-webkit-transform: translate3d(0, 0 , 0);
1113
transform: translate3d(0, 0 , 0);
1214

13-
@include clearfix();
14-
margin-bottom: 1em;
15+
@include breakpoint(max-width $large) {
16+
/* fix z-index order of follow links */
17+
position: relative;
18+
z-index: 10;
19+
}
1520

1621
@include breakpoint($large) {
1722
float: left;

0 commit comments

Comments
 (0)