superfish.css
4.14 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
/*** ESSENTIAL STYLES ***/
.sf-menu,
.sf-menu * {
margin: 0;
padding: 0;
list-style: none;
font-family: '微软雅黑 Regular', '微软雅黑';
font-weight: 400;
font-style: normal;
font-size: 12px;
text-align: left;
line-height: normal;
}
.sf-menu {
line-height: 1.0;
width: 140px;
z-index: 1001;
display: none;
position: absolute;
}
.sf-menu ul {
/*position: absolute;
top: -999em;
width: 10em; /* left offset of submenus need to match (see below) */
width: 140px;
}
.sf-menu ul li {
/*width: 100%;*/
width: 140px;
height: 35px;
}
.sf-menu li:hover {
/*visibility: inherit; /* fixes IE7 'sticky bug' */
}
.sf-menu li {
float: left;
position: relative;
}
.sf-menu a {
display: block;
position: relative;
padding: 7px 15px 7px 15px;
display: block;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
-webkit-box-shadow: 2px 2px 4px #888;
-moz-box-shadow: 2px 2px 4px #888;
-o-box-shadow: 2px 2px 4px #888;
height: 21px;
width: 110px;
}
.sf-menu a:hover {}
.sf-menu li:hover ul,
.sf-menu li.sfHover ul {
/* match top ul list item height */
/* left: 0;
top: 2.5em;
z-index: 99;*/
}
ul.sf-menu li:hover li ul,
ul.sf-menu li.sfHover li ul {
/*top: -999em;*/
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
/* match ul width */
/*left: 10em;
top: 0;*/
}
ul.sf-menu li li:hover li ul,
ul.sf-menu li li.sfHover li ul {
/*top: -999em;*/
}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
/* match ul width */
/*left: 10em;
top: 0;*/
}
/*** DEMO SKIN ***/
.sf-menu {
float: left;
margin-bottom: 1em;
}
.sf-menu a {
/*
border-left: 1px solid #fff;
border-top: 1px solid #CFDEFF;
padding: .75em 1em;
text-decoration:none;
*/
background-color: white;
}
.sf-menu a,
.sf-menu a:visited {
/* visited pseudo selector so IE6 applies text colour*/
}
.sf-menu li {
background-color: white;
}
.sf-menu li li {}
.sf-menu li li li {}
.sf-menu li:hover,
.sf-menu li.sfHover,
.sf-menu a:focus,
.sf-menu a:hover,
.sf-menu a:active {
outline: 0;
}
/*** arrows **/
.sf-menu a.sf-with-ul {
/*padding-right: 2.25em;
min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */
display: block;
position: relative;
padding: 7px 15px 7px 15px;
width: 110px;
}
.sf-sub-indicator {
position: absolute;
display: block;
right: .75em;
top: 1.05em;
/* IE6 only */
width: 10px;
height: 10px;
text-indent: -999em;
overflow: hidden;
background: url('../superfish/arrows1.png') no-repeat -10px -100px;
/* 8-bit indexed alpha png. IE6 gets solid image only */
background-position: center center !important;
z-index: 1001;
}
a>.sf-sub-indicator {
/* give all except IE6 the correct values */
top: .8em;
background-position: 0 -100px;
/* use translucent arrow for modern browsers*/
}
/* apply hovers to modern browsers */
a:focus>.sf-sub-indicator,
a:hover>.sf-sub-indicator,
a:active>.sf-sub-indicator,
li:hover>a>.sf-sub-indicator,
li.sfHover>a>.sf-sub-indicator {
background-position: -10px -100px;
/* arrow hovers for modern browsers*/
}
/* point right for anchors in subs */
.sf-menu ul .sf-sub-indicator {
background-position: -10px 0;
}
.sf-menu ul a>.sf-sub-indicator {
background-position: 0 0;
}
/* apply hovers to modern browsers */
.sf-menu ul a:focus>.sf-sub-indicator,
.sf-menu ul a:hover>.sf-sub-indicator,
.sf-menu ul a:active>.sf-sub-indicator,
.sf-menu ul li:hover>a>.sf-sub-indicator,
.sf-menu ul li.sfHover>a>.sf-sub-indicator {
background-position: -10px 0;
/* arrow hovers for modern browsers*/
}
/*** shadows for all but IE6 ***/
.sf-shadow ul {
background: url('../superfish/shadow.png') no-repeat bottom right;
padding: 0 8px 9px 0;
-moz-border-radius-bottomleft: 17px;
-moz-border-radius-topright: 17px;
-webkit-border-top-right-radius: 17px;
-webkit-border-bottom-left-radius: 17px;
}
.sf-shadow ul.sf-shadow-off {
background: transparent;
}