64b7882f5f5418f80185fcd59235a90fe807dbd3
[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 /* #main_menu_div { */
8 /*   background-color: #d0cfc9 */
9 /* } */
10
11 #main_menu_div ~ div.layout-actionbar {
12   top: 45px;
13 }
14
15 #main_menu_div ~ #content {
16   padding-top: 25px;
17 }
18 #main_menu_div ~ div.layout-actionbar ~ #content {
19   padding-top: 54px;
20 }
21
22 body.menuv3 {
23         behavior: url("css/csshover.htc");
24         /*font-size: 14pt;*/
25         line-height: 20pt;
26         font-family: Verdana, Geneva, Tahoma, sans-serif;
27         background-color: #FFFFFF;
28         color: #000000;
29 }
30 #menuv3 {
31         background-color: #FFFFFF;
32         color: #000000;
33   width: 100%;
34   position: fixed;
35   z-index: 30;
36 }
37
38 #menuv3 ~ div.layout-actionbar {
39   top: 40px;
40 }
41
42 #menuv3  ~ #content {
43   padding-top: 35px;
44 }
45
46 #menuv3 ~ div.layout-actionbar ~ #content {
47   padding-top: 64px;
48 }
49
50 #menuv3 a, #menuv3 h2, #menuv3 div.x {
51         font-size: 80%;
52         line-height: 120%;
53         display: block;
54         border: 0;
55         white-space: nowrap;
56         margin: 0;
57         padding: 0.3em 1em;
58 }
59 #menuv3 h2 {
60         background-color: #ffffff;
61         color: #000000;
62         /*padding: 2px 15px;*/
63 /* Firefox */
64         -moz-border-radius: 0.4em 0.4em 0;
65 /* Safari, Chrome */
66         -webkit-border-radius: 0.4em 0.4em 0;
67 /* Konqueror */
68         -khtml-border-radius: 0.4em 0.4em 0;
69 /* CSS3 */
70         border-radius: 0.4em 0.4em 0 0;
71 /*      behavior: url(border-radius.htc); */
72 }
73 #menuv3 ul:hover h2 {
74         background-color:#DCDCDC;
75 }
76 #menuv3 a, #menuv3 a:visited, #menuv3 div.x, #menuv3 div.x:visited {
77         color: #000000;
78         text-decoration: none;
79         padding-right: 10px;
80 }
81 #menuv3 a {
82         background: #EBEBEB;
83 }
84 #menuv3 div.x, #menuv3 div.x:visited {
85         background-color: #EBEBEB;
86         border-right: 1em solid #FE5F14;
87 }
88 #menuv3 div.x:hover {
89         border-right: none;
90 }
91 #menuv3 a:hover, #menuv3 div.x:hover {
92         color: #FE5F14;
93         background-color: #EBEBEB;
94 }
95 #menuv3 a:active, #menuv3 div.x:active {
96         color: #FE5F14;
97         background-color: #EBEBEB;
98 }
99 #menuv3 ul {
100         list-style: none;
101         margin: 0;
102         padding: 0;
103         float: left;
104 }
105
106 #menuv3 li {
107         position: relative;
108         float: none;
109         border: 0;
110   border-width:0 0 1px 0;
111 }
112 li.sub {
113         position: relativ;
114         left: 0.2em;
115         top: 0px;
116         background-color: #FFFFFF;
117 }
118 /* 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 */
119 #menuv3 ul li {
120         /* border: solid;
121         border-color: #991900;
122         border-width: 0 0 1px 0;
123 */
124 }
125 #menuv3 ul ul {
126         padding: 0 2em 2em 2em;
127         margin: 0 -2em -2em -2em;
128 }
129 #menuv3 ul ul li {
130         /*padding-top: 0.01em;*/
131         background-color: #FFFFFF;
132 }
133 /* 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. */
134 #menuv3 ul ul {
135         position: absolute;
136         z-index: 500;
137         display: none;
138 }
139 #menuv3 ul ul ul {
140         top: 0;
141         left: 99%;
142         padding: 2em;
143         margin: -2em;
144 }
145 #menuv3 ul ul ul li {
146         border-left: 0.2em solid #EBEBEB;
147 }
148 /* Begin non-anchor hover selectors */
149 /* 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 */
150 div#menuv3 h2:hover {
151         background: #EBEBEB;
152         color: #FE5F14;
153 }
154 div#menuv3 li:hover {
155         cursor: pointer;
156 }
157 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 {
158         display: none;
159 }
160 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 {
161         display: block;
162         position: relativ: left: 10px;
163 }
164 /* End of non-anchor hover selectors */
165
166 li.sub {
167         position: relativ;
168         left: 0.2em;
169         top: 0px;
170         background-color: #FFFFFF;
171 }
172
173 /* html menu */
174 /* types of lines: m sm i (menu submenu item)
175    each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer)
176    and one mic (menu-item-chunk)
177    indenting is done with the levels s0, s1, s2 */
178 #html-menu-container {
179   position: fixed;
180   bottom: 0%;
181   top: 0%;
182 }
183
184 #html-menu {
185   overflow-y: scroll;
186   height: 100%;
187   transition:         margin-left 0.2s, width 0.2s;
188   -moz-transition:    margin-left 0.2s, width 0.2s;
189   -webkit-transition: margin-left 0.2s, width 0.2s;
190   -o-transition:      margin-left 0.2s, width 0.2s;
191 }
192 div.layout-split-right { margin-left: 190px; }
193 div.layout-split-right.folded { margin-left: 40px }
194 #html-menu.folded:hover + div.layout-split-right.folded { margin-left: 190px }
195 #html-menu { float:left; width: 183px; font-size: 8pt; margin-top: 10px; overflow:hidden; }
196 #html-menu.folded { width: 32px; }
197 #html-menu.folded:hover { width: 183px; }
198 #html-menu div.mi { margin-top: 4px; margin-bottom: 3px; white-space: nowrap; clear:both; position:relative; }
199 #html-menu div.sm { font-weight: bold }
200 #html-menu img { vertical-align: top; border: 0; }
201 #html-menu a { vertical-align: top }
202 #html-menu .i span.ms { float: left; width: 24px; margin-bottom: 4px; }
203 #html-menu .m span.ms { float: left; width: 32px }
204 #html-menu .sm span.ms { float: left; width: 24px; background: url(../../image/unterpunkt.png); }
205 #html-menu div.m { height: 24px }
206 #html-menu div.m span.mic { color:black; position: relative; top: 4px }
207 #html-menu div.m:hover,
208 #html-menu div.i:hover { color:blue; background-color: #d1d1d1; cursor: pointer; }
209 #html-menu span.mic { white-space: normal; display: inline-block; vertical-align: top; line-height: 1.2; }
210 #html-menu a.ml span.mic { width: 145px } /* fix deep indents */
211 #html-menu div.s0 { padding-left: 2px }
212 #html-menu div.s1 { padding-left: 8px }
213 #html-menu div.s2 { padding-left: 16px }
214
215 body { margin: 0 }
216
217 @media print {
218   #menuv3, #html-menu, #frame-header, #main_menu_div, #js-header {   /* items with this class won't print */
219     display: none;
220   }
221   #content.html-menu { margin-left: 0; }
222 }