﻿.wysiwyg-editor {
    min-height: 18rem;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3);
    border-top: 6px solid #0090ff;
    border-radius: 3px;
}

    .wysiwyg-editor .toolbar {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

        .wysiwyg-editor .toolbar .line {
            display: flex;
            border-bottom: 1px solid #e2e2e2;
        }

            .wysiwyg-editor .toolbar .line:last-child {
                border-bottom: none;
            }

            .wysiwyg-editor .toolbar .line .box {
                display: flex;
                border-left: 1px solid #e2e2e2;
            }

                .wysiwyg-editor .toolbar .line .box .editor-btn {
                    display: block;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    transition: 0.2s ease all;
                }

                    .wysiwyg-editor .toolbar .line .box .editor-btn:hover, .wysiwyg-editor .toolbar .line .box .editor-btn.active {
                        background-color: #e1e1e1;
                        cursor: pointer;
                    }

                    .wysiwyg-editor .toolbar .line .box .editor-btn.icon img {
                        width: 15px;
                        padding: 9px;
                        box-sizing: content-box;
                    }

                    .wysiwyg-editor .toolbar .line .box .editor-btn.icon.smaller img {
                        width: 16px;
                    }

                    .wysiwyg-editor .toolbar .line .box .editor-btn.icon i {
                        width: 15px;
                        padding: 9px;
                        box-sizing: content-box;
                    }

                    .wysiwyg-editor .toolbar .line .box .editor-btn.icon.smaller i {
                        width: 16px;
                    }

                    .wysiwyg-editor .toolbar .line .box .editor-btn.has-submenu {
                        width: 20px;
                        padding: 0 10px;
                    }

                        .wysiwyg-editor .toolbar .line .box .editor-btn.has-submenu::after {
                            content: '';
                            width: 6px;
                            height: 6px;
                            position: absolute;
                            background-image: url(https://img.icons8.com/ios-glyphs/30/000000/chevron-down.png);
                            background-repeat: no-repeat;
                            background-size: cover;
                            background-position: center;
                            right: 4px;
                        }

                        .wysiwyg-editor .toolbar .line .box .editor-btn.has-submenu .submenu {
                            display: none;
                            position: absolute;
                            top: 34px;
                            left: -1px;
                            z-index: 10;
                            background-color: #fff;
                            border: 1px solid #b5b5b5;
                            border-top: none;
                        }

                            .wysiwyg-editor .toolbar .line .box .editor-btn.has-submenu .submenu .btn {
                                width: 39px;
                            }

                            .wysiwyg-editor .toolbar .line .box .editor-btn.has-submenu .submenu:hover {
                                display: block;
                            }

                        .wysiwyg-editor .toolbar .line .box .editor-btn.has-submenu:hover .submenu {
                            display: block;
                        }

    .wysiwyg-editor .content-area {
        padding: 15px 12px;
        line-height: 1.5;
    }

        .wysiwyg-editor .content-area .visual-view {
            outline: none;
            min-height: 12rem;
        }

            .wysiwyg-editor .content-area .visual-view p {
                margin: 12px 0;
            }

        .wysiwyg-editor .content-area .html-view {
            outline: none;
            display: none;
            width: 100%;
            height: 200px;
            border: none;
            resize: none;
        }
