hexo-theme-keep/source/css/layout/_partial/sidebar.styl

34 lines
460 B
Stylus
Raw Normal View History

@require "../common/variables.styl"
2020-04-28 23:20:17 +08:00
@require "../common/magic-theme.styl"
.sidebar {
width: $sidebar-width;
2020-04-28 23:20:17 +08:00
box-sizing: border-box;
.sidebar-container {
2020-04-28 23:20:17 +08:00
.sidebar-item {
2020-04-28 23:20:17 +08:00
margin-bottom: $component-interspace;
2020-04-28 23:20:17 +08:00
&:last-child {
margin-bottom: 0;
}
}
}
}
.sidebar-post {
position: fixed;
}
.sidebar-other {
if (!hexo-config('magic.sidebar.fixed')) {
position: absolute;
} else {
position: fixed;
}
}