|
| 1 | +$dock-bg: rgba(0, 0, 0, 0.4); |
| 2 | +$dock-line-bg: rgba(0, 0, 0, 0.2); |
| 3 | +$dock-top-width: 620px; |
| 4 | +$dock-top-height: 80px; |
| 5 | +$dock-left-widht: 80px; |
| 6 | +$dock-left-height: 620px; |
| 7 | +$dock-right-widht: 80px; |
| 8 | +$dock-right-height: 620px; |
| 9 | + |
1 | 10 | /* 应用码头 */
|
2 | 11 | #dock-bar{
|
3 |
| - position: absolute; |
4 | 12 | display: none;
|
| 13 | + position: absolute; |
5 | 14 | &.top-bar{
|
6 | 15 | width: 100%;
|
7 |
| - height: 80px; |
| 16 | + height: $dock-top-height; |
8 | 17 | left: 0;
|
9 | 18 | top: 0;
|
10 | 19 | }
|
11 | 20 | &.left-bar{
|
12 |
| - width: 80px; |
| 21 | + width: $dock-left-widht; |
13 | 22 | height: 100%;
|
14 | 23 | left: 0;
|
15 | 24 | top: 0;
|
16 | 25 | }
|
17 | 26 | &.right-bar{
|
18 |
| - width: 80px; |
| 27 | + width: $dock-right-widht; |
19 | 28 | height: 100%;
|
20 | 29 | right: 0;
|
21 | 30 | top: 0;
|
|
28 | 37 | z-index: 100000;
|
29 | 38 | }
|
30 | 39 | .dock-middle{
|
| 40 | + position: relative; |
| 41 | + background-color: $dock-bg; |
31 | 42 | .dock-applist{
|
32 | 43 | position: relative;
|
33 | 44 | .appbtn{
|
|
46 | 57 | .dock-tools{
|
47 | 58 | a{
|
48 | 59 | @include text-shadow(1px 1px 1px #000);
|
49 |
| - float: left; |
50 | 60 | display: block;
|
| 61 | + float: left; |
51 | 62 | width: 20px;
|
52 | 63 | height: 20px;
|
53 | 64 | line-height: 20px;
|
|
162 | 173 | }
|
163 | 174 | }
|
164 | 175 | &.dock-top{
|
165 |
| - width: desktop-sprite-width(dock-bg-top); |
166 |
| - height: desktop-sprite-height(dock-bg-top); |
| 176 | + width: $dock-top-width; |
| 177 | + height: $dock-top-height; |
167 | 178 | top: 0;
|
168 | 179 | left: 50%;
|
169 | 180 | margin: 0 0 0 -310px;
|
170 | 181 | .dock-middle{
|
171 |
| - @include desktop-sprite(dock-bg-top); |
172 |
| - width: desktop-sprite-width(dock-bg-top); |
173 |
| - height: desktop-sprite-height(dock-bg-top); |
| 182 | + @include border-bottom-radius(5px); |
| 183 | + width: $dock-top-width; |
| 184 | + height: $dock-top-height; |
| 185 | + //背景辅助线 |
| 186 | + &::after{ |
| 187 | + @include border-bottom-radius(5px); |
| 188 | + content: ''; |
| 189 | + position: absolute; |
| 190 | + z-index: -1; |
| 191 | + left: 0; |
| 192 | + top: 0; |
| 193 | + width: $dock-top-width - 2; |
| 194 | + height: $dock-top-height - 1; |
| 195 | + border: 1px solid $dock-line-bg; |
| 196 | + border-top: 0; |
| 197 | + } |
174 | 198 | .dock-applist{
|
| 199 | + position: relative; |
175 | 200 | width: 476px;
|
176 | 201 | height: 58px;
|
177 | 202 | margin: 11px 14px;
|
178 | 203 | float: left;
|
| 204 | + //背景辅助线 |
| 205 | + &::after{ |
| 206 | + content: ''; |
| 207 | + position: absolute; |
| 208 | + z-index: -1; |
| 209 | + left: 490px; |
| 210 | + top: -11px; |
| 211 | + width: 0; |
| 212 | + height: 80px; |
| 213 | + border-left: 1px solid $dock-line-bg; |
| 214 | + } |
179 | 215 | }
|
180 | 216 | .dock-tools-container{
|
| 217 | + position: relative; |
181 | 218 | height: 56px;
|
182 | 219 | float: left;
|
| 220 | + //背景辅助线 |
| 221 | + &::after{ |
| 222 | + content: ''; |
| 223 | + position: absolute; |
| 224 | + z-index: -1; |
| 225 | + left: 0; |
| 226 | + top: 55px; |
| 227 | + width: 115px; |
| 228 | + height: 0; |
| 229 | + border-top: 1px solid $dock-line-bg; |
| 230 | + } |
183 | 231 | .dock-tools{
|
| 232 | + position: relative; |
184 | 233 | width: 20px;
|
185 | 234 | height: 46px;
|
186 | 235 | padding: 5px;
|
187 | 236 | float: left;
|
188 |
| - overflow: hidden; |
| 237 | + //背景辅助线 |
| 238 | + &::after{ |
| 239 | + content: ''; |
| 240 | + position: absolute; |
| 241 | + z-index: -1; |
| 242 | + left: 30px; |
| 243 | + top: 0; |
| 244 | + width: 0; |
| 245 | + height: 56px; |
| 246 | + border-left: 1px solid $dock-line-bg; |
| 247 | + } |
189 | 248 | .dock-tool-setting, .dock-tool-appmanage{
|
190 | 249 | margin-bottom: 3px;
|
191 | 250 | }
|
|
206 | 265 | }
|
207 | 266 | }
|
208 | 267 | &.dock-left{
|
209 |
| - width: desktop-sprite-width(dock-bg-left); |
210 |
| - height: desktop-sprite-height(dock-bg-left); |
| 268 | + width: $dock-left-widht; |
| 269 | + height: $dock-left-height; |
211 | 270 | top: 50%;
|
212 | 271 | left: 0;
|
213 | 272 | margin: -310px 0 0 0;
|
214 | 273 | .dock-middle{
|
215 |
| - @include desktop-sprite(dock-bg-left); |
216 |
| - width: desktop-sprite-width(dock-bg-left); |
217 |
| - height: desktop-sprite-height(dock-bg-left); |
| 274 | + @include border-right-radius(5px); |
| 275 | + width: $dock-left-widht; |
| 276 | + height: $dock-left-height; |
| 277 | + //背景辅助线 |
| 278 | + &::after{ |
| 279 | + @include border-right-radius(5px); |
| 280 | + content: ''; |
| 281 | + position: absolute; |
| 282 | + z-index: -1; |
| 283 | + left: 0; |
| 284 | + top: 0; |
| 285 | + width: $dock-left-widht - 1; |
| 286 | + height: $dock-left-height - 2; |
| 287 | + border: 1px solid $dock-line-bg; |
| 288 | + border-left: 0; |
| 289 | + } |
218 | 290 | .dock-applist{
|
| 291 | + position: relative; |
219 | 292 | width: 58px;
|
220 | 293 | height: 476px;
|
221 | 294 | margin: 14px 11px;
|
222 | 295 | float: left;
|
| 296 | + //背景辅助线 |
| 297 | + &::after{ |
| 298 | + content: ''; |
| 299 | + position: absolute; |
| 300 | + z-index: -1; |
| 301 | + left: -11px; |
| 302 | + top: 490px; |
| 303 | + width: 80px; |
| 304 | + height: 0; |
| 305 | + border-top: 1px solid $dock-line-bg; |
| 306 | + } |
223 | 307 | }
|
224 | 308 | .dock-tools-container{
|
| 309 | + position: relative; |
225 | 310 | width: 56px;
|
226 | 311 | float: left;
|
| 312 | + //背景辅助线 |
| 313 | + &::after{ |
| 314 | + content: ''; |
| 315 | + position: absolute; |
| 316 | + z-index: -1; |
| 317 | + left: 55px; |
| 318 | + top: 0; |
| 319 | + width: 0; |
| 320 | + height: 115px; |
| 321 | + border-left: 1px solid $dock-line-bg; |
| 322 | + } |
227 | 323 | .dock-tools{
|
| 324 | + position: relative; |
228 | 325 | width: 46px;
|
229 | 326 | height: 20px;
|
230 | 327 | padding: 5px;
|
231 | 328 | float: left;
|
232 |
| - overflow: hidden; |
| 329 | + //背景辅助线 |
| 330 | + &::after{ |
| 331 | + content: ''; |
| 332 | + position: absolute; |
| 333 | + z-index: -1; |
| 334 | + left: 0; |
| 335 | + top: 30px; |
| 336 | + width: 56px; |
| 337 | + height: 0; |
| 338 | + border-top: 1px solid $dock-line-bg; |
| 339 | + } |
233 | 340 | .dock-tool-setting, .dock-tool-appmanage{
|
234 | 341 | margin-right: 3px;
|
235 | 342 | }
|
|
250 | 357 | }
|
251 | 358 | }
|
252 | 359 | &.dock-right{
|
253 |
| - width: desktop-sprite-width(dock-bg-right); |
254 |
| - height: desktop-sprite-height(dock-bg-right); |
| 360 | + width: $dock-right-widht; |
| 361 | + height: $dock-right-height; |
255 | 362 | top: 50%;
|
256 | 363 | left: 0;
|
257 | 364 | margin: -310px 0 0 0;
|
258 | 365 | .dock-middle{
|
259 |
| - @include desktop-sprite(dock-bg-right); |
260 |
| - width: desktop-sprite-width(dock-bg-right); |
261 |
| - height: desktop-sprite-height(dock-bg-right); |
| 366 | + @include border-left-radius(5px); |
| 367 | + width: $dock-right-widht; |
| 368 | + height: $dock-right-height; |
| 369 | + //背景辅助线 |
| 370 | + &::after{ |
| 371 | + @include border-left-radius(5px); |
| 372 | + content: ''; |
| 373 | + position: absolute; |
| 374 | + z-index: -1; |
| 375 | + left: 0; |
| 376 | + top: 0; |
| 377 | + width: $dock-right-widht - 1; |
| 378 | + height: $dock-right-height - 2; |
| 379 | + border: 1px solid $dock-line-bg; |
| 380 | + border-right: 0; |
| 381 | + } |
262 | 382 | .dock-applist{
|
| 383 | + position: relative; |
263 | 384 | width: 58px;
|
264 | 385 | height: 476px;
|
265 | 386 | margin: 14px 11px;
|
266 | 387 | float: right;
|
| 388 | + //背景辅助线 |
| 389 | + &::after{ |
| 390 | + content: ''; |
| 391 | + position: absolute; |
| 392 | + z-index: -1; |
| 393 | + left: -11px; |
| 394 | + top: 490px; |
| 395 | + width: 80px; |
| 396 | + height: 0; |
| 397 | + border-top: 1px solid $dock-line-bg; |
| 398 | + } |
267 | 399 | }
|
268 | 400 | .dock-tools-container{
|
| 401 | + position: relative; |
269 | 402 | width: 56px;
|
270 | 403 | float: right;
|
| 404 | + //背景辅助线 |
| 405 | + &::after{ |
| 406 | + content: ''; |
| 407 | + position: absolute; |
| 408 | + z-index: -1; |
| 409 | + right: 55px; |
| 410 | + top: 0; |
| 411 | + width: 0; |
| 412 | + height: 115px; |
| 413 | + border-left: 1px solid $dock-line-bg; |
| 414 | + } |
271 | 415 | .dock-tools{
|
| 416 | + position: relative; |
272 | 417 | width: 46px;
|
273 | 418 | height: 20px;
|
274 | 419 | padding: 5px;
|
275 | 420 | float: right;
|
276 |
| - overflow: hidden; |
| 421 | + //背景辅助线 |
| 422 | + &::after{ |
| 423 | + content: ''; |
| 424 | + position: absolute; |
| 425 | + z-index: -1; |
| 426 | + left: 0; |
| 427 | + top: 30px; |
| 428 | + width: 56px; |
| 429 | + height: 0; |
| 430 | + border-top: 1px solid $dock-line-bg; |
| 431 | + } |
277 | 432 | .dock-tool-setting, .dock-tool-appmanage{
|
278 | 433 | margin-right: 3px;
|
279 | 434 | }
|
|
0 commit comments