文件内容 detail.less 6 KB 6703 字符
*::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 8px;
    height: 8px;
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 8px;
    -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    background: #f3f3f3;
}

*::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    // -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    // box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: transparent;
}

.newform {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
    padding: 50px 20px 30px 20px;


    .paste-form-body {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .row {
        position: relative;
        margin-bottom: 20px;
        width: 50%;
    }

    .singlerow {
        width: 100%;
    }

    .itemrow {
        display: flex;
        flex-direction: row;
    }

    .lineitem {
        flex: 1;
        position: relative;
        margin-right: 10px;
    }

    .lineitem:last-child {
        margin-right: 0 !important;
    }

    .option {
        line-height: 40px;
        text-align: left;
        padding-left: 10px;
        height: 40px;
    }

    .form-label {
        padding: 0 6px;
        color: #555;
        width: 100px;
        font-size: 14px;
        overflow: hidden;
        line-height: 40px;
        text-align: right;
        font-weight: 600;
        text-overflow: ellipsis;
        text-wrap: nowrap;

        &:after {
            content: ':';
        }
    }

    .p-form-placeholder {
        // background-color: #f9f9f9;
        color: #b6b6b6;
    }

    .formControls {
        position: relative;
        flex: 1;
        width: 100px;
        color:#555;
        padding:8px;
        
        .placeholder {
            color: #b6b6b6;
            display: inline-block;
            clear: both;
            position: relative;
            bottom: 5px;
            text-overflow: ellipsis;
            overflow: hidden;
            font-size: 14px;
        }

        .image {
            max-height: 100px;
        }

        img{
            max-width: 200px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.5s;
            &:hover{
                box-shadow: 0 0 2px 2px #999;
            }
        }

        label {
            word-wrap: break-word;
            white-space: break-spaces;
            text-wrap: wrap;
            display: inline;
        }
        .richtext{
            white-space: break-spaces;
            word-break: break-all;
        }
    }

    .round {
        border-radius: 4px;
        border: 1px solid #f1f1f1;
        line-height: 50px;
    }

    code {
        word-wrap: break-word;
        text-wrap: wrap;
        word-break: break-all;
        white-space: break-spaces;
    }

    pre{
        display: block;
        white-space: break-spaces;
        word-wrap: break-word;
        font-size: 16px;
        font-weight: bold;
        margin:0;
    }
}


.group{
    background: aliceblue;
    padding:6px;
    border-radius: 6px;
    box-sizing: border-box;
    .ghead{
        padding-right: 10px;
    }
}

.form-required {
    color: chocolate;
    padding: 2px;
}

.editor_body {
    height: 500px;
}

.input-textarea {
    padding: 10px;
    line-height: 1.5;
}

.form-header {
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.ititle {
    padding: 10px;
    font-weight: 600;
    font-size: 28px;
    color: #333;
}

.idesc {
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

// input[type=text]::placeholder {
//     background-color: #f2f2f2 !important;
// }

.editor_body {
    border: 1px solid #999;
    border-radius: 6px;
    overflow: hidden;
}

//表单后面的字符限定
.spanlen {
    position: absolute;
    right: 26px;
    bottom: 12px;
    color: #999;
    font-size: 12px;
}

.spanclean {
    position: absolute;
    right: 4px;
    bottom: 12px;
    opacity: 0.1;
    width: 22px;
    height: 22px;
    background-color: #b6b6b6;
    border-radius: 50% 50%;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;

    &:hover {
        opacity: 0.8;
    }
}

textarea {
    border-radius: 4px;
    outline: none;
    border: 1px solid #f1f1f1;
    transition: all 0.5s;
    width: 100%;

    &:focus {
        border: 1px solid #3d62db;
    }

    &:read-only {
        background-color: #f1f1f1;
    }
}

.icon {
    font-size: 32px;
    color: #d1d1d1;
}

.icon-add {
    text-align: center;
    width: 60px;
    text-align: center;
    display: inline-block;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    cursor: pointer;
}

.imageul {
    display: block;
    position: relative;
    padding-inline-start: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    margin-block-start: 0;
    margin-block-end: 0;

    li {
        display: inline-block;
        position: relative;
        width: 120px;
        height: 120px;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    img {
        width: 100%;
        height: 100%;
        border-radius: 6px;
    }

    .icon-add {
        width: 120px;
        height: 120px;
        cursor: pointer;
        display: inline-block;
        border: 1px solid #999;
        border-radius: 6px;
        line-height: 100px;
    }

    .icon-close {
        position: absolute;
        top: -2px;
        right: 2px;
        cursor: pointer;
        color: #999;
        display: inline-block;
        font-size: 24px;
    }
}

.outers {
    position: relative;

    .btnaddouter {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 10px;
        margin: 10px 10px 10px 0;
        background: #4290f7;
        outline: none;
        border: none;
        color: #f2f2f2;
        border-radius: 4px;
        cursor: pointer;
    }

    .ulouter {
        list-style-type: none;
        margin-block-start: 0;
        margin-block-end: 0;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        padding-inline-start: 0;

        li {
            position: relative;
            display: inline-block;
            padding: 8px;
            width: 160px;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            margin-right: 8px;
            margin-bottom: 8px;
        }

        .outer_close {
            position: absolute;
            right: 8px;
            cursor: pointer;
            opacity: 0.2;

            &:hover {
                opacity: 1;
            }
        }
    }
}
​ ​