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