Skip to content

Commit

Permalink
[v1.6] elevate catalog fixed position
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxpro committed Apr 16, 2016
1 parent df626e0 commit e845cbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion css/hux-blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}
.side-catalog.fixed {
position: fixed;
top: 20px;
top: -21px;
}
.side-catalog.fold .catalog-toggle::before {
content: "+";
Expand Down
2 changes: 1 addition & 1 deletion css/hux-blog.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/hux-blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jQuery(document).ready(function($) {

//adjust the appearance of side-catalog
$catalog.show()
if (currentTop > bannerHeight) {
if (currentTop > (bannerHeight + 41)) {
$catalog.addClass('fixed')
} else {
$catalog.removeClass('fixed')
Expand Down
7 changes: 1 addition & 6 deletions js/hux-blog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion less/side-catalog.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.side-catalog {
&.fixed{
position: fixed;
top: 20px;
top: -21px;
}
&.fold{
.catalog-toggle::before{
Expand Down

0 comments on commit e845cbf

Please sign in to comment.