dropdown.scss
1.89 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@import '@/styles/_support.scss';
.drop-list {
display: inline-block;
min-width: 10rem;
position: relative;
margin: 0 1rem;
font-size: $fontSizeTitle;
.list {
position: absolute;
width: 11rem;
left: 0;
right: 0;
margin: 0 auto;
font-size: $fontSize;
left: 50%;
transform: translateX(-50%); //居中处理
.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;
}
}
}
.drop-list:lang(en){
min-width: 0;
margin: 0 32px;
}
.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;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.icon-img {
margin: 0 .5rem;
}
}
// 登陆
.login {}
@media (max-width: 1100px) {
.drop-list {
margin: 0 28px;
min-width: 0;
// .list {
// width: 11rem;
// left: 50%;
// transform: translateX(-50%); //居中处理
// }
}
.drop-list:lang(en) {
margin: 0 22px;
}
}
@media (max-width: 1000px) {
// .drop-list {
// margin: 0 20px;
// }
}