cbe012cc15340d5e665d8896ab7495bd0a516ebc
[kivitendo-erp.git] / css / kivitendo / 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_kivi_titel.png");
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_kivi_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:2px 10px;
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 #menuv3 div.x, #menuv3 div.x:visited {
67 background:#eee url(../../image/right.gif) no-repeat right;
68 }
69
70 #menuv3 a:hover, #menuv3 div.x:hover {
71 color:#a00;
72 background-color:#ddd;
73 }
74
75 #menuv3 a:active, #menuv3 div.x:active {
76 color:#060;
77 background-color:#ccc;
78 }
79
80 #menuv3 ul {
81 list-style:none;
82 margin:0;
83 padding:0;
84 float:left;
85 }
86
87 #menuv3 li {
88 position:relative;
89 float:none;
90 border:0;
91 }
92
93 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far
94  * correction: the bug will change the height of the parent element! this will also cause the whole menu to grow
95  * 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
96  * a bottom border, which just looks ugly
97  * the trick: color the bottom border with the same color as the bottom pixel of the background image - noone notices */
98 #menuv3 ul li {
99 border:solid;
100 border-color:#ccd5e5;
101 border-width:0 0 1px 0;
102 }
103
104 #menuv3 ul ul li {
105 border:solid;
106 border-width:0 0 1px 0;
107 }
108
109 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below
110  * causing the menu to close. Opera 9 has the same bug btw. */
111 #menuv3 ul ul {
112 position:absolute;
113 z-index:500;
114 top:auto;
115 display:none;
116 }
117
118 #menuv3 ul ul ul {
119 top:0;
120 left:90%;
121 }
122
123 /* Begin non-anchor hover selectors */
124
125 /* Enter the more specific element (div) selector
126 on non-anchor hovers for IE5.x to comply with the
127 older version of csshover.htc - V1.21.041022. It
128 improves IE's performance speed to use the older
129 file and this method */
130
131 div#menuv3 h2:hover {
132 background:##94b150;
133 color:#a00;
134 }
135
136 div#menuv3 li:hover {
137 cursor:pointer;
138 z-index:100;
139 }
140
141 div#menuv3 li:hover ul ul,
142 div#menuv3 li li:hover ul ul,
143 div#menuv3 li li li:hover ul ul,
144 div#menuv3 li li li li:hover ul ul
145 {display:none;}
146
147 div#menuv3 li:hover ul,
148 div#menuv3 li li:hover ul,
149 div#menuv3 li li li:hover ul,
150 div#menuv3 li li li li:hover ul
151 {display:block;}
152
153 /* End of non-anchor hover selectors */
154
155 /* html menu */
156 /* types of lines: m sm i (menu submenu item)
157    each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer)
158    and one mic (menu-item-chunk)
159    indenting is done with the levels s0, s1, s2 */
160 #content.html-menu, #html-menu {
161   transition:         margin-left 0.2s, width 0.2s;
162   -moz-transition:    margin-left 0.2s, width 0.2s;
163   -webkit-transition: margin-left 0.2s, width 0.2s;
164   -o-transition:      margin-left 0.2s, width 0.2s;
165 }
166 #content.html-menu { margin-left: 190px; }
167 #content.html-menu.folded { margin-left: 40px }
168 #html-menu.folded:hover + #content.html-menu.folded { margin-left: 190px }
169 #html-menu { float:left; width: 183px; font-size: 8pt; margin-top: 10px; overflow:hidden; }
170 #html-menu.folded { width: 32px; }
171 #html-menu.folded:hover { width: 183px; }
172 #html-menu div.mi { margin-top: 4px; margin-bottom: 3px; white-space: nowrap; clear:both; position:relative; }
173 #html-menu div.sm { font-weight: bold; color: #597d12; }
174 #html-menu img { vertical-align: top; border: 0; }
175 #html-menu a { vertical-align: top }
176 #html-menu .i span.ms { float: left; width: 24px; margin-bottom: 4px; }
177 #html-menu .m span.ms { float: left; width: 32px }
178 #html-menu .sm span.ms { float: left; width: 24px; background: url(../../image/unterpunkt.png); }
179 #html-menu div.m { height: 24px }
180 #html-menu div.m span.mic { color:#597d12; position: relative; top: 4px }
181 #html-menu div.m:hover,
182 #html-menu div.i:hover { color:#fe5f14; background-color: #bec6a2; cursor: pointer; }
183 #html-menu span.mic { white-space: normal; display: inline-block; vertical-align: top; line-height: 1.2; }
184 #html-menu a.ml span.mic { width: 145px } /* fix deep indents */
185 #html-menu div.s0 { padding-left: 2px }
186 #html-menu div.s1 { padding-left: 8px }
187 #html-menu div.s2 { padding-left: 16px }
188
189 body { margin: 0 }
190
191
192 @media print {
193   #menuv3, #html-menu, #frame-header, #main_menu_div, #js-header {   /* items with this class won't print */
194     display: none;
195   }
196   #content.html-menu { margin-left: 0; }
197 }