dropdown-login.scss 1.6 KB
@import "@/styles/_support.scss";

.drop-list {
  position: relative;
  cursor: pointer;

  .list {
    position: absolute;
    width: 132px;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: $fontSize;
    left: 50%;
    transform: translateX(-50%); //居中处理

    .space {
      height: 18px;
    }
  
  }

  span {
    display: block;
    text-align: center;
  }

  span:hover {
  }

  ul {
    display: none;
    overflow: hidden;
    box-shadow: 0 0 18px 0 rgba(255, 87, 0, 0.15);
    border-radius: 6px;

    li {
      // border-bottom: solid 1px #f1f1f1;
      background: #ffffff;
      text-align: center;
      padding: 18px 0;
      position: relative;

      &:after {
        content: "";
        width: 84px;
        height: 1px;
        background: #f1f1f1;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%); //居中处理
      }
    }

    li:last-child {
      border-bottom: none;

      &:after {
        background: transparent;
      }
    }

    li:hover {
      color: $cOrange;
    }
  }
}
.drop-list:lang(en) {
  min-width: 0;
  margin: 0 13px;
}

.user {
  @include border-tans-rev;
  @extend .fcc;
  cursor: pointer;
  width: 70px;
  height: 45px;
  border-radius: 22.5px;

  span {
    max-width: 51px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .icon-img {
    margin: 0 6px;
  }
}

// 登陆
.login {
}

@media (max-width: 1100px) {
  // .drop-list {
  //   margin: 0 28px;
  //   min-width: 0;
  // }
  // .drop-list:lang(en) {
  //   margin: 0 22px;
  // }
}

@media (max-width: 1000px) {
}