$baseColor: #000000;

.kssBody {
    cursor: crosshair;
    user-select: none;

    noscript {
        strong {
            display: none;
        }
    }

    #kss {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
    }

    #kssScreenShotWrapper {
        position: fixed;
        background: transparent;
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
        z-index: 10001;

        #kssTextLayer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 98;

            .kssTextarea {
                background: transparent;
                resize: none;
                min-width: 60px;
                min-height: 36px;
                box-sizing: border-box;
                border-color: transparent;
                overflow: hidden;
                font-family: 宋体;

                &:hover {
                    cursor: text;
                    outline: #488ff9 solid 1px;
                }
            }
        }

        #kssRectangleCanvas {
            height: 100%;
            width: 100%;
            top: 0;
            left: 0;
            cursor: move;
            position: absolute;
            z-index: 99;
        }

        .kssDot,
        .kssLine {
            position: absolute;
            background: $baseColor;
            z-index: 100;
        }

        .kssDot {
            border: 1px solid $baseColor;
            border-radius: 50%;
            background: #fff;
        }

        #kssCurrentImgDom {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            display: none;
        }

        #kssToolbar {
            position: absolute;
            right: 0;
            background: #837e75;
            border: 1px solid #626262;
            border-radius: 4px;
            box-sizing: border-box;
            height: 40px;
            box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            width: auto;
            padding: 0 10px;
            z-index: 100;

            .split {
                border-left: 1px solid #918c8c;
                display: inline-block;
                height: 20px;
                margin: 0 8px;
            }

            .kssToolbarItemBT {
                display: inline-block;
                height: 30px;
                line-height: 30px;
                text-align: center;
                cursor: pointer;
                color: #fff;
                font-size: 20px;
                margin: 0 10px;

                &:hover {}

                .kssToolbarItemImg {
                    width: 20px;
                    height: 20px;
                    margin-top: 5px;
                }
            }

            .kssToolbarActiveItemBT {
                color: #53b436;
            }

            #kssToolbarMiddleArea {
                #kssColorBoard {
                    position: absolute;
                    width: 180px;
                    height: 40px;
                    right: 0;
                    background: #fff;
                    border: 1px solid #bbb;
                    border-radius: 4px;
                    display: none;
                    outline: none;
                    cursor: default;
                    z-index: 100;

                    #kssCurrentColor {
                        display: inline-block;
                        width: 30px;
                        height: 30px;
                        margin: 5px 8px 0 8px;
                        box-sizing: border-box;
                        border: 1px solid #333;
                    }

                    #kssColorItemWrapper {
                        display: inline-block;
                        vertical-align: top;
                        width: 130px;
                        margin-top: 5px;
                        font-size: 0;

                        .kssColorItem {
                            display: inline-block;
                            width: 14px;
                            height: 14px;
                            margin-right: 2px;
                            box-sizing: border-box;
                            border: 1px solid #333;
                            cursor: pointer;
                        }
                    }
                }

                #kssSetLineWidth {
                    position: absolute;
                    width: 155px;
                    height: 40px;
                    right: 0;
                    background: #fff;
                    border: 1px solid #bbb;
                    border-radius: 4px;
                    display: none;
                    outline: none;
                    cursor: default;
                    z-index: 100;

                    #kssNumInputWrapper {
                        margin: 7px 0 0 8px;
                        position: relative;
                        display: inline-block;

                        #kssNumInput {
                            width: 40px;
                            height: 24px;
                            border: 1px solid #bbb;
                            border-radius: 4px;
                            padding: 0 15px 0 8px;
                        }

                        #kssArrowNumWrapper {
                            position: absolute;
                            right: 0;
                            top: 1px;
                            border-radius: 0 4px 4px 0;
                            font-size: 0;
                            line-height: 12px;

                            #kssUpNum,
                            #kssDownNum {
                                height: 12px;
                                font-size: 12px;
                                cursor: pointer;

                                &:hover {
                                    background: #dedede;
                                }
                            }
                        }
                    }

                    #kssShowLineWidthWrapper {
                        display: inline-block;
                        height: 40px;
                        line-height: 40px;
                        vertical-align: top;
                        width: 80px;
                        text-align: center;

                        #kssShowLineWidth {
                            height: 20px;
                            display: inline-block;
                            vertical-align: middle
                        }
                    }
                }
            }
        }
    }
}