_side-nav.scss
2.49 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
.side-nav {
background: #fff;
position: absolute;
top: 0;
right: 100rem / $pxConvertRem;
bottom: 0;
left: 0;
padding: 0 (30rem / $pxConvertRem);
z-index: 1;
li {
position: relative;
height: 110rem / $pxConvertRem;
line-height: 110rem / $pxConvertRem;
a {
display: block;
height: 100%;
padding-left: 48rem / $pxConvertRem;
color: #444;
font-size: 34rem / $pxConvertRem;
border-bottom: 1px solid #e0e0e0;
}
.nav-point {
position: absolute;
left: 0;
color: #f0f0f0;
font-size: 18rem / $pxConvertRem;
height: 100%;
}
.enter-btn {
position: absolute;
right: 0;
top: 0;
bottom: 0;
font-size: 32rem / $pxConvertRem;
color: #b2b2b2;
font-weight: lighter;
}
em {
margin-right: 20rem / $pxConvertRem;
font-weight: bold;
}
}
li.current {
.nav-point {
color: #444;
}
}
}
.sub-nav {
position: fixed;
top: 0;
right: 100rem / $pxConvertRem;
left: 0;
bottom: 0;
background: #fff;
z-index: 2;
transform: translate3d(100%, 0, 0);
transition: transform .3s ease-out;
li {
a {
display: flex;
display: -webkit-flex;
margin: 0 (30rem / $pxConvertRem) 0 (112rem / $pxConvertRem);
padding-left: 0;
border-bottom: 1px solid #e0e0e0;
align-items: center;
}
/* img{
position: absolute;
max-width: 50rem / $pxConvertRem;
max-height: 50rem / $pxConvertRem;
left: 32rem / $pxConvertRem;
top: 50%;
margin-top: -25rem / $pxConvertRem;
border: none;
} */
img {
max-width: 50rem / $pxConvertRem;
max-height: 50rem / $pxConvertRem;
margin-left: -70rem / $pxConvertRem;
margin-right: 16rem / $pxConvertRem;
}
em {
font-weight: normal;
}
}
li:first-child {
height: 80rem / $pxConvertRem;
line-height: 80rem / $pxConvertRem;
background: #3e3e3e;
a {
color: #fff;
border-bottom: none;
}
}
}
.sub-nav.show {
transform: translate3d(0, 0, 0);
transition: transform .3s ease-out;
}