๐Ÿ“ฆ YMFE / yapi

๐Ÿ“„ Header.scss ยท 151 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151@import '../../styles/mixin.scss';

.nav-tooltip {
  color: red;
}

.user-menu.ant-menu.ant-menu-dark .ant-menu-item-selected {
  background: #32363a;
  color: rgba(255, 255, 255, 0.67);
}
.user-menu.ant-menu-dark .ant-menu-item-selected > a {
  color: rgba(255, 255, 255, 0.67);
}

/* .header-box.css */
.header-box {
  height: .56rem;
  line-height: .56rem;
  padding: 0;
  .logo {
    position: relative;
    float: left;
    line-height: .56rem;
    height: .56rem;
    width: 56px;
    border-right: 1px solid #55616d;
    border-left: 1px solid #55616d;
    background-color: inherit;
    transition: all .2s;
    &:hover{
      background-color: #2395f1;
    }
    .href {
      text-decoration: none;
      display: block;
    }
    .logo-name {
      color: $color-white;
      font-size: .24rem;
      font-weight: 300;
      margin-left: .38rem;
    }
    .img {
      position: absolute;
      left: 0;
      top: 50%;
      left: 50%;
      transform: translate(-16px,-17px);
    }
    .ui-badge {
      position: absolute;
      right: -18px;
      top: 6px;
      width: 30px;
      height: 21px;
      background-size: 236px 21px;
      background-repeat: no-repeat;
      background-image: none;
    }
    // &:before, &:after {
    //   content: '';
    //   display: block;
    //   width: 2px;
    //   height: .56rem;
    //   background-color: #222;
    //   border-left: 1px solid #575D67;
    //   position: relative;
    //   top: 0;
    // }
    // &:before {
    //   float: left;
    //   left: -.08rem;
    // }
    // &:after {
    //   float: right;
    //   right: -.27rem;
    // }
  }

  .nav-toolbar {
    font-size: .15rem;
    float: left;

  }
  .user-menu{
    margin-top: 20px;
  }
  .user-toolbar{
    float: right;
    height: .54rem;
    display: flex;
    align-items: center;
    .item-search {
      width: 2rem;
    }
    .toolbar-li{
      float: left;
      font-size: .14rem;
      cursor: pointer;
      color: #ccc;
      margin-left: .16rem;
      transition: color .2s;
      & a {
        color: #ccc;
      }
      .dropdown-link {
        color: #ccc;
        transition: color .2s;
        // .ant-avatar-image{
        //   margin-bottom: -10px;
        // }
        // .ant-avatar > img{
        //   height: auto;
        // }
        .avatar-image{
          margin-bottom: -10px;
          display: inline-block;
          text-align: center;
          background: #ccc;
          color: #fff;
          white-space: nowrap;
          position: relative;
          overflow: hidden;
          width: 32px;
          height: 32px;
          line-height: 0;
          border-radius: 16px;
        }

        .avatar-image > img{
          height: auto;
          width:100%;
          display: bloack;
        }

      }
      .anticon.active {
        color: #2395f1;
      }
      &:hover{
        .dropdown-link {
          color: #2395f1;
        }
      }
      .name {
        margin-left: .08rem;
      }
    }
  }
}