Blame view

web-static/sass/home/_index1150.scss 12 KB
unknown authored
1 2
.home-page {
    width: 1150px;
unknown authored
3 4
    margin: 10px auto 0;
5
    .slide-container{
unknown authored
6 7 8
        position: absolute;
        left: 0;
        right: 0;
9 10 11 12 13 14 15
        height: 450px;

        &.slide-thumb-container {
            height: 510px;
        }
    }
    
unknown authored
16 17

    .slide-wrapper {
unknown authored
18
        position: relative;
unknown authored
19
        height: 450px;
unknown authored
20 21 22 23 24 25 26 27 28 29 30 31
        overflow: hidden;

        ul {
            position: relative;
            height: 100%;
        }

        &:hover {
            .slide-switch.show {
                display: block;
            }
        }
32 33

        li {
unknown authored
34 35 36 37 38 39 40
            display: none;
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
41
            a {
unknown authored
42 43
                display: block;
                height: 100%;
44
                width: 1150px;
unknown authored
45 46 47 48 49 50 51 52 53 54
                margin: 0 auto;
            }

            &:first-child {
                display: block;
            }

            img {
                width: 100%;
                height: 100%;
55 56 57 58 59 60
            }
        }
    }

    .slide-container-placeholder {
        height: 450px;
unknown authored
61
        width: 100%;
62 63 64 65

        &.slide-thumb-container-placeholder {
            height: 510px;
        }
unknown authored
66 67
    }
68 69 70

    
    .slide-switch {
unknown authored
71 72
        display: block;
73
        a {
unknown authored
74 75 76 77 78 79 80 81 82 83 84
            position: absolute;
            top: 50%;
            margin: -30px 0 0;
            width: 60px;
            height: 60px;
            line-height: 56px;
            text-align: center;
            z-index: 2;
            background: #fff;
            @include opacity(0.55);
85
            &.prev {
unknown authored
86
                left: 50%;
87 88 89 90
                margin-left: -575px;
            }

            &.next {
unknown authored
91
                right: 50%;
92 93
                margin-right: -575px;
            }
unknown authored
94 95 96 97 98 99 100 101 102

            &:hover{
                @include opacity(0.9);
            }
            
            .iconfont {
                font-size: 32px;
                color: #59585a;
            }
103 104 105
        }
    }
    
unknown authored
106
    .thumb-pagination {
107 108
        width: 1148px;
        margin: 6px auto 0;
unknown authored
109 110 111
        padding: 0 0 0 2px;

        li {
unknown authored
112 113 114
            position: relative;
            float: left;
            margin: 0 0 0 6px;
unknown authored
115 116
            width: 138px;
            height: 54px;
unknown authored
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182

            &:first-child {
                margin: 0;
            }

            &.focus {
                a {
                    @include opacity(0);
                }
            }

            a {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                background: #000;
                @include opacity(0.3);
            }

            img {
                width: 100%;
                height: 100%;
            }
        }
    }

    /*大banner圆点*/
    .slide-pagination {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 12px;
        text-align: center;
        font-size: 0;
        .slide-pagination-inner {
            position: relative;
            padding: 7px;
            @include inline-block;
        }
        .slide-shade {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            background: #000;
            @include opacity(0.3);
            @include border-radius(13px);
        }
        span {
            position: relative;
            @include inline-block;
            margin: 0 7px;
            width: 12px;
            height: 12px;
            background: #fff;
            cursor: pointer;
            @include opacity(0.6);
            @include border-radius(6px);
            z-index: 2;

            &.focus {
                @include opacity(1);
            }
unknown authored
183 184 185 186 187 188
        }
    }


    .debris-slider {
        height: 510px;
unknown authored
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
        width: 100%;

        .col {
            float: left;

            a {
                display: block;
            }
        }

        .left-col a,
        .right-col a {
            margin-bottom: 10px;

            &:last-child {
                margin-bottom: 0;
            }
        }

        .right-col img,
        .left-col img {
            height: 100%;
            width: 100%;
        }
unknown authored
214 215 216 217 218 219 220 221 222 223 224 225 226 227
        .left-col {
            margin-right: 10px;

            a {
                width: 280px;
                height: 120px;
            }

            a:first-child {
                height: 250px;
            }
        }

        .center-col {
unknown authored
228
            position: relative;
unknown authored
229 230 231
            width: 570px;
            height: 100%;
            margin-right: 10px;
unknown authored
232
            font-size: 0;
unknown authored
233
unknown authored
234 235 236 237
            &:hover {
                .slide-switch.show {
                    display: block;
                }
unknown authored
238
            }
unknown authored
239 240 241
        
            .slide-wrapper {
                height: 100%;
unknown authored
242
unknown authored
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
                li {
                    a {
                        width: 100%;
                    }
                }
            }

            .slide-switch {
                a.prev {
                    left: 0;
                    margin-left: 0;
                }
                a.next {
                    right: 0;
                    margin-right: 0;
                }
            }

            img {
                max-width: 100%;
                max-height: 100%;
unknown authored
264 265
            }
        }
unknown authored
266 267 268 269 270 271 272 273 274 275

        .right-col a {
            width: 280px;
            height: 120px;
        }

        .right-col a:first-child {
            height: 380px;
            margin-bottom: 11px;
        }
unknown authored
276 277 278
    }

    .new-report {
unknown authored
279 280 281 282 283
        img {
            display: block;
            width: 100%;
            height: 100%;
        }
unknown authored
284
        .report-list {
unknown authored
285
            float: left;
unknown authored
286 287
            width: 868px;
            li {
unknown authored
288 289
                float: left;
                margin: 0 8px 8px 0;
unknown authored
290 291
                width: 185px;
                height: 248px;
unknown authored
292
                overflow: hidden;
unknown authored
293
                &:first-child {
unknown authored
294 295
                    margin-right: 7px;
                     width: 282px;
unknown authored
296 297 298 299 300 301 302
                    height: 504px;
                }

            }
        }
        
        .last-item {
unknown authored
303
            float: left;
unknown authored
304 305
            width: 282px;
            height: 504px;
unknown authored
306
            overflow: hidden;
unknown authored
307 308 309 310
        }
    }

unknown authored
311 312 313
    /*优选品牌*/
    .preference-brand {
        overflow: hidden;
unknown authored
314 315 316
    }

    .preference-brand-list {
unknown authored
317
        margin-top: 8px;
unknown authored
318 319 320 321
        width: 1158px;
    }

    .preference-brand-item {
unknown authored
322
        float: left;
unknown authored
323
        margin-right: 8px;
unknown authored
324
        margin-bottom: 8px;
unknown authored
325 326

        a {
unknown authored
327
            display: table-cell;
unknown authored
328 329
            width: 185px;
            height: 86px;
unknown authored
330 331 332 333 334 335 336 337 338
            text-align: center;
            vertical-align: middle;
        }

        img {
            display: block;
            max-width: 100%;
            max-height: 100%;
            margin: 0 auto;
unknown authored
339 340 341 342
        }
    }

    .preference-more {
unknown authored
343
        float: left;
unknown authored
344 345 346
        width: 185px;
        height: 86px;
        line-height: 100px;
unknown authored
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
        text-align: center;
        color: black;
        font-size: 16px;
    }

    .img-slider-wrapper {
        position: relative;
        width: 100%;
        height: 558px;
        background: #8ae6e0;

        .img-brand-switch {
            display: block;
            a {
                position: absolute;
                top: 50%;
                font-size: 36px;
                color: #fff;

                &.next {
                    right: 30px;
                }

                &.prev {
                    left: 30px;
                }
            }
        }
    }

    .img-container-landscape {
        box-sizing: border-box;
        margin: 86px auto 0;
        width: 982px;
        height: 433px;
        overflow: hidden;

        .img-list {
            width: 1000px;
            height: 100%;
        }

        .img-item {
            float: left;
            box-sizing: border-box;
            width: 320px;
            height: 100%;
            margin-right: 10px;

            img {
                width: 100%;
                height: 100%;
            }
        }
unknown authored
401 402
    }
unknown authored
403 404

    /*男首优选品牌 图片品牌*/
unknown authored
405
    .img-brand {
unknown authored
406 407
        position: relative;
        width: 100%;
unknown authored
408
        height: 175px;
unknown authored
409
        overflow: hidden;
unknown authored
410
unknown authored
411 412 413 414 415
        &:hover {
            .img-brand-switch {
                display: block;
            }
        }
unknown authored
416 417 418 419
        ul {
            width: 1158px;
        }
        li {
unknown authored
420 421
            float: left;
            margin: 0 8px 0 0;
unknown authored
422 423 424
            width: 378px;
            height: 175px;
            line-height: 175px;
unknown authored
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461
            overflow: hidden;
            font-size: 0;
            text-align: center; 

            img {
                max-width: 100%;
                max-height: 100%;
                vertical-align: middle;
            }
        }

        /*图片品牌左右切换按钮*/
        .img-brand-switch {
            display: none;
            a {
                position: absolute;
                top: 50%;
                margin: -20px 0 0;
                width: 40px;
                height: 40px;
                line-height: 40px;
                text-align: center;
                z-index: 2;
                background: #fff;
                @include opacity(0.55);

                &.prev {
                    left: 0;
                }
                &.next {
                    right: 0;
                }
                &:hover {
                    @include opacity(0.9);

                }
            }
unknown authored
462 463 464
        }
    }
unknown authored
465
    /*男首优选品牌 logo品牌*/
unknown authored
466
    .logo-brand {
unknown authored
467
        width: 100%;
unknown authored
468
        height: 282px;
unknown authored
469
        overflow: hidden;
unknown authored
470 471 472 473 474 475 476 477 478

        &.logos-10 {
            height: 188px;
        }

        ul {
            width: 1158px;
        }
        li {
unknown authored
479 480
            float: left;
            margin: 8px 8px 0 0;
unknown authored
481 482
            width: 185px;
            height: 86px;
unknown authored
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516
            line-height: 86px;
            font-size: 0;
            text-align: center;
            img {
                max-width: 100%;
                max-height: 100%;
                vertical-align: middle;
            }
        }
        .logo-brand-switch {
            position: relative;
            background: image-url('index/logo-brand-line.png') no-repeat center center;
            line-height: normal;
            .iconfont {
                position: absolute;
                left: 50%;
                font-size: 32px;

                &.prev {
                    top: 10px;
                    
                    margin: 0 0 0 -48px;
                }
                &.next {
                    bottom: 12px;
                    margin: 0 0 0 20px;
                }
            }
        }
        .brand-more {
            font-size: 16px;
            &:hover {
                text-decoration: underline;
            }
unknown authored
517 518 519
        }
    }
unknown authored
520
    /*创意生活商品分类*/
unknown authored
521 522 523 524 525
    .categorys-list {
        ul {
            width: 1158px;
        }
        li {
unknown authored
526
            float: left;
unknown authored
527 528 529 530 531 532 533 534 535 536 537 538
            margin: 0 8px 8px 0;
            width: 185px;
            height: 248px;

            &.cate-item0 {
                width: 185px;
                height: 504px;
            }
            &.cate-item1 {
                width: 377px;
                height: 504px;
            }
unknown authored
539 540 541 542 543
            img {
                display: block;
                width: 100%;
                height: 100%;
            }
unknown authored
544 545
        }
    }
unknown authored
546
unknown authored
547
    .floor-header {
unknown authored
548
        position: relative;
unknown authored
549 550
        margin: 80px 0 40px;
unknown authored
551 552 553 554 555 556 557 558 559 560
        .floor-title {
            margin: 0 auto;
            width: 298px;
            height: 31px;
            line-height: 31px;
            border: 1px solid #000;
            font-size: 16px;
            text-align: center;
        }
unknown authored
561
        .header-navs {
unknown authored
562 563 564 565 566 567
            position: absolute;
            padding: 10px 0;
            top: 0;
            right: 0;
            font-size: 14px;
unknown authored
568
            li {
unknown authored
569
                float: left;
unknown authored
570
                padding: 1px 15px;
unknown authored
571 572 573 574 575 576 577 578 579 580 581 582 583
                border-left: 1px solid #ccc;

                &:first-child {
                    border-left: none;
                }

                &:hover {
                    text-decoration: underline;
                }

                a {
                    color: #333;
                }
unknown authored
584 585 586 587
            }
        }
    }
}