dropdown.scss 1.38 KB
@import '@/styles/_support';

.drop-list {
  display: inline-block;
  min-width: 10rem;
  position: relative;
  margin: 0 1rem;
  font-size: $fontSize;

  .list {
    position: absolute;
    width: 100%;

    .space {
      height: 1.5rem;
    }
  }

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

  span:hover {}

  ul {
    display: none;
    overflow: hidden;
    box-shadow: 0 0 1.5rem 0 rgba(255, 87, 0, 0.15);
    border-radius: .5rem;

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

      &:after {
        content: "";
        width: 7rem;
        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;
    }
  }
}


.user {
  width: 9.25rem;
  height: 3rem;
  border-radius: 3rem;
  background-color: $cOrange;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto;


  span {
    max-width: 4.25rem;
    /* 51/12 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .icon-img {
    margin: 0 .5rem;
  }
}

// 登陆
.login {}