suggest.scss 6.1 KB
.yoho-suggest-page {
    width: 100%;
    height: auto;

    /* 意见反馈头部 */
    .suggest-header {
        text-align: center;
        color: #fff;
        font-size: 26px;
        line-height: 46px;
        overflow: hidden;
        padding-bottom: 20px;
        background-image: linear-gradient(#383838, #505050);

        &:before {
            content: "";
            display: block;
            background: url("img/home/suggest/suggest-logo.png");
            background-size: 100%;
            width: 104px;
            height: 35px;
            margin: 10px auto 15px;
        }
    }

    /* 意见反馈主体 */
    .suggest-content {
        border-top: 1px solid #e0e0e0;
    }

    .suggest-item {
        width: 100%;
        color: #444;
        border-top: 1px solid #e0e0e0;
        border-bottom: 30px solid #f0f0f0;
        overflow: hidden;

        .suggest-item-img {
            width: 100%;
            overflow: hidden;

            > img {
                margin: 0 auto;
                display: block;
                max-width: 100%;
            }
        }

        > h2 {
            font-size: 38px;
            margin: 30px 0 31px;
            padding: 0 35px;
        }

        > p {
            font-size: 26px;
            line-height: 48px;
            padding: 0 35px;
        }
    }

    .suggest-type {
        margin-top: 29px - 11px;
        height: 88px;
        line-height: 88px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        color: #b0b0b0;
        font-size: 26px;
        display: none;
        text-align: center;

        > .active {
            color: #444;
        }

        &.show {
            display: block;
        }
    }

    .suggest-active {
        > div {
            width: 50%;
            height: 100%;
            float: left;
            text-align: left;
            padding-left: 128px;
            box-sizing: border-box;
        }

        > div:nth-last-of-type(1) {
            padding-left: 0;
            padding-right: 128px;
            text-align: right;
            float: right;

            > span {
                display: inline-block;
                height: 100%;
                overflow: hidden;

                &:nth-of-type(1) {
                    transform: rotate(180deg);
                }
            }
        }
    }

    .suggest-bad {
        > div {
            > span {
                display: inline-block;
                height: 100%;
                overflow: hidden;

                &:nth-of-type(1) {
                    transform: rotate(180deg);
                }
            }
        }
    }

    /* 发表意见 */
    .create-new-suggest {
        display: block;
        width: 100%;
        height: 150px;
        line-height: 88px;
        text-align: center;
        font-size: 30px;
        border-top: 30px solid #f0f0f0;
        border-bottom: 30px solid #f0f0f0;
        position: relative;

        .list-item {
            padding: 0 35px;
        }

        .new-right {
            float: right;
            margin-left: 40px;
            color: #e0e0e0;
        }

        a {
            color: #444;
            display: inline-block;
        }
    }
}

/* 提交页面 */
.yoho-suggest-sub-page {
    width: 100%;
    background: #f0f0f0;

    .suggest-sub-form {
        background: #fff;
        width: 100%;

        #suggest-textarea {
            box-sizing: border-box;
            width: 100%;
            max-width: 100%;
            min-width: 100%;
            height: 255px;
            max-height: 255px;
            min-height: 255px;
            padding: 30px;
            font-size: 26px;
            line-height: 48px;
            color: #000;
            display: block;
            background: #fff;
            border: none;
            outline: none;
            resize: none;
        }

        .submit {
            width: 350px;
            height: 70px;
            margin: 0 auto;
            background: #000;
            color: #fff;
            text-align: center;
            line-height: 70px;
            margin-top: 180px;
            border-radius: 10px;
        }
    }

    .img-form {
        padding: 0 30px;
        padding-top: 40px;
        overflow: hidden;

        .upload-img-list {
            float: left;

            > li {
                display: block;
                width: 130px;
                height: 130px;
                float: left;
                margin-right: 30px;
                background: url("img/common/loading.gif") center center no-repeat;
                background-size: 50%;
                position: relative;

                > img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    overflow: hidden;
                }

                > span {
                    display: block;
                    background: url("img/home/suggest/sub_del.png");
                    background-size: 100%;
                    width: 42px;
                    height: 42px;
                    position: absolute;
                    top: -21px;
                    right: -21px;
                }
            }
        }

        .img-add {
            display: block;
            width: 130px;
            height: 130px;
            border: 1px dashed #e0e0e0;
            position: relative;
            text-indent: -1000px;
            float: left;

            &:after {
                content: "";
                display: block;
                background: url("img/home/suggest/suggest-add.png");
                background-size: 100%;
                width: 72px;
                height: 72px;
                position: absolute;
                top: 50%;
                left: 50%;
                margin-top: -36px;
                margin-left: -36px;
            }

            input[type="file"] {
                position: absolute;
                opacity: 0.2;
                border: none;
                outline: none;
                display: block;
                width: 130px;
                height: 130px;
                top: 0;
                left: 0;
            }
        }
    }
}