Revision 871a70f0
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
css/kivitendo/menu.css | ||
---|---|---|
4 | 4 |
whiteMenu Hover background color #FFFFE0 |
5 | 5 |
DarkGreensubenu pointer |
6 | 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 | 7 |
body.menuv3 { |
141 | 8 |
behavior: url("css/csshover.htc"); |
142 | 9 |
/*font-size: 14pt;*/ |
... | ... | |
152 | 19 |
/*border: 3px solid;*/ |
153 | 20 |
background-color: #FFFFFF; |
154 | 21 |
color: #000000; |
155 |
margin-top: 0.2em; |
|
156 | 22 |
} |
157 | 23 |
#menuv3 a, #menuv3 h2, #menuv3 div.x { |
158 | 24 |
font-size: 80%; |
... | ... | |
163 | 29 |
margin: 0; |
164 | 30 |
padding: 0.3em 1em; |
165 | 31 |
} |
166 |
#menuv3 h2:before { |
|
167 |
content: " "; |
|
168 |
} |
|
169 |
#menuv3 h2:after { |
|
170 |
content: " "; |
|
171 |
} |
|
172 | 32 |
#menuv3 h2 { |
173 | 33 |
background-color: #ffffff; |
174 | 34 |
color: #000000; |
... | ... | |
277 | 137 |
} |
278 | 138 |
/* End of non-anchor hover selectors */ |
279 | 139 |
|
140 |
li.sub { |
|
141 |
position: relativ; |
|
142 |
left: 0.2em; |
|
143 |
top: 0px; |
|
144 |
background-color: #FFFFFF; |
|
145 |
} |
|
146 |
|
|
280 | 147 |
/* html menu */ |
281 | 148 |
/* types of lines: m sm i (menu submenu item) |
282 | 149 |
each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer) |
... | ... | |
314 | 181 |
body { margin: 0 } |
315 | 182 |
|
316 | 183 |
@media print { |
317 |
#menuv3, #menuv4, #html-menu, #frame-header, #js-menu { /* items with this class won't print */
|
|
184 |
#menuv3, #html-menu, #frame-header, #js-menu { /* items with this class won't print */ |
|
318 | 185 |
display: none; |
319 | 186 |
} |
320 | 187 |
#content.html-menu { margin-left: 0; } |
Auch abrufbar als: Unified diff
Menüsysteme v3 & v4 verschmolzen (Stil von v4, Name & Code von v3)