_online-service.scss 3.65 KB
@function rem($n) {
    @return $n / 40 * 1rem;
}

.online-service-page{
    background: #f0f0f0;

    .question {
        background: #fff;
    }

    .question-title {
        padding: rem(20) rem(30);
        font-size: rem(28);
        line-height: 1;
        color: #b0b0b0;
    }

    .question-tab {
        padding: rem(10) rem(30) rem(30);
        font-size: rem(32);
        line-height: rem(58);
        text-align: center;
        color: #b0b0b0;

        .current {
            color: #444;
        }

        .line {
            margin: 0 rem(32);
            border-left: 1px solid #b0b0b0;
        }

    }

    .question-list {
        display: none;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;

        &.current {
            display: block;
        }

        li {
            font-size: rem(28);
            line-height: rem(90);

            a {
                display: block;
                color: #444;
                width: rem(610);
                margin-left: rem(30);
                border-bottom: 1px solid #ccc;
            }

            .iconfont {
                float: right;
                margin-right: rem(30);
                color: #ccc;
                font-size: rem(32);
            }

            &:last-child {
                border-bottom: none;
            }

            &.highlight {
                background: #eee;
            }
        }
    }

    .connect-info {
        margin-top: 30px;
        font-size: rem(28);
        line-height: rem(50);
        background: #fff;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;

        p {
            margin-top: rem(25);
            margin-left: rem(-72);
            line-height: 1.5;
        }

        .iconfont {
            font-size: rem(46);
        }

        .icon-yoho-enter {
            color: #ccc;
            float: right;
            font-size: rem(32);
        }

        .connect-item {
            position: relative;
            a {
                display: block;
                padding: rem(20) rem(30) rem(20) rem(94);
                color: #444;
            }
            &:after {
                content: '';
                position: absolute;
                right: 0;
                bottom: 0;
                width: rem(548);
                height: 1px;
                background: #ccc;
            }
            &:last-child {
                &:after {
                    content: none;
                }
            }
            &.highlight {
                background: #eee;
            }
        }
        .icon {
            display: inline-block;
            margin-right: rem(28);
            margin-left: rem(-70);
            vertical-align:middle;
        }
    }
}

.online-service-detail-page {
    background: #f0f0f0;

    .qa-list {
        .question-item {
            margin-bottom: rem(32);
            border-top: 1px solid #c8c7cc;
            border-bottom: 1px solid #c8c7cc;
            color: #444;
            background: #fff;

            &:last-child {
                margin-bottom: 0;
            }
        }
        %qa {
            margin-left: rem(30);
            padding: 0 rem(40) 0 rem(10);
            font-size: rem(30);
            line-height: rem(76);
            font-weight: bold;
        }
        .question {
            @extend %qa;
            position: relative;
            color: #000;
            &:after {
                content: '';
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                border-top: 1px solid #c8c7cc;
            }
        }
        .answer {
            @extend %qa;
        }
    }
}