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 */ |
---|
23 | div#menu { |
---|
24 | height:41px; |
---|
25 | background:url(images/main-bg.png) repeat-x; |
---|
26 | } |
---|
27 | |
---|
28 | div#menu ul { |
---|
29 | margin: 0; |
---|
30 | padding: 0; |
---|
31 | list-style: none; |
---|
32 | float: left; |
---|
33 | } |
---|
34 | div#menu ul.menu { |
---|
35 | padding-left: 30px; |
---|
36 | } |
---|
37 | |
---|
38 | div#menu li { |
---|
39 | position: relative; |
---|
40 | z-index: 9; |
---|
41 | margin: 0; |
---|
42 | padding: 0 5px 0 0; |
---|
43 | display: block; |
---|
44 | float: left; |
---|
45 | } |
---|
46 | div#menu li:hover>ul { |
---|
47 | left: -2px; |
---|
48 | } |
---|
49 | |
---|
50 | div#menu a { |
---|
51 | position: relative; |
---|
52 | z-index: 10; |
---|
53 | height: 41px; |
---|
54 | display: block; |
---|
55 | float: left; |
---|
56 | line-height: 41px; |
---|
57 | text-decoration: none; |
---|
58 | font: normal 12px Trebuchet MS; |
---|
59 | } |
---|
60 | div#menu a:hover, div#menu a:hover span { color: #fff; } |
---|
61 | div#menu li.current a {} |
---|
62 | |
---|
63 | div#menu span { |
---|
64 | display: block; |
---|
65 | cursor: pointer; |
---|
66 | background-repeat: no-repeat; |
---|
67 | background-position: 95% 0; |
---|
68 | } |
---|
69 | div#menu ul ul a.parent span { |
---|
70 | background-position:95% 8px; |
---|
71 | background-image: url(images/item-pointer.gif); |
---|
72 | } |
---|
73 | div#menu ul ul a.parent:hover span { |
---|
74 | background-image: url(images/item-pointer-mover.gif); |
---|
75 | } |
---|
76 | |
---|
77 | /* menu::level1 */ |
---|
78 | div#menu a { |
---|
79 | padding: 0 10px 0 10px; |
---|
80 | line-height: 30px; |
---|
81 | color: #e5e5e5; |
---|
82 | } |
---|
83 | div#menu span { |
---|
84 | margin-top: 5px; |
---|
85 | }/**@replace#1*/ |
---|
86 | div#menu li { background: url(images/main-delimiter.png) 98% 4px no-repeat; } |
---|
87 | div#menu li.last { background: none; } |
---|
88 | |
---|
89 | /* menu::level2 */ |
---|
90 | div#menu ul ul li { background: none; } |
---|
91 | div#menu ul ul { |
---|
92 | position: absolute; |
---|
93 | top: 38px; |
---|
94 | left: -999em; |
---|
95 | width: 163px; |
---|
96 | padding: 5px 0 0 0; |
---|
97 | background: rgb(45,45,45); |
---|
98 | margin-top:1px; |
---|
99 | } |
---|
100 | div#menu ul ul a { |
---|
101 | padding: 0 0 0 15px; |
---|
102 | height: auto; |
---|
103 | float: none; |
---|
104 | display: block; |
---|
105 | line-height: 24px; |
---|
106 | color: rgb(169,169,169); |
---|
107 | } |
---|
108 | div#menu ul ul span { |
---|
109 | margin-top: 0; |
---|
110 | padding-right: 15px; |
---|
111 | _padding-right: 20px; |
---|
112 | color: rgb(169,169,169); |
---|
113 | } |
---|
114 | div#menu ul ul a:hover span { |
---|
115 | color: #fff; |
---|
116 | } |
---|
117 | div#menu ul ul li.last { background: none; } |
---|
118 | div#menu ul ul li { |
---|
119 | width: 100%; |
---|
120 | } |
---|
121 | |
---|
122 | /* menu::level3 */ |
---|
123 | div#menu ul ul ul { |
---|
124 | padding: 0; |
---|
125 | margin: -38px 0 0 163px !important; |
---|
126 | margin-left:172px; |
---|
127 | } |
---|
128 | |
---|
129 | /* colors */ |
---|
130 | div#menu ul ul ul { background: rgb(41,41,41); } |
---|
131 | div#menu ul ul ul ul { background: rgb(38,38,38); } |
---|
132 | div#menu ul ul ul ul { background: rgb(35,35,35); } |
---|
133 | |
---|
134 | /* lava lamp */ |
---|
135 | div#menu li.back { |
---|
136 | background: url(images/lava.png) no-repeat right -44px !important; |
---|
137 | background-image: url(images/lava.gif); |
---|
138 | width: 13px; |
---|
139 | height: 44px; |
---|
140 | z-index: 8; |
---|
141 | position: absolute; |
---|
142 | margin: -1px 0 0 -5px; |
---|
143 | } |
---|
144 | div#menu li.back .left { |
---|
145 | background: url(images/lava.png) no-repeat top left !important; |
---|
146 | background-image: url(images/lava.gif); |
---|
147 | height: 44px; |
---|
148 | margin-right: 8px; |
---|
149 | } |
---|
150 | |
---|