ActionBar: Scrolling von ausgeklapptem HTML MenĂ¼ gefixt
[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 #main_menu_div {
27   background-color: #d0cfc9
28 }
29
30 #main_menu_div ~ div.layout-actionbar {
31   top: 45px;
32 }
33
34 #main_menu_div ~ #content {
35   padding-top: 25px;
36 }
37 #main_menu_div ~ div.layout-actionbar ~ #content {
38   padding-top: 54px;
39 }
40
41 #menuv3 {
42   width: 100%;
43   position: fixed;
44   background-color: #d0cfc9;
45   border-color:#ccc #888 #555 #bbb;
46   z-index: 30;
47 }
48
49 #menuv3 ~ div.layout-actionbar {
50   top: 40px;
51 }
52 #menuv3  ~ #content {
53   padding-top: 35px;
54 }
55 #menuv3 ~ div.layout-actionbar ~ #content {
56   padding-top: 64px;
57 }
58
59 #menuv3 a, #menuv3 h2, #menuv3 div.x {
60 font-size:13px;
61 font-weight: normal;
62 display:block;
63 border:0;
64 border-right:1px;
65 border-style:solid;
66 border-color:#ccc #888 #555 #bbb;
67 white-space:nowrap;
68 margin:0;
69 padding:1px 0 1px 3px;
70 }
71
72 #menuv3 h2 {
73 color: black;
74 padding:2px 10px;
75 }
76
77 #menuv3 a, #menuv3 a:visited, #menuv3 div.x, #menuv3 div.x:visited {
78 color:#000;
79 text-decoration:none;
80 padding-right:10px;
81 }
82
83 #menuv3 a {
84 background:#eee;
85 }
86 #menuv3 div.x, #menuv3 div.x:visited {
87 background:#eee url(../../image/right.gif) no-repeat right;
88 }
89
90 #menuv3 a:hover, #menuv3 div.x:hover {
91 /*color:#a00;
92 background-color:#ddd;*/
93   background-color: #c6c39b;
94 }
95
96 #menuv3 a:active, #menuv3 div.x:active {
97 color:#000;
98 background-color:#c6c39b;
99 }
100
101 #menuv3 ul {
102 list-style:none;
103 margin:0;
104 padding:0;
105 float:left;
106 }
107
108 #menuv3 li {
109 position:relative;
110 float:none;
111 border:0;
112 border-width:0 0 1px 0;
113 }
114
115 /* IE6 spacing bug fix, <li>s without a bottom border get spaced to far
116  * correction: the bug will change the height of the parent element! this will also cause the whole menu to grow
117  * 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
118  * a bottom border, which just looks ugly
119  * the trick: color the bottom border with the same color as the bottom pixel of the background image - noone notices */
120 #menuv3 ul li {
121 border:solid;
122 border-color:#ccd5e5;
123 border-width:0 0 1px 0;
124 }
125
126 #menuv3 ul ul li {
127 border:solid;
128 border-width:0 0 1px 0;
129 }
130
131 /* IE6 event bug fix, without a background there hovers will be occassionally lost between the li's to the layer below
132  * causing the menu to close. Opera 9 has the same bug btw. */
133 #menuv3 ul ul {
134 position:absolute;
135 z-index: 500;
136 display:none;
137 }
138
139 #menuv3 ul ul ul {
140 top:0;
141 left:90%;
142 }
143
144 /* Begin non-anchor hover selectors */
145
146 /* Enter the more specific element (div) selector
147 on non-anchor hovers for IE5.x to comply with the
148 older version of csshover.htc - V1.21.041022. It
149 improves IE's performance speed to use the older
150 file and this method */
151
152 div#menuv3 h2:hover {
153 background:#c6c39b;
154 color:#000;
155 }
156
157 div#menuv3 li:hover {
158 cursor:pointer;
159 }
160
161 div#menuv3 li:hover ul ul,
162 div#menuv3 li li:hover ul ul,
163 div#menuv3 li li li:hover ul ul,
164 div#menuv3 li li li li:hover ul ul
165 {display:none;}
166
167 div#menuv3 li:hover ul,
168 div#menuv3 li li:hover ul,
169 div#menuv3 li li li:hover ul,
170 div#menuv3 li li li li:hover ul
171 {display:block;}
172
173 /* End of non-anchor hover selectors */
174
175 /* html menu */
176 /* types of lines: m sm i (menu submenu item)
177    each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer)
178    and one mic (menu-item-chunk)
179    indenting is done with the levels s0, s1, s2 */
180 #html-menu-container {
181   position: fixed;
182   bottom: 0%;
183   top: 0%;
184 }
185
186 #html-menu {
187   overflow-y: scroll;
188   height: 100%;
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; }
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; overflow:hidden; }
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 }