[387] | 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 | * <div><ul> |
---|
| 11 | * <li><a href="#" class="parent"><span>level 2</span></a> |
---|
| 12 | * <div><ul><li><a href="#"><span>level 3</span></a></li></ul></div> |
---|
| 13 | * </li> |
---|
| 14 | * </ul></div> |
---|
| 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 { |
---|
[388] | 24 | height: 43px; |
---|
[387] | 25 | padding-left: 6px; |
---|
| 26 | background: url(images/left.png) no-repeat; |
---|
| 27 | _background: url(images/left.gif) no-repeat; |
---|
| 28 | width: auto; |
---|
[481] | 29 | padding-top:20px; |
---|
[387] | 30 | } |
---|
| 31 | |
---|
| 32 | div#menu ul { |
---|
| 33 | margin: 0; |
---|
| 34 | padding: 0; |
---|
| 35 | list-style: none; |
---|
| 36 | float: left; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | div#menu ul.menu { |
---|
| 40 | padding-right: 6px; |
---|
| 41 | background: url(images/right.png) no-repeat right 0; |
---|
| 42 | _background: url(images/right.gif) no-repeat right 0; |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | div#menu li { |
---|
| 46 | position: relative; |
---|
| 47 | margin: 0; |
---|
| 48 | padding: 0 0px 0 0; |
---|
| 49 | display: block; |
---|
| 50 | float: left; |
---|
| 51 | z-index: 9; |
---|
| 52 | width: auto; |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | div#menu ul ul li { |
---|
| 56 | z-index: 9; |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | div#menu li div { |
---|
| 60 | list-style: none; |
---|
| 61 | float: left; |
---|
| 62 | position: absolute; |
---|
| 63 | z-index: 11; |
---|
[388] | 64 | top: 42px; |
---|
[387] | 65 | left: 0; |
---|
| 66 | visibility: hidden; |
---|
| 67 | width: 180px; |
---|
| 68 | margin: 0px 0 0 -4px; |
---|
| 69 | padding: 0; |
---|
| 70 | background: url(images/subsubmenu-top.png) no-repeat 0px 0; |
---|
| 71 | _background: url(images/subsubmenu-top.gif) no-repeat 0px 0; |
---|
| 72 | } |
---|
| 73 | |
---|
| 74 | div#menu ul ul { |
---|
| 75 | z-index: 12; |
---|
| 76 | padding: 0px 4px 10px 4px; |
---|
| 77 | background: url(images/submenu-bottom.png) no-repeat 0px bottom; |
---|
| 78 | _background: url(images/submenu-bottom.gif) no-repeat 0px bottom; |
---|
| 79 | margin: 10px 0 0 0; |
---|
| 80 | } |
---|
| 81 | |
---|
| 82 | div#menu li:hover>div { |
---|
| 83 | visibility: visible; |
---|
| 84 | } |
---|
| 85 | |
---|
| 86 | div#menu a { |
---|
| 87 | position: relative; |
---|
| 88 | z-index: 10; |
---|
[388] | 89 | height: 40px; |
---|
[387] | 90 | display: block; |
---|
| 91 | float: left; |
---|
[388] | 92 | line-height: 40px; |
---|
[387] | 93 | text-decoration: none; |
---|
| 94 | margin-top: 1px; |
---|
| 95 | white-space: nowrap; |
---|
| 96 | width: auto; |
---|
| 97 | padding-right: 5px; |
---|
| 98 | text-align: center; |
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | div#menu span { |
---|
| 102 | margin-top: 2px; |
---|
| 103 | padding-left: 15px; |
---|
| 104 | color: #fff; |
---|
| 105 | font: normal 13px Helvetica, Arial, FreeSans, sans-serif; |
---|
| 106 | background: none; |
---|
[388] | 107 | line-height: 40px; |
---|
[387] | 108 | display: block; |
---|
| 109 | cursor: pointer; |
---|
| 110 | background-repeat: no-repeat; |
---|
| 111 | background-position: 95% 0; |
---|
| 112 | text-align: center; |
---|
| 113 | } |
---|
| 114 | |
---|
| 115 | /* menu::level1 */ |
---|
| 116 | div#menu a { |
---|
| 117 | padding: 0 10px 0 0; |
---|
[388] | 118 | line-height: 40px; |
---|
| 119 | height: 42px; |
---|
[387] | 120 | margin-right: 5px; |
---|
| 121 | _margin-right: 1px; |
---|
| 122 | background: none; |
---|
| 123 | text-transform: uppercase; |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | div#menu a:hover { |
---|
| 127 | background: url(images/selected-right-sub.png) no-repeat right -1px; |
---|
| 128 | } |
---|
| 129 | |
---|
| 130 | div#menu a:hover span { |
---|
| 131 | background: url(images/selected-left-sub.png) no-repeat 0 -3px; |
---|
| 132 | } |
---|
| 133 | |
---|
| 134 | div#menu li.current a, |
---|
| 135 | div#menu ul.menu>li:hover>a { |
---|
| 136 | background: url(images/selected-right-sub.png) no-repeat right -1px; |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | div#menu li.current a span, |
---|
| 140 | div#menu ul.menu>li:hover>a span { |
---|
| 141 | background: url(images/selected-left-sub.png) no-repeat 0 -3px; |
---|
| 142 | } |
---|
| 143 | |
---|
| 144 | div#menu ul.menu>li:hover>a span { |
---|
[481] | 145 | color: #574176; |
---|
[387] | 146 | } |
---|
| 147 | |
---|
| 148 | div#menu li { |
---|
| 149 | } |
---|
| 150 | |
---|
| 151 | div#menu li.last { |
---|
| 152 | background: none; |
---|
| 153 | } |
---|
| 154 | |
---|
| 155 | /* menu::level2 */ |
---|
| 156 | div#menu ul ul li { |
---|
| 157 | background: none; |
---|
| 158 | padding: 0; |
---|
| 159 | } |
---|
| 160 | |
---|
| 161 | div#menu ul ul a { |
---|
| 162 | padding: 0px; |
---|
| 163 | height: auto; |
---|
| 164 | float: none; |
---|
| 165 | display: block; |
---|
| 166 | line-height: 25px; |
---|
| 167 | font-size: 13px; |
---|
| 168 | color: #fff; |
---|
| 169 | z-index: -1; |
---|
| 170 | padding-left: 5px; |
---|
| 171 | white-space: normal; |
---|
| 172 | width: 152px; |
---|
| 173 | margin: 0 8px; |
---|
| 174 | text-transform: none; |
---|
| 175 | } |
---|
| 176 | |
---|
| 177 | div#menu ul ul a span { |
---|
| 178 | padding: 0 5px; |
---|
| 179 | line-height: 25px; |
---|
| 180 | font-size: 13px; |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | div#menu li.current ul a, |
---|
| 184 | div#menu li.current ul a span { |
---|
| 185 | background: none; |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | div#menu ul ul a:hover { |
---|
| 189 | background: none; |
---|
[480] | 190 | background-color: #574176; |
---|
[387] | 191 | } |
---|
| 192 | |
---|
| 193 | div#menu ul ul a:hover span { |
---|
| 194 | background: none; |
---|
[481] | 195 | color: #574176; |
---|
[387] | 196 | } |
---|
| 197 | |
---|
| 198 | div#menu ul ul a.parent { |
---|
| 199 | background: url(images/submenu-pointer.png) no-repeat right bottom; |
---|
| 200 | _background-image: url(images/submenu-pointer-hover.gif); |
---|
| 201 | } |
---|
| 202 | |
---|
| 203 | div#menu ul ul a.parent span { |
---|
| 204 | background: none; |
---|
| 205 | } |
---|
| 206 | |
---|
| 207 | div#menu ul ul a.parent:hover { |
---|
| 208 | background: url(images/submenu-pointer.png) no-repeat right bottom; |
---|
| 209 | _background: url(images/submenu-pointer-hover.gif) no-repeat right bottom; |
---|
[480] | 210 | background-color: #574176; |
---|
[387] | 211 | } |
---|
| 212 | |
---|
| 213 | div#menu ul ul a.parent:hover span { |
---|
| 214 | background: none; |
---|
| 215 | } |
---|
| 216 | |
---|
| 217 | div#menu ul ul span { |
---|
| 218 | |
---|
| 219 | margin-top: 0; |
---|
| 220 | text-align: left; |
---|
| 221 | } |
---|
| 222 | |
---|
| 223 | div#menu ul ul li.last { |
---|
| 224 | background: none; |
---|
| 225 | } |
---|
| 226 | |
---|
| 227 | div#menu ul ul li { |
---|
| 228 | width: 100%; |
---|
| 229 | } |
---|
| 230 | |
---|
| 231 | /* menu::level3 */ |
---|
| 232 | div#menu ul ul div { |
---|
| 233 | width: 180px; |
---|
| 234 | padding: 0; |
---|
[388] | 235 | margin: -52px 0 0 165px !important; |
---|
[387] | 236 | } |
---|
| 237 | |
---|
| 238 | div#menu ul ul ul { |
---|
| 239 | padding: 10px 4px 0 4px; |
---|
[388] | 240 | margin-top: 10px; |
---|
[387] | 241 | } |
---|
| 242 | |
---|
| 243 | div#menu ul ul div li { |
---|
| 244 | position: relative; |
---|
| 245 | top: -10px; |
---|
| 246 | } |
---|
| 247 | |
---|
| 248 | /* lava lamp */ |
---|
| 249 | div#menu li.back { |
---|
| 250 | background: url(images/selected-left-sub.png) no-repeat 0 0; |
---|
| 251 | width: 5px; |
---|
[388] | 252 | height: 42px; |
---|
[387] | 253 | z-index: 8; |
---|
| 254 | position: absolute; |
---|
| 255 | padding: 0; |
---|
| 256 | margin: 0px 0 0 0; |
---|
| 257 | } |
---|
| 258 | |
---|
| 259 | div#menu li.back .left { |
---|
| 260 | padding: 0; |
---|
| 261 | width: auto; |
---|
| 262 | background: url(images/selected-right-sub.png) no-repeat right 0; |
---|
[388] | 263 | height: 42px; |
---|
[387] | 264 | margin: 0 0 0 5px; |
---|
| 265 | float: none; |
---|
| 266 | position: relative; |
---|
| 267 | top: 0; |
---|
| 268 | left: 0; |
---|
| 269 | visibility: visible; |
---|
| 270 | } |
---|