Blame view

public/scss/product/_top-coupon.css 6.61 KB
yyq authored
1 2 3 4 5
.top-coupon-wrap {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
    font-size: 0;
yyq authored
6
    position: relative;
yyq authored
7
    user-select: none;
yyq authored
8
yyq authored
9 10 11 12
    > * {
        cursor: default;
    }
yyq authored
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    .coupon-title {
        width: 164px;
        height: 100%;
        background: #fff resolve('product/coupon-title.png') no-repeat left center;
        float: left;
    }

    .coupon-list {
        width: 800px;
        height: 100%;
        float: right;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .coupon-item {
        width: 230px;
        height: 100%;
        margin: 0 11px;
        color: #fff;
        background: #d0021b;
        display: inline-block;
        vertical-align: top;
        position: relative;

        &:before {
            content: '';
            display: block;
            width: 6px;
            height: 100%;
            background: url('/product/coupon-left.png');
            position: absolute;
            top: 0;
            left: -4px;
        }

        &:after {
            content: '';
            display: block;
            width: 6px;
            height: 100%;
            background: url('/product/coupon-right.png');
            position: absolute;
            top: 0;
            right: -4px;
        }
    }

    .cp-info {
        width: 130px;
yyq authored
65
        padding: 12px 0 0 16px;
yyq authored
66 67
        float: left;
yyq authored
68 69 70 71 72 73
        > p {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
yyq authored
74
        .price {
yyq authored
75
            font-size: 36px;
yyq authored
76
            font-weight: 500;
yyq authored
77 78
            display: block;
            margin-bottom: 4px;
yyq authored
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
        }

        .term {
            border-top: 1px dashed #ea808a;
            display: none;
        }
    }

    .pick-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        text-align: center;
        float: right;
        border-left: 1px solid #ea808a;
        margin: 10px 0;
        cursor: pointer;
        white-space: pre-line;
        padding: 10px 20px;
    }
yyq authored
100 101 102 103 104 105
    .picked {
        width: 60px;
        padding: 10px;
        line-height: 40px;
    }
yyq authored
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
    &.num1 {
        .coupon-title {
            width: 230px;
            background-image: resolve('product/coupon-title-large.png');
        }

        .coupon-list {
            width: 738px;
        }

        .coupon-item {
            width: 724px;
        }

        .cp-info {
            width: 252px;
            padding-left: 294px;
            padding-top: 0;

            .price {
                width: 250px;
                line-height: 80px;
                font-size: 40px;
                position: absolute;
                margin-left: -270px;
yyq authored
131
                margin-bottom: 0;
yyq authored
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
            }

            > p {
                font-size: 16px;
                line-height: 1.5;
            }

            .limit-text {
                margin-top: 16px;
            }

            .term {
                display: block;
            }
        }
yyq authored
148
        .picked,
yyq authored
149 150 151
        .pick-btn {
            width: 100px;
            line-height: 40px;
yyq authored
152
            padding: 10px 20px;
yyq authored
153 154 155 156 157 158 159 160 161 162 163 164 165
            white-space: nowrap;
        }
    }

    &.num2 {
        .coupon-item {
            width: 380px;
        }

        .cp-info {
            width: 224px;
            padding: 12px 16px 0;
yyq authored
166 167 168 169
            .price {
                margin-bottom: 0;
            }
yyq authored
170 171 172
            .limit-text {
                text-align: right;
                margin-top: -20px;
yyq authored
173
                padding-left: 100px;
yyq authored
174 175 176 177 178 179 180 181 182
            }

            .term {
                margin-top: 6px;
                line-height: 1.5;
                display: block;
            }
        }
yyq authored
183
        .picked,
yyq authored
184 185 186
        .pick-btn {
            width: 80px;
            line-height: 40px;
yyq authored
187
            padding: 10px 20px;
yyq authored
188 189 190
            white-space: nowrap;
        }
    }
yyq authored
191 192 193 194 195

    &.num3  .coupon-item {
        width: 244px;
    }
yyq authored
196
    .coupon-btn {
yyq authored
197
        height: 80px;
yyq authored
198 199
        background: #fff;
        padding-left: 2px;
yyq authored
200 201 202
        text-align: center;
        position: absolute;
        right: 0;
yyq authored
203
yyq authored
204 205 206 207
        > * {
            width: 36px;
            height: 36px;
            line-height: 36px;
yyq authored
208 209
            font-size: 24px;
            color: #fff;
yyq authored
210 211 212 213 214 215 216
            background: #d0021b;
            display: block;
            cursor: pointer;
        }

        .next-btn {
            margin-top: 8px;
yyq authored
217
        }
yyq authored
218 219 220 221

        .btn-end {
            background: #b5b5b5;
        }
yyq authored
222
    }
yyq authored
223
}
yyq authored
224
yyq authored
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
.min-screen .top-coupon-wrap {
    .coupon-list {
        width: 644px;
    }

    .coupon-item {
        width: 178px;

        .cp-info {
            width: 94px;

            .price {
                font-size: 20px;
                line-height: 32px;
            }
        }
yyq authored
241 242 243 244

        .pick-btn {
            padding: 10px 12px;
        }
yyq authored
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
    }

    &.num1 {
        .coupon-list {
            width: 580px;
        }

        .coupon-item {
            width: 566px;

            .cp-info {
                width: 246px;
                padding-left: 170px;
            }

            .price {
                line-height: 80px;
                font-size: 40px;
                margin-left: -150px;
            }
        }
    }

    &.num2 .coupon-item {
        width: 302px;

        .cp-info {
            width: 186px;

            .limit-text {
                padding-left: 64px;
            }
        }

        .pick-btn {
            width: 40px;
            line-height: 1;
yyq authored
282
            padding: 10px 20px;
yyq authored
283 284 285 286 287 288 289 290 291 292 293 294 295
            white-space: pre-line;
        }
    }

    &.num3 .coupon-item {
        width: 192px;

        .cp-info {
            width: 94px;
        }
    }
}
yyq authored
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320
.top-coupon-dialog {
    > .close .iconfont {
        font-size: 28px;
    }

    .content {
        font-size: 22px;
        font-weight: 600;
        color: #444;
        margin: 10px 0 20px;

        .iconfont {
            font-size: 28px;
            vertical-align: middle;
            color: #d1061e;
            font-weight: normal;
            margin-right: 14px;
        }
    }

    .sub-content {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        color: #555;
yyq authored
321 322 323 324 325 326 327 328

        .price {
            font-size: 30px;
            color: #d1061e;
            line-height: 1;
            margin-bottom: 16px;
            display: inline-block;
        }
yyq authored
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
    }

    .btns {
        margin-top: 20px;

        .btn {
            width: 128px;
            height: 30px;
            line-height: 30px;
            margin-left: 0;
            font-size: 14px;
        }

        .btn:first-child {
            margin-right: -1px;
        }

        .black {
            background: #000;
            color: #fff;
        }
    }
}