Skip to content

Commit

Permalink
Merge pull request theme-next#498 from theme-next/dev
Browse files Browse the repository at this point in the history
Fixed sidebar under Pisces / Gemini schemes for IE 11.
  • Loading branch information
ivan-nginx authored Dec 10, 2018
2 parents 36c1896 + 5dd25f1 commit 76f1299
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/css/_schemes/Gemini/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use_seo = hexo-config('seo');
// Comments blocks.
.comments {
padding: $content-desktop-padding;
margin: initial;
margin: auto;
margin-top: $sidebar-offset;
background: white;
box-shadow: $box-shadow;
Expand Down
2 changes: 1 addition & 1 deletion source/css/_schemes/Pisces/_layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
.sidebar {
position: static;
float: left;
margin-top: 300px;
margin-left: -100%;
width: $sidebar-desktop;
background: $body-bg-color;
box-shadow: none;
Expand Down
1 change: 0 additions & 1 deletion source/css/_schemes/Pisces/_sidebar.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.use-motion .sidebar .motion-element { opacity: 1; }

.sidebar {
margin-left: -100%;
right: auto;
bottom: auto;

Expand Down
2 changes: 1 addition & 1 deletion source/js/src/schemes/pisces.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $(document).ready(function() {
sidebarInner.affix('checkPosition');
}

$('#sidebar').css({ 'margin-top': headerOffset, 'margin-left': 'initial' });
$('#sidebar').css({ 'margin-top': headerOffset, 'margin-left': 'auto' });
}

function recalculateAffixPosition() {
Expand Down

0 comments on commit 76f1299

Please sign in to comment.