Skip to content

Commit

Permalink
position
Browse files Browse the repository at this point in the history
  • Loading branch information
1v9 committed Aug 20, 2019
1 parent ad999f7 commit 653b1fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/css/_common/components/header/bookmark.styl
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
.book-mark-link {
border-bottom: none;
display: inline-block;
right: $b2t-position-right;
position: fixed;
top: -10px;
transition: .3s;

if ($sidebar-position == 'left') {
right: $b2t-position-right;
}

if ($sidebar-position == 'right') {
left: $b2t-position-right;
}

+tablet-mobile() {
display: none;
}

&::before {
color: unquote(hexo-config('bookmark.color'));
content: "\f02e";
Expand Down
2 changes: 2 additions & 0 deletions source/css/_variables/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ $posts-collapse-left-mobile = 5px;
// Sidebar
// Variables for sidebar section elements.
// --------------------------------------------------
$sidebar-position = hexo-config('sidebar.position');

$sidebar-offset = unit(hexo-config('sidebar.offset'), px) if hexo-config('sidebar.offset') is a 'unit';
$sidebar-nav-color = $black-light;
$sidebar-nav-hover-color = $whitesmoke;
Expand Down

0 comments on commit 653b1fd

Please sign in to comment.