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