.sticky-top {
  position: absolute;
  top: 0;
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  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'));

  &__icon {
    display: block;
    width: 100%;
    height: 100%;
    color: convert(hexo-config('stick_top.color' || '#999'));
    transform: rotate(stick-top-rotate);
  }
}

.archive {
  .sticky-top {
    top: 50%;
    right: 0;
    left: auto;
    transform: translate(0, -50%);
  }
}
