All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme-base.components.input._texteditor.scss Maven / Gradle / Ivy

There is a newer version: 15.0.0
Show newest version
.ui-texteditor {
    .ui-editor-toolbar {
        background: $editorToolbarBg;
        border-top-right-radius: $borderRadius;
        border-top-left-radius: $borderRadius;

        &.ql-snow {
            border: $editorToolbarBorder;

            .ql-stroke {
                stroke: $editorToolbarIconColor;
            }
    
            .ql-fill {
                fill: $editorToolbarIconColor;
            }
    
            .ql-picker {
                .ql-picker-label {
                    border: 0 none;
                    color: $editorToolbarIconColor;

                    &:hover {
                        color: $editorToolbarIconHoverColor;

                        .ql-stroke {
                            stroke: $editorToolbarIconHoverColor;
                        }
                
                        .ql-fill {
                            fill: $editorToolbarIconHoverColor;
                        }
                    }
                }

                &.ql-expanded {
                    .ql-picker-label {
                        color: $editorToolbarIconHoverColor;

                        .ql-stroke {
                            stroke: $editorToolbarIconHoverColor;
                        }
                
                        .ql-fill {
                            fill: $editorToolbarIconHoverColor;
                        }
                    }

                    .ql-picker-options {
                        background: $inputListBg;
                        border:$inputOverlayBorder;
                        box-shadow:$inputOverlayShadow;
                        border-radius: $borderRadius;
                        padding: $inputListPadding;

                        .ql-picker-item {
                            color: $inputListItemTextColor;
                            
                            &:hover {
                                color: $inputListItemTextHoverColor;
                                background: $inputListItemHoverBg;
                            }
                        }
                    }

                    &:not(.ql-icon-picker) {
                        .ql-picker-item {
                            padding: $inputListItemPadding;
                        }
                    }
                }
            }
        }
    }

    .ql-container {
        border-bottom-right-radius: $borderRadius;
        border-bottom-left-radius: $borderRadius;

        &.ql-snow {
            border: $editorContentBorder;
        }

        .ql-editor {
            background: $inputBg;
            color: $inputTextColor;
            border-bottom-right-radius: $borderRadius;
            border-bottom-left-radius: $borderRadius;
        }
    }

    .ql-snow.ql-toolbar button:hover,
    .ql-snow.ql-toolbar button:focus {
        color: $editorToolbarIconHoverColor;

        .ql-stroke {
            stroke: $editorToolbarIconHoverColor;
        }

        .ql-fill {
            fill: $editorToolbarIconHoverColor;
        }
    }

    .ql-snow.ql-toolbar button.ql-active,
    .ql-snow.ql-toolbar .ql-picker-label.ql-active,
    .ql-snow.ql-toolbar .ql-picker-item.ql-selected {
        color: $editorIconActiveColor;

        .ql-stroke {
            stroke: $editorIconActiveColor;
        }

        .ql-fill {
            fill: $editorIconActiveColor;
        }

        .ql-picker-label {
            color: $editorIconActiveColor;
        }
    }

    &.ui-state-error {    
        .ui-editor-toolbar,
        .ql-container {
            &.ql-snow {
                border-color: $errorColor;
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy