Skip to content

Commit

Permalink
Fixed sidebar under Pisces / Gemini schemes for IE 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-nginx committed Dec 10, 2018
1 parent 36c1896 commit 5dd25f1
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 5dd25f1

Please sign in to comment.