_menu.scss
1.03 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
.ui-menu {
background-color: var(--ui-BG);
}
.ui-menu-item {
position: relative;
@include flex-bar;
min-height: 4em;
padding: 0 30rpx;
.ui-menu-item-icon {
width: 1.7em;
margin-right: 0.3em;
position: relative;
display: flex;
align-items: center;
justify-content: center;
transform: scale(1.3);
}
.ui-menu-item-icon .ui-menu-item-image {
width: 1.2em;
height: 1.2em;
display: inline-block;
}
.ui-menu-item-content {
flex: 1;
position: relative;
@include flex-bar;
}
.ui-menu-item-arrow {
width: 1.6em;
text-align: center;
color: var(--ui-TC-3);
}
&::after {
content: ' ';
width: calc(200% - 120rpx);
left: 30rpx;
position: absolute;
top: 0;
box-sizing: border-box;
height: 200%;
border-top: 1px solid var(--ui-Border);
border-radius: inherit;
transform: scale(1);
transform-origin: 0 0;
pointer-events: none;
}
&.first-item::after {
display: none;
}
&:first-child::after {
display: none;
}
}