625abec85458472f9107d313a449f1b0a44f6ac8
[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:before {
33         content: " ";
34 }
35 #menuv4 h2:after {
36         content: " ";
37 }
38 #menuv4 h2 {
39         background-color: #ffffff;
40         color: #000000;
41         /*padding: 2px 15px;*/
42 /* Firefox */
43         -moz-border-radius: 0.4em 0.4em 0;
44 /* Safari, Chrome */
45         -webkit-border-radius: 0.4em 0.4em 0;
46 /* Konqueror */
47         -khtml-border-radius: 0.4em 0.4em 0;
48 /* CSS3 */
49         border-radius: 0.4em 0.4em 0 0;
50 /*      behavior: url(border-radius.htc); */
51 }
52 #menuv4 ul:hover h2 {
53         background-color:#DCDCDC;
54 }
55 #menuv4 a, #menuv4 a:visited, #menuv4 div.x, #menuv4 div.x:visited {
56         color: #000000;
57         text-decoration: none;
58         padding-right: 10px;
59 }
60 #menuv4 a {
61         background: #EBEBEB;
62 }
63 #menuv4 div.x, #menuv4 div.x:visited {
64         background-color: #EBEBEB;
65         border-right: 1em solid #FE5F14;
66 }
67 #menuv4 div.x:hover {
68         border-right: none;
69 }
70 #menuv4 a:hover, #menuv4 div.x:hover {
71         color: #FE5F14;
72         background-color: #EBEBEB;
73 }
74 #menuv4 a:active, #menuv4 div.x:active {
75         color: #FE5F14;
76         background-color: #EBEBEB;
77 }
78 #menuv4 ul {
79         list-style: none;
80         margin: 0;
81         padding: 0;
82         float: left;
83 }
84
85 #menuv4 li {
86         position: relative;
87         float: none;
88         border: 0;
89 }
90 li.sub {
91         position: relativ;
92         left: 0.2em;
93         top: 0px;
94         background-color: #FFFFFF;
95 }
96 /* 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 */
97 #menuv4 ul li {
98         /* border: solid;
99         border-color: #991900;
100         border-width: 0 0 1px 0;
101 */
102 }
103 #menuv4 ul ul {
104         padding: 0 2em 2em 2em;
105         margin: 0 -2em -2em -2em;
106 }
107 #menuv4 ul ul li {
108         /*padding-top: 0.01em;*/
109         background-color: #FFFFFF;
110 }
111 /* 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. */
112 #menuv4 ul ul {
113         position: absolute;
114         z-index: 500;
115         top: auto;
116         display: none;
117 }
118 #menuv4 ul ul ul {
119         top: 0;
120         left: 99%;
121         padding: 2em;
122         margin: -2em;
123 }
124 #menuv4 ul ul ul li {
125         border-left: 0.2em solid #EBEBEB;
126 }
127 /* Begin non-anchor hover selectors */
128 /* 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 */
129 div#menuv4 h2:hover {
130         background: #EBEBEB;
131         color: #FE5F14;
132 }
133 div#menuv4 li:hover {
134         cursor: pointer;
135         z-index: 100;
136 }
137 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 {
138         display: none;
139 }
140 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 {
141         display: block;
142         position: relativ: left: 10px;
143 }
144 /* End of non-anchor hover selectors */
145
146 body.menuv3 {
147         behavior: url("css/csshover.htc");
148         /*font-size: 14pt;*/
149         line-height: 20pt;
150         font-family: Verdana, Geneva, Tahoma, sans-serif;
151         background-color: #FFFFFF;
152         color: #000000;
153 }
154 #menuv3 {
155         /*font-size: 85%;*/
156         width: 99.8%;
157         float: left;
158         /*border: 3px solid;*/
159         background-color: #FFFFFF;
160         color: #000000;
161         margin-top: 0.2em;
162 }
163 #menuv3 a, #menuv3 h2, #menuv3 div.x {
164         font-size: 80%;
165         line-height: 120%;
166         display: block;
167         border: 0;
168         white-space: nowrap;
169         margin: 0;
170         padding: 0.3em 1em;
171 }
172 #menuv3 h2:before {
173         content: " ";
174 }
175 #menuv3 h2:after {
176         content: " ";
177 }
178 #menuv3 h2 {
179         background-color: #ffffff;
180         color: #000000;
181         /*padding: 2px 15px;*/
182 /* Firefox */
183         -moz-border-radius: 0.4em 0.4em 0;
184 /* Safari, Chrome */
185         -webkit-border-radius: 0.4em 0.4em 0;
186 /* Konqueror */
187         -khtml-border-radius: 0.4em 0.4em 0;
188 /* CSS3 */
189         border-radius: 0.4em 0.4em 0 0;
190 /*      behavior: url(border-radius.htc); */
191 }
192 #menuv3 ul:hover h2 {
193         background-color:#DCDCDC;
194 }
195 #menuv3 a, #menuv3 a:visited, #menuv3 div.x, #menuv3 div.x:visited {
196         color: #000000;
197         text-decoration: none;
198         padding-right: 10px;
199 }
200 #menuv3 a {
201         background: #EBEBEB;
202 }
203 #menuv3 div.x, #menuv3 div.x:visited {
204         background-color: #EBEBEB;
205         border-right: 1em solid #FE5F14;
206 }
207 #menuv3 div.x:hover {
208         border-right: none;
209 }
210 #menuv3 a:hover, #menuv3 div.x:hover {
211         color: #FE5F14;
212         background-color: #EBEBEB;
213 }
214 #menuv3 a:active, #menuv3 div.x:active {
215         color: #FE5F14;
216         background-color: #EBEBEB;
217 }
218 #menuv3 ul {
219         list-style: none;
220         margin: 0;
221         padding: 0;
222         float: left;
223 }
224
225 #menuv3 li {
226         position: relative;
227         float: none;
228         border: 0;
229 }
230 li.sub {
231         position: relativ;
232         left: 0.2em;
233         top: 0px;
234         background-color: #FFFFFF;
235 }
236 /* 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 */
237 #menuv3 ul li {
238         /* border: solid;
239         border-color: #991900;
240         border-width: 0 0 1px 0;
241 */
242 }
243 #menuv3 ul ul {
244         padding: 0 2em 2em 2em;
245         margin: 0 -2em -2em -2em;
246 }
247 #menuv3 ul ul li {
248         /*padding-top: 0.01em;*/
249         background-color: #FFFFFF;
250 }
251 /* 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. */
252 #menuv3 ul ul {
253         position: absolute;
254         z-index: 500;
255         top: auto;
256         display: none;
257 }
258 #menuv3 ul ul ul {
259         top: 0;
260         left: 99%;
261         padding: 2em;
262         margin: -2em;
263 }
264 #menuv3 ul ul ul li {
265         border-left: 0.2em solid #EBEBEB;
266 }
267 /* Begin non-anchor hover selectors */
268 /* 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 */
269 div#menuv3 h2:hover {
270         background: #EBEBEB;
271         color: #FE5F14;
272 }
273 div#menuv3 li:hover {
274         cursor: pointer;
275         z-index: 100;
276 }
277 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 {
278         display: none;
279 }
280 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 {
281         display: block;
282         position: relativ: left: 10px;
283 }
284 /* End of non-anchor hover selectors */
285
286 /* html menu */
287 /* types of lines: m sm i (menu submenu item)
288    each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer)
289    and one mic (menu-item-chunk)
290    indenting is done with the levels s0, s1, s2 */
291 #content.html-menu, #html-menu {
292   transition:         margin-left 0.2s, width 0.2s;
293   -moz-transition:    margin-left 0.2s, width 0.2s;
294   -webkit-transition: margin-left 0.2s, width 0.2s;
295   -o-transition:      margin-left 0.2s, width 0.2s;
296 }
297 #content.html-menu { margin-left: 190px; }
298 #content.html-menu.folded { margin-left: 40px }
299 #html-menu.folded:hover + #content.html-menu.folded { margin-left: 190px }
300 #html-menu { float:left; width: 183px; font-size: 8pt; margin-top: 10px; overflow:hidden; }
301 #html-menu.folded { width: 32px; }
302 #html-menu.folded:hover { width: 183px; }
303 #html-menu div.mi { margin-top: 4px; margin-bottom: 3px; white-space: nowrap; clear:both; position:relative; }
304 #html-menu div.sm { font-weight: bold }
305 #html-menu img { vertical-align: top; border: 0; }
306 #html-menu a { vertical-align: top }
307 #html-menu .i span.ms { float: left; width: 24px; margin-bottom: 4px; }
308 #html-menu .m span.ms { float: left; width: 32px }
309 #html-menu .sm span.ms { float: left; width: 24px; background: url(../../image/unterpunkt.png); }
310 #html-menu div.m { height: 24px }
311 #html-menu div.m span.mic { color:black; position: relative; top: 4px }
312 #html-menu div.m:hover,
313 #html-menu div.i:hover { color:blue; background-color: #d1d1d1; cursor: pointer; }
314 #html-menu span.mic { white-space: normal; display: inline-block; vertical-align: top; line-height: 1.2; }
315 #html-menu a.ml span.mic { width: 145px } /* fix deep indents */
316 #html-menu div.s0 { padding-left: 2px }
317 #html-menu div.s1 { padding-left: 8px }
318 #html-menu div.s2 { padding-left: 16px }
319
320 body { margin: 0 }
321
322 @media print {
323   #menuv3, #menuv4, #html-menu, #frame-header, #js-menu {   /* items with this class won't print */
324     display: none;
325   }
326   #content.html-menu { margin-left: 0; }
327 }