.sticky-top { position: absolute; top: 0; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; if (hexo-config('stick_top.position') == 'left') { left: 0; } else if (hexo-config('stick_top.position') == 'right') { right: 0; } stick-top-rotate = convert(hexo-config('stick_top.rotate' || '0deg')); &__i { color: convert(hexo-config('stick_top.color' || '#999')); transform: scale(1.2) rotate(stick-top-rotate); } } .archive { .sticky-top { top: 50%; right: 0; left: auto; transform: translate(0, -50%); } }