dropdown-login.scss
1.6 KB
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
@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) {
}