63 lines
1.0 KiB
Stylus
63 lines
1.0 KiB
Stylus
if (hexo-config('sidebar.position') == 'right') {
|
|
.sidebar {
|
|
right: 0 - $sidebar-desktop;
|
|
|
|
&.sidebar-active {
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
.sidebar-toggle, .back-to-top {
|
|
left: auto;
|
|
right: $b2t-position-right;
|
|
|
|
+tablet-mobile() {
|
|
right: $b2t-position-right-mobile;
|
|
}
|
|
}
|
|
|
|
.book-mark-link {
|
|
left: $b2t-position-right;
|
|
}
|
|
} else {
|
|
.sidebar {
|
|
left: 0 - $sidebar-desktop;
|
|
|
|
&.sidebar-active {
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sidebar {
|
|
width: $sidebar-desktop;
|
|
z-index: $zindex-2;
|
|
the-transition-ease-out();
|
|
|
|
a, span.exturl {
|
|
border-bottom-color: $black-light;
|
|
color: $grey-dark;
|
|
|
|
&:hover {
|
|
border-bottom-color: $gainsboro;
|
|
color: $gainsboro;
|
|
}
|
|
}
|
|
}
|
|
|
|
.links-of-blogroll-item {
|
|
if (hexo-config('links_settings.layout') == 'inline') {
|
|
display: inline-block;
|
|
}
|
|
padding: 2px 10px;
|
|
|
|
a, span.exturl {
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
max-width: 280px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|