1 | /** |
---|
2 | ********************************************* |
---|
3 | * Prototype of styles for horizontal CSS-menu |
---|
4 | * @data 30.06.2009 |
---|
5 | ********************************************* |
---|
6 | * (X)HTML-scheme: |
---|
7 | * <div id="menu"> |
---|
8 | * <ul class="menu"> |
---|
9 | * <li><a href="#" class="parent"><span>level 1</span></a> |
---|
10 | * <div><ul> |
---|
11 | * <li><a href="#" class="parent"><span>level 2</span></a> |
---|
12 | * <div><ul><li><a href="#"><span>level 3</span></a></li></ul></div> |
---|
13 | * </li> |
---|
14 | * </ul></div> |
---|
15 | * </li> |
---|
16 | * <li class="last"><a href="#"><span>level 1</span></a></li> |
---|
17 | * </ul> |
---|
18 | * </div> |
---|
19 | ********************************************* |
---|
20 | */ |
---|
21 | |
---|
22 | /* menu::base */ |
---|
23 | div#menu { |
---|
24 | height: 43px; |
---|
25 | padding-left: 6px; |
---|
26 | background: url(images/left.png) no-repeat; |
---|
27 | _background: url(images/left.gif) no-repeat; |
---|
28 | width: auto; |
---|
29 | } |
---|
30 | |
---|
31 | div#menu ul { |
---|
32 | margin: 0; |
---|
33 | padding: 0; |
---|
34 | list-style: none; |
---|
35 | float: left; |
---|
36 | } |
---|
37 | |
---|
38 | div#menu ul.menu { |
---|
39 | padding-right: 6px; |
---|
40 | background: url(images/right.png) no-repeat right 0; |
---|
41 | _background: url(images/right.gif) no-repeat right 0; |
---|
42 | } |
---|
43 | |
---|
44 | div#menu li { |
---|
45 | position: relative; |
---|
46 | margin: 0; |
---|
47 | padding: 0 0px 0 0; |
---|
48 | display: block; |
---|
49 | float: left; |
---|
50 | z-index: 9; |
---|
51 | width: auto; |
---|
52 | } |
---|
53 | |
---|
54 | div#menu ul ul li { |
---|
55 | z-index: 9; |
---|
56 | } |
---|
57 | |
---|
58 | div#menu li div { |
---|
59 | list-style: none; |
---|
60 | float: left; |
---|
61 | position: absolute; |
---|
62 | z-index: 11; |
---|
63 | top: 42px; |
---|
64 | left: 0; |
---|
65 | visibility: hidden; |
---|
66 | width: 180px; |
---|
67 | margin: 0px 0 0 -4px; |
---|
68 | padding: 0; |
---|
69 | background: url(images/subsubmenu-top.png) no-repeat 0px 0; |
---|
70 | _background: url(images/subsubmenu-top.gif) no-repeat 0px 0; |
---|
71 | } |
---|
72 | |
---|
73 | div#menu ul ul { |
---|
74 | z-index: 12; |
---|
75 | padding: 0px 4px 10px 4px; |
---|
76 | background: url(images/submenu-bottom.png) no-repeat 0px bottom; |
---|
77 | _background: url(images/submenu-bottom.gif) no-repeat 0px bottom; |
---|
78 | margin: 10px 0 0 0; |
---|
79 | } |
---|
80 | |
---|
81 | div#menu li:hover>div { |
---|
82 | visibility: visible; |
---|
83 | } |
---|
84 | |
---|
85 | div#menu a { |
---|
86 | position: relative; |
---|
87 | z-index: 10; |
---|
88 | height: 40px; |
---|
89 | display: block; |
---|
90 | float: left; |
---|
91 | line-height: 40px; |
---|
92 | text-decoration: none; |
---|
93 | margin-top: 1px; |
---|
94 | white-space: nowrap; |
---|
95 | width: auto; |
---|
96 | padding-right: 5px; |
---|
97 | text-align: center; |
---|
98 | } |
---|
99 | |
---|
100 | div#menu span { |
---|
101 | margin-top: 2px; |
---|
102 | padding-left: 15px; |
---|
103 | color: #fff; |
---|
104 | font: normal 13px Helvetica, Arial, FreeSans, sans-serif; |
---|
105 | background: none; |
---|
106 | line-height: 40px; |
---|
107 | display: block; |
---|
108 | cursor: pointer; |
---|
109 | background-repeat: no-repeat; |
---|
110 | background-position: 95% 0; |
---|
111 | text-align: center; |
---|
112 | } |
---|
113 | |
---|
114 | /* menu::level1 */ |
---|
115 | div#menu a { |
---|
116 | padding: 0 10px 0 0; |
---|
117 | line-height: 40px; |
---|
118 | height: 42px; |
---|
119 | margin-right: 5px; |
---|
120 | _margin-right: 1px; |
---|
121 | background: none; |
---|
122 | text-transform: uppercase; |
---|
123 | } |
---|
124 | |
---|
125 | div#menu a:hover { |
---|
126 | background: url(images/selected-right-sub.png) no-repeat right -1px; |
---|
127 | } |
---|
128 | |
---|
129 | div#menu a:hover span { |
---|
130 | background: url(images/selected-left-sub.png) no-repeat 0 -3px; |
---|
131 | } |
---|
132 | |
---|
133 | div#menu li.current a, |
---|
134 | div#menu ul.menu>li:hover>a { |
---|
135 | background: url(images/selected-right-sub.png) no-repeat right -1px; |
---|
136 | } |
---|
137 | |
---|
138 | div#menu li.current a span, |
---|
139 | div#menu ul.menu>li:hover>a span { |
---|
140 | background: url(images/selected-left-sub.png) no-repeat 0 -3px; |
---|
141 | } |
---|
142 | |
---|
143 | div#menu ul.menu>li:hover>a span { |
---|
144 | color: #881714; |
---|
145 | } |
---|
146 | |
---|
147 | div#menu li { |
---|
148 | } |
---|
149 | |
---|
150 | div#menu li.last { |
---|
151 | background: none; |
---|
152 | } |
---|
153 | |
---|
154 | /* menu::level2 */ |
---|
155 | div#menu ul ul li { |
---|
156 | background: none; |
---|
157 | padding: 0; |
---|
158 | } |
---|
159 | |
---|
160 | div#menu ul ul a { |
---|
161 | padding: 0px; |
---|
162 | height: auto; |
---|
163 | float: none; |
---|
164 | display: block; |
---|
165 | line-height: 25px; |
---|
166 | font-size: 13px; |
---|
167 | color: #fff; |
---|
168 | z-index: -1; |
---|
169 | padding-left: 5px; |
---|
170 | white-space: normal; |
---|
171 | width: 152px; |
---|
172 | margin: 0 8px; |
---|
173 | text-transform: none; |
---|
174 | } |
---|
175 | |
---|
176 | div#menu ul ul a span { |
---|
177 | padding: 0 5px; |
---|
178 | line-height: 25px; |
---|
179 | font-size: 13px; |
---|
180 | } |
---|
181 | |
---|
182 | div#menu li.current ul a, |
---|
183 | div#menu li.current ul a span { |
---|
184 | background: none; |
---|
185 | } |
---|
186 | |
---|
187 | div#menu ul ul a:hover { |
---|
188 | background: none; |
---|
189 | background-color: #581700; |
---|
190 | } |
---|
191 | |
---|
192 | div#menu ul ul a:hover span { |
---|
193 | background: none; |
---|
194 | color: #881714; |
---|
195 | } |
---|
196 | |
---|
197 | div#menu ul ul a.parent { |
---|
198 | background: url(images/submenu-pointer.png) no-repeat right bottom; |
---|
199 | _background-image: url(images/submenu-pointer-hover.gif); |
---|
200 | } |
---|
201 | |
---|
202 | div#menu ul ul a.parent span { |
---|
203 | background: none; |
---|
204 | } |
---|
205 | |
---|
206 | div#menu ul ul a.parent:hover { |
---|
207 | background: url(images/submenu-pointer.png) no-repeat right bottom; |
---|
208 | _background: url(images/submenu-pointer-hover.gif) no-repeat right bottom; |
---|
209 | background-color: #581700; |
---|
210 | } |
---|
211 | |
---|
212 | div#menu ul ul a.parent:hover span { |
---|
213 | background: none; |
---|
214 | } |
---|
215 | |
---|
216 | div#menu ul ul span { |
---|
217 | |
---|
218 | margin-top: 0; |
---|
219 | text-align: left; |
---|
220 | } |
---|
221 | |
---|
222 | div#menu ul ul li.last { |
---|
223 | background: none; |
---|
224 | } |
---|
225 | |
---|
226 | div#menu ul ul li { |
---|
227 | width: 100%; |
---|
228 | } |
---|
229 | |
---|
230 | /* menu::level3 */ |
---|
231 | div#menu ul ul div { |
---|
232 | width: 180px; |
---|
233 | padding: 0; |
---|
234 | margin: -52px 0 0 165px !important; |
---|
235 | } |
---|
236 | |
---|
237 | div#menu ul ul ul { |
---|
238 | padding: 10px 4px 0 4px; |
---|
239 | margin-top: 10px; |
---|
240 | } |
---|
241 | |
---|
242 | div#menu ul ul div li { |
---|
243 | position: relative; |
---|
244 | top: -10px; |
---|
245 | } |
---|
246 | |
---|
247 | /* lava lamp */ |
---|
248 | div#menu li.back { |
---|
249 | background: url(images/selected-left-sub.png) no-repeat 0 0; |
---|
250 | width: 5px; |
---|
251 | height: 42px; |
---|
252 | z-index: 8; |
---|
253 | position: absolute; |
---|
254 | padding: 0; |
---|
255 | margin: 0px 0 0 0; |
---|
256 | } |
---|
257 | |
---|
258 | div#menu li.back .left { |
---|
259 | padding: 0; |
---|
260 | width: auto; |
---|
261 | background: url(images/selected-right-sub.png) no-repeat right 0; |
---|
262 | height: 42px; |
---|
263 | margin: 0 0 0 5px; |
---|
264 | float: none; |
---|
265 | position: relative; |
---|
266 | top: 0; |
---|
267 | left: 0; |
---|
268 | visibility: visible; |
---|
269 | } |
---|