Menüüberlappungen etwas sinnvoller gelöst
[kivitendo-erp.git] / css / lx-office-erp / menu.css
1
2 body.menu {
3   background-image: url("../../image/fade.png");background-repeat:repeat-x;
4   font-family: Verdana, Arial, Helvetica, sans-serif;
5   font-size:8pt;
6   color: black;
7 }
8
9 table.menunew {
10   border: 0;
11   width: 100%;
12   background-image: url("../../image/bg_titel.gif");
13   border-spacing: 0;
14 }
15
16 table.menunew td {
17   padding: 0;
18   color:white;
19   font-family: Verdana, Arial, sans-serif;
20   font-size: 12px;
21 }
22
23 body.menunew {
24   padding:0px;
25   margin:0px;
26 }
27
28 body {
29 behavior:url("csshover.htc");
30 }
31
32 #menuv3 {
33 width:99.8%;
34 float:left;
35 background:url(../../image/bg_css_menu.png) repeat bottom;
36 border:1px solid;
37 border-color:#ccc #888 #555 #bbb;
38 }
39
40 #menuv3 a, #menuv3 h2, #menuv3 div.x {
41 font:11px/16px arial,helvetica,sans-serif;
42 display:block;
43 border:0;
44 border-right:1px;
45 border-style:solid;
46 border-color:#ccc #888 #555 #bbb;
47 white-space:nowrap;
48 margin:0;
49 padding:1px 0 1px 3px;
50 }
51
52 #menuv3 h2 {
53 color:#fff;
54 padding:0 5px;
55 }
56
57 #menuv3 a, #menuv3 a:visited, #menuv3 div.x, #menuv3 div.x:visited {
58 color:#000;
59 text-decoration:none;
60 padding-right:10px;
61 }
62
63 #menuv3 a {
64 background:#eee;
65 }
66
67 #menuv3 div.x, #menuv3 div.x:visited {
68 background:#eee url(../../image/right.gif) no-repeat right;
69 }
70
71 #menuv3 a:hover, #menuv3 div.x:hover {
72 color:#a00;
73 background-color:#ddd;
74 }
75
76 #menuv3 a:active, #menuv3 div.x:active {
77 color:#060;
78 background-color:#ccc;
79 }
80
81 #menuv3 ul {
82 list-style:none;
83 margin:0;
84 padding:0;
85 float:left;
86 min-width:7em;
87 }
88
89 #menuv3 li {
90 position:relative;
91 float:none;
92 border:0;
93 }
94
95 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far
96  * correction: the bug will change the height of the parent element! this will also cause the whole menu to grow
97  * so the only method to get this pile of crap going is to add a bottom border to the <li>s, where the enclosing <ul> already has
98  * a bottom border, which just looks ugly
99  * the trick: color the bottom border with the same color as the bottom pixel of the background image - noone notices */
100 #menuv3 ul li {
101 border:solid;
102 border-color:#ccd5e5;
103 border-width:0 0 1px 0;
104 }
105
106 #menuv3 ul ul li {
107 border:solid;
108 border-width:0 0 1px 0;
109 }
110
111 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below
112  * causing the menu to close. Opera 9 has the same bug btw. */
113 #menuv3 ul ul {
114 position:absolute;
115 z-index:500;
116 top:auto;
117 display:none;
118 }
119
120 #menuv3 ul ul ul {
121 top:0;
122 left:100%;
123 }
124
125 /* Begin non-anchor hover selectors */
126
127 /* Enter the more specific element (div) selector
128 on non-anchor hovers for IE5.x to comply with the
129 older version of csshover.htc - V1.21.041022. It
130 improves IE's performance speed to use the older
131 file and this method */
132
133 div#menuv3 h2:hover {
134 background:#A3C5FF;
135 color:#a00;
136 }
137
138 div#menuv3 li:hover {
139 cursor:pointer;
140 z-index:100;
141 }
142
143 div#menuv3 li:hover ul ul,
144 div#menuv3 li li:hover ul ul,
145 div#menuv3 li li li:hover ul ul,
146 div#menuv3 li li li li:hover ul ul
147 {display:none;}
148
149 div#menuv3 li:hover ul,
150 div#menuv3 li li:hover ul,
151 div#menuv3 li li li:hover ul,
152 div#menuv3 li li li li:hover ul
153 {display:block;}
154
155 /* End of non-anchor hover selectors */
156
157 #menuv4 {
158 width:99.8%;
159 float:left;
160 background:url(../../image/bg_css_menu.png) repeat bottom;
161 border:1px solid;
162 border-color:#ccc #888 #555 #bbb;
163 }
164
165 #menuv4 a, #menuv4 h2, #menuv4 div.x {
166 font:11px/16px arial,helvetica,sans-serif;
167 display:block;
168 border:0;
169 border-right:1px;
170 border-style:solid;
171 border-color:#ccc #888 #555 #bbb;
172 white-space:nowrap;
173 margin:0;
174 padding:1px 0 1px 3px;
175 }
176
177 #menuv4 h2 {
178 color:#fff;
179 padding:2px 10px;
180 }
181
182 #menuv4 a, #menuv4 a:visited, #menuv4 div.x, #menuv4 div.x:visited {
183 color:#000;
184 text-decoration:none;
185 padding-right:10px;
186 }
187
188 #menuv4 a {
189 background:#eee;
190 }
191 #menuv4 div.x, #menuv4 div.x:visited {
192 background:#eee url(../../image/right.gif) no-repeat right;
193 }
194
195 #menuv4 a:hover, #menuv4 div.x:hover {
196 color:#a00;
197 background-color:#ddd;
198 }
199
200 #menuv4 a:active, #menuv4 div.x:active {
201 color:#060;
202 background-color:#ccc;
203 }
204
205 #menuv4 ul {
206 list-style:none;
207 margin:0;
208 padding:0;
209 float:left;
210 }
211
212 #menuv4 li {
213 position:relative;
214 float:none;
215 border:0;
216 }
217
218 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far
219  * correction: the bug will change the height of the parent element! this will also cause the whole menu to grow
220  * so the only method to get this pile of crap going is to add a bottom border to the <li>s, where the enclosing <ul> already has
221  * a bottom border, which just looks ugly
222  * the trick: color the bottom border with the same color as the bottom pixel of the background image - noone notices */
223 #menuv4 ul li {
224 border:solid;
225 border-color:#ccd5e5;
226 border-width:0 0 1px 0;
227 }
228
229 #menuv4 ul ul li {
230 border:solid;
231 border-width:0 0 1px 0;
232 }
233
234 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below
235  * causing the menu to close. Opera 9 has the same bug btw. */
236 #menuv4 ul ul {
237 position:absolute;
238 z-index:500;
239 top:auto;
240 display:none;
241 }
242
243 #menuv4 ul ul ul {
244 top:0;
245 left:90%;
246 }
247
248 /* Begin non-anchor hover selectors */
249
250 /* Enter the more specific element (div) selector
251 on non-anchor hovers for IE5.x to comply with the
252 older version of csshover.htc - V1.21.041022. It
253 improves IE's performance speed to use the older
254 file and this method */
255
256 div#menuv4 h2:hover {
257 background:#A3C5FF;
258 color:#a00;
259 }
260
261 div#menuv4 li:hover {
262 cursor:pointer;
263 z-index:100;
264 }
265
266 div#menuv4 li:hover ul ul,
267 div#menuv4 li li:hover ul ul,
268 div#menuv4 li li li:hover ul ul,
269 div#menuv4 li li li li:hover ul ul
270 {display:none;}
271
272 div#menuv4 li:hover ul,
273 div#menuv4 li li:hover ul,
274 div#menuv4 li li li:hover ul,
275 div#menuv4 li li li li:hover ul
276 {display:block;}
277
278 /* End of non-anchor hover selectors */
279
280 /* html menu */
281 /* types of lines: m sm i (menu submenu item)
282    each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer)
283    and one mic (menu-item-chunk)
284    indenting is done with the levels s0, s1, s2 */
285 #content.html-menu, #html-menu {
286   transition:         margin-left 0.2s, width 0.2s;
287   -moz-transition:    margin-left 0.2s, width 0.2s;
288   -webkit-transition: margin-left 0.2s, width 0.2s;
289   -o-transition:      margin-left 0.2s, width 0.2s;
290 }
291 #content.html-menu { margin-left: 190px; }
292 #content.html-menu.folded { margin-left: 40px }
293 #html-menu.folded:hover + #content.html-menu.folded { margin-left: 190px }
294 #html-menu { float:left; width: 183px; font-size: 8pt; margin-top: 10px; overflow:hidden; }
295 #html-menu.folded { width: 32px; }
296 #html-menu.folded:hover { width: 183px; }
297 #html-menu div.mi { margin-top: 4px; margin-bottom: 3px; white-space: nowrap; clear:both; position:relative; }
298 #html-menu div.sm { font-weight: bold }
299 #html-menu img { vertical-align: top; border: 0; }
300 #html-menu a { vertical-align: top }
301 #html-menu .i span.ms { float: left; width: 24px; margin-bottom: 4px; }
302 #html-menu .m span.ms { float: left; width: 32px }
303 #html-menu .sm span.ms { float: left; width: 24px; background: url(../../image/unterpunkt.png); }
304 #html-menu div.m { height: 24px }
305 #html-menu div.m span.mic { color:blue; position: relative; top: 4px }
306 #html-menu div.m:hover,
307 #html-menu div.i:hover { color:blue; background-color: lemonchiffon; cursor: pointer; }
308 #html-menu span.mic { white-space: normal; display: inline-block; vertical-align: top; line-height: 1.2; }
309 #html-menu a.ml span.mic { width: 145px } /* fix deep indents */
310 #html-menu div.s0 { padding-left: 2px }
311 #html-menu div.s1 { padding-left: 8px }
312 #html-menu div.s2 { padding-left: 16px }
313
314 body { margin: 0 }
315
316
317 @media print {
318   #menuv3, #menuv4, #html-menu, #frame-header, #js-menu {   /* items with this class won't print */
319     display: none;
320   }
321   #content.html-menu { margin-left: 0; }
322 }