if (hexo-config('sidebar.position') == 'right') { .sidebar-active { +desktop() { padding-right: $sidebar-desktop; } } .sidebar { right: 0 - $sidebar-desktop; .sidebar-active & { right: 0; } } } else { .sidebar-active { +desktop() { padding-left: $sidebar-desktop; } } .sidebar { left: 0 - $sidebar-desktop; .sidebar-active & { left: 0; } } } .sidebar { background: $black-deep; bottom: 0; if (!hexo-config('back2top.sidebar')) { box-shadow: inset 0 2px 6px black; } position: fixed; top: 0; transition: all $transition-ease-out; width: $sidebar-desktop; z-index: $zindex-2; 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; } }