5eec39f84f0c9a22653c38344d9baad5799b9c86
[kivitendo-erp.git] / css / lx-office-erp / menu.css
1
2 body.menu {
3   font-family: Verdana, Arial, Helvetica, sans-serif;
4   font-size: 80%;
5   color: black;
6 }
7
8 table.menunew {
9   border: 0;
10   width: 100%;
11   background-color: #f0efde;
12   border-spacing: 0;
13 }
14
15 table.menunew td {
16   padding: 0;
17   color:black;
18   font-family: Verdana, Arial, sans-serif;
19 }
20
21 body.menunew {
22   padding:0px;
23   margin:0px;
24 }
25
26 div.layout-actionbar ~ #content {
27   padding-top: 32px;
28 }
29
30 #main_menu_div {
31   background-color: #d0cfc9
32 }
33
34 #main_menu_div ~ div.layout-actionbar {
35   top: 45px;
36 }
37
38 #main_menu_div ~ #content {
39   padding-top: 25px;
40 }
41 #main_menu_div ~ div.layout-actionbar ~ #content {
42   padding-top: 54px;
43 }
44
45 #menuv3 {
46   width: 100%;
47   position: fixed;
48   background-color: #d0cfc9;
49   border-color:#ccc #888 #555 #bbb;
50   z-index: 30;
51 }
52
53 #menuv3 ~ div.layout-actionbar {
54   top: 40px;
55 }
56 #menuv3  ~ #content {
57   padding-top: 35px;
58 }
59 #menuv3 ~ div.layout-actionbar ~ #content {
60   padding-top: 64px;
61 }
62
63 #menuv3 a, #menuv3 h2, #menuv3 div.x {
64 font-size:13px;
65 font-weight: normal;
66 display:block;
67 border:0;
68 border-right:1px;
69 border-style:solid;
70 border-color:#ccc #888 #555 #bbb;
71 white-space:nowrap;
72 margin:0;
73 padding:1px 0 1px 3px;
74 }
75
76 #menuv3 h2 {
77 color: black;
78 padding:2px 10px;
79 }
80
81 #menuv3 a, #menuv3 a:visited, #menuv3 div.x, #menuv3 div.x:visited {
82 color:#000;
83 text-decoration:none;
84 padding-right:10px;
85 }
86
87 #menuv3 a {
88 background:#eee;
89 }
90 #menuv3 div.x, #menuv3 div.x:visited {
91 background:#eee url(../../image/right.gif) no-repeat right;
92 }
93
94 #menuv3 a:hover, #menuv3 div.x:hover {
95 /*color:#a00;
96 background-color:#ddd;*/
97   background-color: #c6c39b;
98 }
99
100 #menuv3 a:active, #menuv3 div.x:active {
101 color:#000;
102 background-color:#c6c39b;
103 }
104
105 #menuv3 ul {
106 list-style:none;
107 margin:0;
108 padding:0;
109 float:left;
110 }
111
112 #menuv3 li {
113 position:relative;
114 float:none;
115 border:0;
116 border-width:0 0 1px 0;
117 }
118
119 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far
120  * correction: the bug will change the height of the parent element! this will also cause the whole menu to grow
121  * 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
122  * a bottom border, which just looks ugly
123  * the trick: color the bottom border with the same color as the bottom pixel of the background image - noone notices */
124 #menuv3 ul li {
125 border:solid;
126 border-color:#ccd5e5;
127 border-width:0 0 1px 0;
128 }
129
130 #menuv3 ul ul li {
131 border:solid;
132 border-width:0 0 1px 0;
133 }
134
135 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below
136  * causing the menu to close. Opera 9 has the same bug btw. */
137 #menuv3 ul ul {
138 position:absolute;
139 z-index: 500;
140 display:none;
141 }
142
143 #menuv3 ul ul ul {
144 top:0;
145 left:90%;
146 }
147
148 /* Begin non-anchor hover selectors */
149
150 /* Enter the more specific element (div) selector
151 on non-anchor hovers for IE5.x to comply with the
152 older version of csshover.htc - V1.21.041022. It
153 improves IE's performance speed to use the older
154 file and this method */
155
156 div#menuv3 h2:hover {
157 background:#c6c39b;
158 color:#000;
159 }
160
161 div#menuv3 li:hover {
162 cursor:pointer;
163 }
164
165 div#menuv3 li:hover ul ul,
166 div#menuv3 li li:hover ul ul,
167 div#menuv3 li li li:hover ul ul,
168 div#menuv3 li li li li:hover ul ul
169 {display:none;}
170
171 div#menuv3 li:hover ul,
172 div#menuv3 li li:hover ul,
173 div#menuv3 li li li:hover ul,
174 div#menuv3 li li li li:hover ul
175 {display:block;}
176
177 /* End of non-anchor hover selectors */
178
179 /* html menu */
180 /* types of lines: m sm i (menu submenu item)
181    each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer)
182    and one mic (menu-item-chunk)
183    indenting is done with the levels s0, s1, s2 */
184 #html-menu {
185   position: fixed;
186   overflow-y: scroll;
187   overflow-x: hidden;
188   height: 95%;
189   transition:         margin-left 0.2s, width 0.2s;
190   -moz-transition:    margin-left 0.2s, width 0.2s;
191   -webkit-transition: margin-left 0.2s, width 0.2s;
192   -o-transition:      margin-left 0.2s, width 0.2s;
193 }
194
195 div.layout-split-right { margin-left: 190px; height: 100%; }
196 div.layout-split-right.folded { margin-left: 40px }
197 #html-menu.folded:hover + #content.layout-split-right.folded { margin-left: 190px }
198 #html-menu { float:left; width: 183px; font-size: 85%; margin-top: 10px; }
199 #html-menu.folded { width: 32px; }
200 #html-menu.folded:hover { width: 183px; }
201 #html-menu div.mi { margin-top: 4px; margin-bottom: 3px; white-space: nowrap; clear:both; position:relative; }
202 #html-menu div.sm { font-weight: bold }
203 #html-menu img { vertical-align: top; border: 0; }
204 #html-menu a { vertical-align: top }
205 #html-menu .i span.ms { float: left; width: 24px; margin-bottom: 4px; }
206 #html-menu .m span.ms { float: left; width: 32px }
207 #html-menu .sm span.ms { float: left; width: 24px; background: url(../../image/unterpunkt.png); }
208 #html-menu div.m { height: 24px }
209 #html-menu div.m span.mic { color:blue; position: relative; top: 4px }
210 #html-menu div.m:hover,
211 #html-menu div.i:hover { color:blue; background-color: lemonchiffon; cursor: pointer; }
212 #html-menu span.mic { white-space: normal; display: inline-block; vertical-align: top; line-height: 1.2; }
213 #html-menu a.ml span.mic { width: 145px } /* fix deep indents */
214 #html-menu div.s0 { padding-left: 2px }
215 #html-menu div.s1 { padding-left: 8px }
216 #html-menu div.s2 { padding-left: 16px }
217
218 body { margin: 0 }
219
220
221 @media print {
222   #menuv3, #html-menu, #frame-header, #main_menu_div, #js-header {   /* items with this class won't print */
223     display: none;
224   }
225   #content.html-menu { margin-left: 0; }
226 }