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