.sidebar { margin-top: $sidebar-offset; position: -webkit-sticky; position: sticky; top: $sidebar-offset; width: $sidebar-desktop; +tablet-mobile() { display: none; } if (hexo-config('motion.enable') && hexo-config('motion.transition.sidebar')) { visibility: hidden; } } .sidebar-toggle { display: none; } .sidebar-inner { background: var(--content-bg-color); border-radius: $border-radius; box-shadow: $box-shadow; box-sizing: border-box; color: var(--text-color); } .site-state-item a { padding: 0 10px; } .sidebar-button { border-bottom: 1px dotted $grey-light; border-top: 1px dotted $grey-light; margin-top: 10px; a { border: 0; color: $orange; display: block; &:hover { background: none; border: 0; color: darken($orange, 20%); .fa, .fab, .far, .fas { color: darken($orange, 20%); } } } } .links-of-author { display: flex; flex-wrap: wrap; margin-top: 10px; justify-content: center; } .links-of-author-item { sidebar-inline-links-item(); if (!hexo-config('social_icons.icons_only')) { width: 50%; } a, span.exturl { border-bottom: none; border-radius: 4px; display: block; &:hover { background: var(--body-bg-color); } } } .links-of-blogroll-item { if (hexo-config('links_settings.layout') == 'inline') { display: inline-block; max-width: 100%; sidebar-inline-links-item(); } } if (hexo-config('back2top.sidebar')) { // Only when back2top.sidebar is true, apply the following styles .back-to-top { background: var(--body-bg-color); margin: 8px - $sidebar-offset -10px -18px; &.back-to-top-on { margin-top: 16px; } } }