source: tapas/web/resources/js/apycom.com-3-orange-red/menu.css @ 848

Last change on this file since 848 was 529, checked in by rboipsl, 12 years ago

V2 orange

File size: 5.4 KB
Line 
1/**
2 *********************************************
3 * Prototype of styles for horizontal CSS-menu
4 * @data 30.06.2009
5 *********************************************
6 * (X)HTML-scheme:
7 *  <div id="menu">
8 *      <ul class="menu">
9 *          <li><a href="#" class="parent"><span>level 1</span></a>
10 *              <ul>
11 *                  <li><a href="#" class="parent"><span>level 2</span></a>
12 *                      <ul><li><a href="#"><span>level 3</span></a></li></ul>
13 *                  </li>
14 *              </ul>
15 *          </li>
16 *          <li class="last"><a href="#"><span>level 1</span></a></li>
17 *      </ul>
18 *  </div>
19 *********************************************
20 */
21
22/* menu::base */
23div#menu {
24    height: 88px;
25    padding-left: 24px;
26    background: url(images/left.png) no-repeat;
27    _background-image: url(images/ie-left.png);
28    width:900px;
29}
30
31div#menu ul {
32    margin: 0;
33    padding: 0;
34    list-style: none;
35    float: left;
36}
37div#menu ul.menu {
38    padding-right: 24px;
39    background: url(images/right.png) no-repeat right 0;
40    _background-image: url(images/ie-right.png);
41}
42
43div#menu li {
44    position: relative;
45    margin: 0;
46    padding: 0 12px 0 0;
47    display: block;
48    float: left;
49    z-index: 9;
50    width: 194px;
51}
52div#menu ul ul li {
53    z-index: 9;
54}
55div#menu li div {
56    list-style: none;
57    float: left;
58    position: absolute;
59    z-index: 11;
60    top: 83px;
61    left: 0;
62    visibility: hidden;
63    width: 194px;
64    padding: 0 0 16px 0;
65    background: url(images/submenu-bottom.png) no-repeat 15px bottom;
66    margin: 1px 0 0 0;
67}
68div#menu li:hover>div {
69    visibility: visible;
70}
71
72div#menu a {
73    position: relative;
74    z-index: 10;
75    height: 41px;
76    display: block;
77    float: left;
78    line-height: 41px;
79    text-decoration: none;
80    margin-top: 1px;
81    white-space: nowrap;
82    width: 178px;
83    padding-right:5px;
84    text-align:center;
85}
86div#menu span {
87    display: block;
88    cursor: pointer;
89    background-repeat: no-repeat;
90    background-position: 95% 0;
91    text-align: center;
92}
93
94/* menu::level1 */
95div#menu a {
96    padding: 0 10px 0 0;
97    line-height: 75px;
98    height: 88px;
99    margin-right: 11px;
100    _margin-right: 1px;
101    text-transform: uppercase;
102    background: none;
103}
104div#menu span {
105    margin-top: 5px;
106    padding-left: 10px;
107    color: #fff;
108    font: normal 22px 'Trebucher MS', Helvetica, Arial, sans-serif;
109    font-weight: bold;
110    background: none;
111    line-height: 75px;
112}
113div#menu a:hover {
114    background: url(images/selected-right.png) no-repeat right 23px;
115}
116div#menu a:hover span {
117    background: url(images/selected-left.png) no-repeat 0 18px;
118}
119div#menu li.current a,
120div#menu ul.menu>li:hover>a {
121    background: url(images/selected-right.png) no-repeat right 23px;
122}
123div#menu li.current a span,
124div#menu ul.menu>li:hover>a span {
125    background: url(images/selected-left.png) no-repeat 0 18px;
126}
127div#menu li {  }
128div#menu li.last { background: none; }
129
130/* menu::level2 */
131div#menu ul ul li {
132    background: none;
133    padding: 0;
134}
135div#menu ul ul {
136    padding-top: 10px;
137    width: 194px;
138    background: url(images/submenu-top.png) no-repeat;
139    _background-image: url(images/ie-submenu-top.gif);
140}
141div#menu ul ul a {
142    padding: 0;
143    height: auto;
144    float: none;
145    display: block;
146    line-height: 26px;
147    font-size: 18px;
148    color: #fff;
149    z-index: -1;
150    padding-left: 5px;
151    white-space: normal;
152    width: 152px;
153    margin-left: 18px;
154    text-transform: none;
155}
156div#menu ul ul a span {
157    line-height: 26px;
158    font-size: 18px;
159}
160div#menu li.current ul a,
161div#menu li.current ul a span {
162    background:none;
163}
164div#menu ul ul a:hover {
165    background: url(images/submenu-selected-bottom.png) no-repeat 5px bottom;
166}
167div#menu ul ul a:hover span {
168    background: url(images/submenu-selected-top.png) no-repeat 0 0;
169}
170div#menu ul ul a.parent {
171    background: url(images/submenu-pointer-bottom.gif) no-repeat 5px bottom;
172}
173div#menu ul ul a.parent span {
174    background: url(images/submenu-pointer-top.png) no-repeat 0 0;
175}
176div#menu ul ul a.parent:hover {
177    background: url(images/submenu-pointer-selected-bottom.png) no-repeat 5px bottom;
178}
179div#menu ul ul a.parent:hover span {
180    background: url(images/submenu-selected-top.png) no-repeat 0 0;
181}
182div#menu ul ul span {
183    margin-top: 0;
184    text-align: left;
185}
186div#menu ul ul li.last { background: none; }
187div#menu ul ul li {
188    width: 100%;
189}
190
191/* menu::level3 */
192div#menu ul ul div {
193    padding-top: 20px;
194    margin: -92px 0 0 157px !important;
195    margin-left: 160px;
196    background: url(images/subsubmenu-top.png) no-repeat 15px 0;
197}
198div#menu ul ul ul {
199    padding-top: 0;
200    background: url(images/submenu-bottom.png) no-repeat 15px bottom;
201}
202div#menu ul ul div li {
203    position:relative;
204    top:-10px;
205}
206
207/* lava lamp */
208div#menu li.back {
209    background: url(images/selected-left.png) no-repeat 0 0;
210    width: 10px;
211    height: 39px;
212    z-index: 8;
213    position: absolute;
214    padding: 0;
215    margin: 24px 0 0 0;
216}
217div#menu li.back .left {
218    padding:0;
219    width:174px;
220    background: url(images/selected-right.png) no-repeat right 0;
221    height: 39px;
222    margin: 0 0 0 14px;
223    float: none;
224    position: relative;
225    top: 0;
226    left: 0;
227    visibility: visible;
228}
229
Note: See TracBrowser for help on using the repository browser.