@import "mixins/mixins";
@import "common/var";

@include b(backtop) {
  position: fixed;
  background-color: $--backtop-background-color;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: $--backtop-font-color;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  box-shadow: $--box-shadow-base;
  cursor: pointer;
  z-index: 5;
  
  .el-icon-caret-top {
      transform: scaleX(0.81);
      position: relative;
      margin-bottom: -3px;
      
      &:after {
          content: '';
          display: block;
          width: 20px;
          height: 2px;
          border-radius: 1px;
          background-color: $--backtop-font-color;
          opacity: .85;
          position: absolute;
          top: 50%;
          left: 50%;
          margin-top: -10px;
          margin-left: -10px;
      }
  }

  &:hover {
    background-color: $--backtop-hover-background-color
  }
}
