nav.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
.outlet-nav {
width: 100%;
height: 88px;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
white-space: nowrap;
position: relative;
background: #fff;
overflow: hidden;
.nav-main {
width: 100%;
height: 98px;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}
ul {
padding: 0 20px;
margin: 0;
display: table;
table-layout: fixed;
white-space: nowrap;
width: auto;
}
li {
-webkit-box-flex: 1;
display: inline-block;
-webkit-box-align: center;
-webkit-box-pack: center;
vertical-align: top;
margin-right: 10px;
height: 88px;
a {
display: inline-block;
width: auto;
height: 86px;
padding: 0 20px;
line-height: 88px;
color: #b0b0b0;
font-size: 28px;
border-bottom: 6px solid #fff;
}
&.active {
a {
border-color: #3d3d3d;
color: #444;
}
}
&:last-child {
margin-right: 0;
}
}
&.outlet-category-nav {
height: 68px;
li {
height: 68px;
}
a {
height: 38px;
line-height: 70px;
&.active {
color: #444;
}
}
span {
color: #b0b0b0;
font-size: 28px;
}
}
}
.nav-fix {
position: fixed;
top: 0;
left: 0;
z-index: 100;
}