Blame view

src/components/home/dropdown/dropdown.scss 1.43 KB
simon committed
1 2 3 4
@import '@/styles/_support';

.drop-list {
  display: inline-block;
simon committed
5
  min-width: 10rem;
simon committed
6 7
  position: relative;
  margin: 0 1rem;
simon committed
8
  font-size: $fontSizeTitle;
simon committed
9 10 11

  .list {
    position: absolute;
simon committed
12 13 14 15 16
    width: 110%;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: $fontSize;
simon committed
17 18 19 20 21 22 23 24 25 26 27

    .space {
      height: 1.5rem;
    }
  }

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

simon committed
28
  span:hover {}
simon committed
29 30 31 32 33 34 35 36

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

    li {
simon committed
37
      // border-bottom: solid 1px #f1f1f1;
simon committed
38 39
      background: #ffffff;
      text-align: center;
2  
simon committed
40
      padding: 1.5rem 0;
simon committed
41 42 43 44 45 46 47 48 49 50 51 52 53
      position: relative;

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

simon committed
54 55 56 57
    }

    li:last-child {
      border-bottom: none;
simon committed
58 59 60 61

      &:after {
        background: transparent;
      }
simon committed
62 63 64
    }

    li:hover {
simon committed
65
      color: $cOrange;
simon committed
66
    }
simon committed
67 68
  }
}
simon committed
69

simon committed
70
.user {
simon committed
71 72 73
  width: 9.25rem;
  height: 3rem;
  border-radius: 3rem;
simon committed
74
  background-color: $cOrange;
simon committed
75 76 77 78
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
simon committed
79 80
  margin: 0 auto;

81
  span {
simon committed
82
    max-width: 4.25rem;
83 84 85 86 87
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

simon committed
88 89
  .icon-img {
    margin: 0 .5rem;
simon committed
90 91
  }
}
simon committed
92 93 94

// 登陆
.login {}