Menüüberlappungen etwas sinnvoller gelöst
[kivitendo-erp.git] / css / kivitendo / menu.css
1 /* kivitendo menu Colors:
2 Menu Background color #FE5F14
3 orangemenu color #FFFFFF
4 whiteMenu Hover background color #FFFFE0
5 DarkGreensubenu pointer
6 */
7 body.menuv4 {
8         behavior: url("css/csshover.htc");
9         /*font-size: 14pt;*/
10         line-height: 20pt;
11         font-family: Verdana, Geneva, Tahoma, sans-serif;
12         background-color: #FFFFFF;
13         color: #000000;
14 }
15 #menuv4 {
16         /*font-size: 85%;*/
17         width: 99.8%;
18         float: left;
19         /*border: 3px solid;*/
20         background-color: #FFFFFF;
21         color: #000000;
22 }
23 #menuv4 a, #menuv4 h2, #menuv4 div.x {
24         font-size: 80%;
25         line-height: 120%;
26         display: block;
27         border: 0;
28         white-space: nowrap;
29         margin: 0;
30         padding: 0.3em 1em;
31 }
32 #menuv4 h2 {
33         background-color: #ffffff;
34         color: #000000;
35         /*padding: 2px 15px;*/
36 /* Firefox */
37         -moz-border-radius: 0.4em 0.4em 0;
38 /* Safari, Chrome */
39         -webkit-border-radius: 0.4em 0.4em 0;
40 /* Konqueror */
41         -khtml-border-radius: 0.4em 0.4em 0;
42 /* CSS3 */
43         border-radius: 0.4em 0.4em 0 0;
44 /*      behavior: url(border-radius.htc); */
45 }
46 #menuv4 ul:hover h2 {
47         background-color:#DCDCDC;
48 }
49 #menuv4 a, #menuv4 a:visited, #menuv4 div.x, #menuv4 div.x:visited {
50         color: #000000;
51         text-decoration: none;
52         padding-right: 10px;
53 }
54 #menuv4 a {
55         background: #EBEBEB;
56 }
57 #menuv4 div.x, #menuv4 div.x:visited {
58         background-color: #EBEBEB;
59         border-right: 1em solid #FE5F14;
60 }
61 #menuv4 div.x:hover {
62         border-right: none;
63 }
64 #menuv4 a:hover, #menuv4 div.x:hover {
65         color: #FE5F14;
66         background-color: #EBEBEB;
67 }
68 #menuv4 a:active, #menuv4 div.x:active {
69         color: #FE5F14;
70         background-color: #EBEBEB;
71 }
72 #menuv4 ul {
73         list-style: none;
74         margin: 0;
75         padding: 0;
76         float: left;
77 }
78
79 #menuv4 li {
80         position: relative;
81         float: none;
82         border: 0;
83 }
84 li.sub {
85         position: relativ;
86         left: 0.2em;
87         top: 0px;
88         background-color: #FFFFFF;
89 }
90 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far  * correction:the bug will change the height of the parent element! this will also cause the whole menu to grow  * 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 * a bottom border, which just looks ugly * the trick:color the bottom border with the same color as the bottom pixel of the background image - noone notices */
91 #menuv4 ul li {
92         /* border: solid;
93         border-color: #991900;
94         border-width: 0 0 1px 0;
95 */
96 }
97 #menuv4 ul ul {
98         padding: 0 2em 2em 2em;
99         margin: 0 -2em -2em -2em;
100 }
101 #menuv4 ul ul li {
102         /*padding-top: 0.01em;*/
103         background-color: #FFFFFF;
104 }
105 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below  * causing the menu to close. Opera 9 has the same bug btw. */
106 #menuv4 ul ul {
107         position: absolute;
108         z-index: 500;
109         top: auto;
110         display: none;
111 }
112 #menuv4 ul ul ul {
113         top: 0;
114         left: 99%;
115         padding: 2em;
116         margin: -2em;
117 }
118 #menuv4 ul ul ul li {
119         border-left: 0.2em solid #EBEBEB;
120 }
121 /* Begin non-anchor hover selectors */
122 /* Enter the more specific element (div) selectoron non-anchor hovers for IE5.x to comply with theolder version of csshover.htc - V1.21.041022. Itimproves IE's performance speed to use the olderfile and this method */
123 div#menuv4 h2:hover {
124         background: #EBEBEB;
125         color: #FE5F14;
126 }
127 div#menuv4 li:hover {
128         cursor: pointer;
129         z-index: 100;
130 }
131 div#menuv4 li:hover ul ul, div#menuv4 li li:hover ul ul, div#menuv4 li li li:hover ul ul, div#menuv4 li li li li:hover ul ul {
132         display: none;
133 }
134 div#menuv4 li:hover ul, div#menuv4 li li:hover ul, div#menuv4 li li li:hover ul, div#menuv4 li li li li:hover ul {
135         display: block;
136         position: relativ: left: 10px;
137 }
138 /* End of non-anchor hover selectors */
139
140 body.menuv3 {
141         behavior: url("css/csshover.htc");
142         /*font-size: 14pt;*/
143         line-height: 20pt;
144         font-family: Verdana, Geneva, Tahoma, sans-serif;
145         background-color: #FFFFFF;
146         color: #000000;
147 }
148 #menuv3 {
149         /*font-size: 85%;*/
150         width: 99.8%;
151         float: left;
152         /*border: 3px solid;*/
153         background-color: #FFFFFF;
154         color: #000000;
155         margin-top: 0.2em;
156 }
157 #menuv3 a, #menuv3 h2, #menuv3 div.x {
158         font-size: 80%;
159         line-height: 120%;
160         display: block;
161         border: 0;
162         white-space: nowrap;
163         margin: 0;
164         padding: 0.3em 1em;
165 }
166 #menuv3 h2:before {
167         content: " ";
168 }
169 #menuv3 h2:after {
170         content: " ";
171 }
172 #menuv3 h2 {
173         background-color: #ffffff;
174         color: #000000;
175         /*padding: 2px 15px;*/
176 /* Firefox */
177         -moz-border-radius: 0.4em 0.4em 0;
178 /* Safari, Chrome */
179         -webkit-border-radius: 0.4em 0.4em 0;
180 /* Konqueror */
181         -khtml-border-radius: 0.4em 0.4em 0;
182 /* CSS3 */
183         border-radius: 0.4em 0.4em 0 0;
184 /*      behavior: url(border-radius.htc); */
185 }
186 #menuv3 ul:hover h2 {
187         background-color:#DCDCDC;
188 }
189 #menuv3 a, #menuv3 a:visited, #menuv3 div.x, #menuv3 div.x:visited {
190         color: #000000;
191         text-decoration: none;
192         padding-right: 10px;
193 }
194 #menuv3 a {
195         background: #EBEBEB;
196 }
197 #menuv3 div.x, #menuv3 div.x:visited {
198         background-color: #EBEBEB;
199         border-right: 1em solid #FE5F14;
200 }
201 #menuv3 div.x:hover {
202         border-right: none;
203 }
204 #menuv3 a:hover, #menuv3 div.x:hover {
205         color: #FE5F14;
206         background-color: #EBEBEB;
207 }
208 #menuv3 a:active, #menuv3 div.x:active {
209         color: #FE5F14;
210         background-color: #EBEBEB;
211 }
212 #menuv3 ul {
213         list-style: none;
214         margin: 0;
215         padding: 0;
216         float: left;
217 }
218
219 #menuv3 li {
220         position: relative;
221         float: none;
222         border: 0;
223 }
224 li.sub {
225         position: relativ;
226         left: 0.2em;
227         top: 0px;
228         background-color: #FFFFFF;
229 }
230 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far  * correction:the bug will change the height of the parent element! this will also cause the whole menu to grow  * 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 * a bottom border, which just looks ugly * the trick:color the bottom border with the same color as the bottom pixel of the background image - noone notices */
231 #menuv3 ul li {
232         /* border: solid;
233         border-color: #991900;
234         border-width: 0 0 1px 0;
235 */
236 }
237 #menuv3 ul ul {
238         padding: 0 2em 2em 2em;
239         margin: 0 -2em -2em -2em;
240 }
241 #menuv3 ul ul li {
242         /*padding-top: 0.01em;*/
243         background-color: #FFFFFF;
244 }
245 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below  * causing the menu to close. Opera 9 has the same bug btw. */
246 #menuv3 ul ul {
247         position: absolute;
248         z-index: 500;
249         top: auto;
250         display: none;
251 }
252 #menuv3 ul ul ul {
253         top: 0;
254         left: 99%;
255         padding: 2em;
256         margin: -2em;
257 }
258 #menuv3 ul ul ul li {
259         border-left: 0.2em solid #EBEBEB;
260 }
261 /* Begin non-anchor hover selectors */
262 /* Enter the more specific element (div) selectoron non-anchor hovers for IE5.x to comply with theolder version of csshover.htc - V1.21.041022. Itimproves IE's performance speed to use the olderfile and this method */
263 div#menuv3 h2:hover {
264         background: #EBEBEB;
265         color: #FE5F14;
266 }
267 div#menuv3 li:hover {
268         cursor: pointer;
269         z-index: 100;
270 }
271 div#menuv3 li:hover ul ul, div#menuv3 li li:hover ul ul, div#menuv3 li li li:hover ul ul, div#menuv3 li li li li:hover ul ul {
272         display: none;
273 }
274 div#menuv3 li:hover ul, div#menuv3 li li:hover ul, div#menuv3 li li li:hover ul, div#menuv3 li li li li:hover ul {
275         display: block;
276         position: relativ: left: 10px;
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:black; position: relative; top: 4px }
306 #html-menu div.m:hover,
307 #html-menu div.i:hover { color:blue; background-color: #d1d1d1; 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 @media print {
317   #menuv3, #menuv4, #html-menu, #frame-header, #js-menu {   /* items with this class won't print */
318     display: none;
319   }
320   #content.html-menu { margin-left: 0; }
321 }