primevue-mirror/components/lib/editor/Editor.vue

1128 lines
32 KiB
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
2023-05-05 10:15:25 +00:00
<div class="p-editor-container" v-bind="ptm('root')">
<div ref="toolbarElement" class="p-editor-toolbar" v-bind="ptm('toolbar')">
2022-09-06 12:03:37 +00:00
<slot name="toolbar">
2023-05-05 10:15:25 +00:00
<span class="ql-formats" v-bind="ptm('formats')">
<select class="ql-header" defaultValue="0" v-bind="ptm('select')">
<option value="1" v-bind="ptm('option')">Heading</option>
<option value="2" v-bind="ptm('option')">Subheading</option>
<option value="0" v-bind="ptm('option')">Normal</option>
2022-09-06 12:03:37 +00:00
</select>
2023-05-05 10:15:25 +00:00
<select class="ql-font" v-bind="ptm('select')">
<option v-bind="ptm('option')"></option>
<option value="serif" v-bind="ptm('option')"></option>
<option value="monospace" v-bind="ptm('option')"></option>
2022-09-06 12:03:37 +00:00
</select>
</span>
2023-05-05 10:15:25 +00:00
<span class="ql-formats" v-bind="ptm('formats')">
<button class="ql-bold" type="button" v-bind="ptm('button')"></button>
<button class="ql-italic" type="button" v-bind="ptm('button')"></button>
<button class="ql-underline" type="button" v-bind="ptm('button')"></button>
2022-09-06 12:03:37 +00:00
</span>
2023-05-05 10:15:25 +00:00
<span :key="reRenderColorKey" class="ql-formats" v-bind="ptm('formats')">
<select class="ql-color" v-bind="ptm('select')"></select>
<select class="ql-background" v-bind="ptm('select')"></select>
2022-09-06 12:03:37 +00:00
</span>
2023-05-05 10:15:25 +00:00
<span class="ql-formats" v-bind="ptm('formats')">
<button class="ql-list" value="ordered" type="button" v-bind="ptm('button')"></button>
<button class="ql-list" value="bullet" type="button" v-bind="ptm('button')"></button>
<select class="ql-align" v-bind="ptm('select')">
<option defaultValue v-bind="ptm('option')"></option>
<option value="center" v-bind="ptm('option')"></option>
<option value="right" v-bind="ptm('option')"></option>
<option value="justify" v-bind="ptm('option')"></option>
2022-09-06 12:03:37 +00:00
</select>
</span>
2023-05-05 10:15:25 +00:00
<span class="ql-formats" v-bind="ptm('formats')">
<button class="ql-link" type="button" v-bind="ptm('button')"></button>
<button class="ql-image" type="button" v-bind="ptm('button')"></button>
<button class="ql-code-block" type="button" v-bind="ptm('button')"></button>
2022-09-06 12:03:37 +00:00
</span>
2023-05-05 10:15:25 +00:00
<span class="ql-formats" v-bind="ptm('formats')">
<button class="ql-clean" type="button" v-bind="ptm('button')"></button>
2022-09-06 12:03:37 +00:00
</span>
</slot>
</div>
2023-05-05 10:15:25 +00:00
<div ref="editorElement" class="p-editor-content" :style="editorStyle" v-bind="ptm('content')"></div>
2022-09-06 12:03:37 +00:00
</div>
</template>
<script>
2023-05-05 10:15:25 +00:00
import BaseComponent from 'primevue/basecomponent';
2022-09-14 11:26:01 +00:00
import { DomHandler } from 'primevue/utils';
const QuillJS = (function () {
try {
return window.Quill;
} catch {
return null;
}
})();
2022-09-06 12:03:37 +00:00
export default {
name: 'Editor',
2023-05-05 10:15:25 +00:00
extends: BaseComponent,
2022-09-14 11:26:01 +00:00
emits: ['update:modelValue', 'text-change', 'selection-change', 'load'],
2022-09-06 12:03:37 +00:00
props: {
modelValue: String,
placeholder: String,
readonly: Boolean,
formats: Array,
2022-09-14 11:26:01 +00:00
editorStyle: null,
modules: null
2022-09-06 12:03:37 +00:00
},
data() {
return {
reRenderColorKey: 0
};
},
2022-09-06 12:03:37 +00:00
quill: null,
watch: {
modelValue(newValue, oldValue) {
if (newValue !== oldValue && this.quill && !this.quill.hasFocus()) {
this.reRenderColorKey++;
2022-09-06 12:03:37 +00:00
this.renderValue(newValue);
}
}
},
mounted() {
2022-09-14 11:26:01 +00:00
const configuration = {
2022-09-06 12:03:37 +00:00
modules: {
2022-09-14 11:26:01 +00:00
toolbar: this.$refs.toolbarElement,
...this.modules
2022-09-06 12:03:37 +00:00
},
readOnly: this.readonly,
theme: 'snow',
formats: this.formats,
placeholder: this.placeholder
2022-09-14 11:26:01 +00:00
};
if (QuillJS) {
// Loaded by script only
this.quill = new QuillJS(this.$refs.editorElement, configuration);
this.initQuill();
this.handleLoad();
} else {
import('quill')
.then((module) => {
if (module && DomHandler.isExist(this.$refs.editorElement)) {
if (module.default) {
// webpack
this.quill = new module.default(this.$refs.editorElement, configuration);
} else {
// parceljs
this.quill = new module(this.$refs.editorElement, configuration);
}
this.initQuill();
}
})
.then(() => {
this.handleLoad();
});
}
},
beforeUnmount() {
this.quill = null;
},
methods: {
renderValue(value) {
if (this.quill) {
if (value) this.quill.setContents(this.quill.clipboard.convert(value));
else this.quill.setText('');
}
},
initQuill() {
this.renderValue(this.modelValue);
this.quill.on('text-change', (delta, oldContents, source) => {
if (source === 'user') {
let html = this.$refs.editorElement.children[0].innerHTML;
let text = this.quill.getText().trim();
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
if (html === '<p><br></p>') {
html = '';
}
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
this.$emit('update:modelValue', html);
this.$emit('text-change', {
htmlValue: html,
textValue: text,
delta: delta,
source: source,
instance: this.quill
});
}
});
this.quill.on('selection-change', (range, oldRange, source) => {
2022-09-06 12:03:37 +00:00
let html = this.$refs.editorElement.children[0].innerHTML;
let text = this.quill.getText().trim();
2022-09-14 11:26:01 +00:00
this.$emit('selection-change', {
2022-09-06 12:03:37 +00:00
htmlValue: html,
textValue: text,
2022-09-14 11:26:01 +00:00
range: range,
oldRange: oldRange,
2022-09-06 12:03:37 +00:00
source: source,
instance: this.quill
});
2022-09-14 11:26:01 +00:00
});
},
handleLoad() {
if (this.quill && this.quill.getModule('toolbar')) {
this.$emit('load', { instance: this.quill });
2022-09-06 12:03:37 +00:00
}
}
}
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
</script>
<style>
/*!
* Quill Editor v1.3.3
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
.ql-container {
2022-09-14 11:26:01 +00:00
box-sizing: border-box;
font-family: Helvetica, Arial, sans-serif;
font-size: 13px;
height: 100%;
margin: 0px;
position: relative;
2022-09-06 12:03:37 +00:00
}
.ql-container.ql-disabled .ql-tooltip {
2022-09-14 11:26:01 +00:00
visibility: hidden;
2022-09-06 12:03:37 +00:00
}
.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {
2022-09-14 11:26:01 +00:00
pointer-events: none;
2022-09-06 12:03:37 +00:00
}
.ql-clipboard {
2022-09-14 11:26:01 +00:00
left: -100000px;
height: 1px;
overflow-y: hidden;
position: absolute;
top: 50%;
2022-09-06 12:03:37 +00:00
}
.ql-clipboard p {
2022-09-14 11:26:01 +00:00
margin: 0;
padding: 0;
2022-09-06 12:03:37 +00:00
}
.ql-editor {
2022-09-14 11:26:01 +00:00
box-sizing: border-box;
line-height: 1.42;
height: 100%;
outline: none;
overflow-y: auto;
padding: 12px 15px;
tab-size: 4;
-moz-tab-size: 4;
text-align: left;
white-space: pre-wrap;
word-wrap: break-word;
2022-09-06 12:03:37 +00:00
}
.ql-editor > * {
2022-09-14 11:26:01 +00:00
cursor: text;
2022-09-06 12:03:37 +00:00
}
.ql-editor p,
.ql-editor ol,
.ql-editor ul,
.ql-editor pre,
.ql-editor blockquote,
.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
2022-09-14 11:26:01 +00:00
margin: 0;
padding: 0;
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol,
.ql-editor ul {
2022-09-14 11:26:01 +00:00
padding-left: 1.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol > li,
.ql-editor ul > li {
2022-09-14 11:26:01 +00:00
list-style-type: none;
2022-09-06 12:03:37 +00:00
}
.ql-editor ul > li::before {
2022-09-14 11:26:01 +00:00
content: '\2022';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-editor ul[data-checked='true'],
.ql-editor ul[data-checked='false'] {
pointer-events: none;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-editor ul[data-checked='true'] > li *,
.ql-editor ul[data-checked='false'] > li * {
pointer-events: all;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-editor ul[data-checked='true'] > li::before,
.ql-editor ul[data-checked='false'] > li::before {
color: #777;
cursor: pointer;
pointer-events: all;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-editor ul[data-checked='true'] > li::before {
content: '\2611';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-editor ul[data-checked='false'] > li::before {
content: '\2610';
2022-09-06 12:03:37 +00:00
}
.ql-editor li::before {
2022-09-14 11:26:01 +00:00
display: inline-block;
white-space: nowrap;
width: 1.2rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li:not(.ql-direction-rtl)::before {
2022-09-14 11:26:01 +00:00
margin-left: -1.5rem;
margin-right: 0.3rem;
text-align: right;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-direction-rtl::before {
2022-09-14 11:26:01 +00:00
margin-left: 0.3rem;
margin-right: -1.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li:not(.ql-direction-rtl),
.ql-editor ul li:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 1.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-direction-rtl,
.ql-editor ul li.ql-direction-rtl {
2022-09-14 11:26:01 +00:00
padding-right: 1.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li {
2022-09-14 11:26:01 +00:00
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
counter-increment: list-0;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li:before {
2022-09-14 11:26:01 +00:00
content: counter(list-0, decimal) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-1 {
2022-09-14 11:26:01 +00:00
counter-increment: list-1;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-1:before {
2022-09-14 11:26:01 +00:00
content: counter(list-1, lower-alpha) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-1 {
2022-09-14 11:26:01 +00:00
counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-2 {
2022-09-14 11:26:01 +00:00
counter-increment: list-2;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-2:before {
2022-09-14 11:26:01 +00:00
content: counter(list-2, lower-roman) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-2 {
2022-09-14 11:26:01 +00:00
counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-3 {
2022-09-14 11:26:01 +00:00
counter-increment: list-3;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-3:before {
2022-09-14 11:26:01 +00:00
content: counter(list-3, decimal) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-3 {
2022-09-14 11:26:01 +00:00
counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-4 {
2022-09-14 11:26:01 +00:00
counter-increment: list-4;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-4:before {
2022-09-14 11:26:01 +00:00
content: counter(list-4, lower-alpha) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-4 {
2022-09-14 11:26:01 +00:00
counter-reset: list-5 list-6 list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-5 {
2022-09-14 11:26:01 +00:00
counter-increment: list-5;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-5:before {
2022-09-14 11:26:01 +00:00
content: counter(list-5, lower-roman) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-5 {
2022-09-14 11:26:01 +00:00
counter-reset: list-6 list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-6 {
2022-09-14 11:26:01 +00:00
counter-increment: list-6;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-6:before {
2022-09-14 11:26:01 +00:00
content: counter(list-6, decimal) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-6 {
2022-09-14 11:26:01 +00:00
counter-reset: list-7 list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-7 {
2022-09-14 11:26:01 +00:00
counter-increment: list-7;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-7:before {
2022-09-14 11:26:01 +00:00
content: counter(list-7, lower-alpha) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-7 {
2022-09-14 11:26:01 +00:00
counter-reset: list-8 list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-8 {
2022-09-14 11:26:01 +00:00
counter-increment: list-8;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-8:before {
2022-09-14 11:26:01 +00:00
content: counter(list-8, lower-roman) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-8 {
2022-09-14 11:26:01 +00:00
counter-reset: list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-9 {
2022-09-14 11:26:01 +00:00
counter-increment: list-9;
2022-09-06 12:03:37 +00:00
}
.ql-editor ol li.ql-indent-9:before {
2022-09-14 11:26:01 +00:00
content: counter(list-9, decimal) '. ';
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 3rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 4.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 3rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 4.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-2:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 6rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 7.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 6rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 7.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-3:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 9rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 10.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 9rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 10.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-4:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 12rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 13.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 12rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 13.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-5:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 15rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 16.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 15rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 16.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-6:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 18rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 19.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 18rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 19.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-7:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 21rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 22.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 21rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 22.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-8:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 24rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 25.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 24rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 25.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-9:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 27rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
2022-09-14 11:26:01 +00:00
padding-left: 28.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 27rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
2022-09-14 11:26:01 +00:00
padding-right: 28.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-video {
2022-09-14 11:26:01 +00:00
display: block;
max-width: 100%;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-video.ql-align-center {
2022-09-14 11:26:01 +00:00
margin: 0 auto;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-video.ql-align-right {
2022-09-14 11:26:01 +00:00
margin: 0 0 0 auto;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-black {
2022-09-14 11:26:01 +00:00
background-color: #000;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-red {
2022-09-14 11:26:01 +00:00
background-color: #e60000;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-orange {
2022-09-14 11:26:01 +00:00
background-color: #f90;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-yellow {
2022-09-14 11:26:01 +00:00
background-color: #ff0;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-green {
2022-09-14 11:26:01 +00:00
background-color: #008a00;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-blue {
2022-09-14 11:26:01 +00:00
background-color: #06c;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-bg-purple {
2022-09-14 11:26:01 +00:00
background-color: #93f;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-white {
2022-09-14 11:26:01 +00:00
color: #fff;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-red {
2022-09-14 11:26:01 +00:00
color: #e60000;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-orange {
2022-09-14 11:26:01 +00:00
color: #f90;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-yellow {
2022-09-14 11:26:01 +00:00
color: #ff0;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-green {
2022-09-14 11:26:01 +00:00
color: #008a00;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-blue {
2022-09-14 11:26:01 +00:00
color: #06c;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-color-purple {
2022-09-14 11:26:01 +00:00
color: #93f;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-font-serif {
2022-09-14 11:26:01 +00:00
font-family: Georgia, Times New Roman, serif;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-font-monospace {
2022-09-14 11:26:01 +00:00
font-family: Monaco, Courier New, monospace;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-size-small {
2022-09-14 11:26:01 +00:00
font-size: 0.75rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-size-large {
2022-09-14 11:26:01 +00:00
font-size: 1.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-size-huge {
2022-09-14 11:26:01 +00:00
font-size: 2.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-direction-rtl {
2022-09-14 11:26:01 +00:00
direction: rtl;
text-align: inherit;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-align-center {
2022-09-14 11:26:01 +00:00
text-align: center;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-align-justify {
2022-09-14 11:26:01 +00:00
text-align: justify;
2022-09-06 12:03:37 +00:00
}
.ql-editor .ql-align-right {
2022-09-14 11:26:01 +00:00
text-align: right;
2022-09-06 12:03:37 +00:00
}
.ql-editor.ql-blank::before {
2022-09-14 11:26:01 +00:00
color: rgba(0, 0, 0, 0.6);
content: attr(data-placeholder);
font-style: italic;
left: 15px;
pointer-events: none;
position: absolute;
right: 15px;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar:after,
.ql-snow .ql-toolbar:after {
2022-09-14 11:26:01 +00:00
clear: both;
content: '';
display: table;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar button,
.ql-snow .ql-toolbar button {
2022-09-14 11:26:01 +00:00
background: none;
border: none;
cursor: pointer;
display: inline-block;
float: left;
height: 24px;
padding: 3px 5px;
width: 28px;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar button svg,
.ql-snow .ql-toolbar button svg {
2022-09-14 11:26:01 +00:00
float: left;
height: 100%;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar button:active:hover,
.ql-snow .ql-toolbar button:active:hover {
2022-09-14 11:26:01 +00:00
outline: none;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow.ql-toolbar input.ql-image[type='file'],
.ql-snow .ql-toolbar input.ql-image[type='file'] {
display: none;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow .ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active,
.ql-snow .ql-toolbar .ql-picker-label.ql-active,
.ql-snow.ql-toolbar .ql-picker-item:hover,
.ql-snow .ql-toolbar .ql-picker-item:hover,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected {
2022-09-14 11:26:01 +00:00
color: #06c;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button:focus .ql-fill,
.ql-snow .ql-toolbar button:focus .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {
2022-09-14 11:26:01 +00:00
fill: #06c;
2022-09-06 12:03:37 +00:00
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:focus .ql-stroke,
.ql-snow .ql-toolbar button:focus .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow.ql-toolbar button:hover .ql-stroke-miter,
.ql-snow .ql-toolbar button:hover .ql-stroke-miter,
.ql-snow.ql-toolbar button:focus .ql-stroke-miter,
.ql-snow .ql-toolbar button:focus .ql-stroke-miter,
.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,
.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {
2022-09-14 11:26:01 +00:00
stroke: #06c;
2022-09-06 12:03:37 +00:00
}
@media (pointer: coarse) {
2022-09-14 11:26:01 +00:00
.ql-snow.ql-toolbar button:hover:not(.ql-active),
.ql-snow .ql-toolbar button:hover:not(.ql-active) {
color: #444;
}
.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,
.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,
.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {
fill: #444;
}
.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,
.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,
.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,
.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {
stroke: #444;
}
2022-09-06 12:03:37 +00:00
}
.ql-snow {
2022-09-14 11:26:01 +00:00
box-sizing: border-box;
2022-09-06 12:03:37 +00:00
}
.ql-snow * {
2022-09-14 11:26:01 +00:00
box-sizing: border-box;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-hidden {
2022-09-14 11:26:01 +00:00
display: none;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-out-bottom,
.ql-snow .ql-out-top {
2022-09-14 11:26:01 +00:00
visibility: hidden;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip {
2022-09-14 11:26:01 +00:00
position: absolute;
transform: translateY(10px);
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip a {
2022-09-14 11:26:01 +00:00
cursor: pointer;
text-decoration: none;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip.ql-flip {
2022-09-14 11:26:01 +00:00
transform: translateY(-10px);
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-formats {
2022-09-14 11:26:01 +00:00
display: inline-block;
vertical-align: middle;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-formats:after {
2022-09-14 11:26:01 +00:00
clear: both;
content: '';
display: table;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-stroke {
2022-09-14 11:26:01 +00:00
fill: none;
stroke: #444;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-stroke-miter {
2022-09-14 11:26:01 +00:00
fill: none;
stroke: #444;
stroke-miterlimit: 10;
stroke-width: 2;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
2022-09-14 11:26:01 +00:00
fill: #444;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-empty {
2022-09-14 11:26:01 +00:00
fill: none;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-even {
2022-09-14 11:26:01 +00:00
fill-rule: evenodd;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-thin,
.ql-snow .ql-stroke.ql-thin {
2022-09-14 11:26:01 +00:00
stroke-width: 1;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-transparent {
2022-09-14 11:26:01 +00:00
opacity: 0.4;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-direction svg:last-child {
2022-09-14 11:26:01 +00:00
display: none;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-direction.ql-active svg:last-child {
2022-09-14 11:26:01 +00:00
display: inline;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-direction.ql-active svg:first-child {
2022-09-14 11:26:01 +00:00
display: none;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor h1 {
2022-09-14 11:26:01 +00:00
font-size: 2rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor h2 {
2022-09-14 11:26:01 +00:00
font-size: 1.5rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor h3 {
2022-09-14 11:26:01 +00:00
font-size: 1.17rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor h4 {
2022-09-14 11:26:01 +00:00
font-size: 1rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor h5 {
2022-09-14 11:26:01 +00:00
font-size: 0.83rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor h6 {
2022-09-14 11:26:01 +00:00
font-size: 0.67rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor a {
2022-09-14 11:26:01 +00:00
text-decoration: underline;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor blockquote {
2022-09-14 11:26:01 +00:00
border-left: 4px solid #ccc;
margin-bottom: 5px;
margin-top: 5px;
padding-left: 16px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor code,
.ql-snow .ql-editor pre {
2022-09-14 11:26:01 +00:00
background-color: #f0f0f0;
border-radius: 3px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor pre {
2022-09-14 11:26:01 +00:00
white-space: pre-wrap;
margin-bottom: 5px;
margin-top: 5px;
padding: 5px 10px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor code {
2022-09-14 11:26:01 +00:00
font-size: 85%;
padding: 2px 4px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor pre.ql-syntax {
2022-09-14 11:26:01 +00:00
background-color: #23241f;
color: #f8f8f2;
overflow: visible;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-editor img {
2022-09-14 11:26:01 +00:00
max-width: 100%;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker {
2022-09-14 11:26:01 +00:00
color: #444;
display: inline-block;
float: left;
font-size: 14px;
font-weight: 500;
height: 24px;
position: relative;
vertical-align: middle;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker-label {
2022-09-14 11:26:01 +00:00
cursor: pointer;
display: inline-block;
height: 100%;
padding-left: 8px;
padding-right: 2px;
position: relative;
width: 100%;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker-label::before {
2022-09-14 11:26:01 +00:00
display: inline-block;
line-height: 22px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker-options {
2022-09-14 11:26:01 +00:00
background-color: #fff;
display: none;
min-width: 100%;
padding: 4px 8px;
position: absolute;
white-space: nowrap;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker-options .ql-picker-item {
2022-09-14 11:26:01 +00:00
cursor: pointer;
display: block;
padding-bottom: 5px;
padding-top: 5px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label {
2022-09-14 11:26:01 +00:00
color: #ccc;
z-index: 2;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
2022-09-14 11:26:01 +00:00
fill: #ccc;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
2022-09-14 11:26:01 +00:00
stroke: #ccc;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-expanded .ql-picker-options {
2022-09-14 11:26:01 +00:00
display: block;
margin-top: -1px;
top: 100%;
z-index: 1;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker,
.ql-snow .ql-icon-picker {
2022-09-14 11:26:01 +00:00
width: 28px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker .ql-picker-label,
.ql-snow .ql-icon-picker .ql-picker-label {
2022-09-14 11:26:01 +00:00
padding: 2px 4px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker .ql-picker-label svg,
.ql-snow .ql-icon-picker .ql-picker-label svg {
2022-09-14 11:26:01 +00:00
right: 4px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-icon-picker .ql-picker-options {
2022-09-14 11:26:01 +00:00
padding: 4px 0px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-icon-picker .ql-picker-item {
2022-09-14 11:26:01 +00:00
height: 24px;
width: 24px;
padding: 2px 4px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker .ql-picker-options {
2022-09-14 11:26:01 +00:00
padding: 3px 5px;
width: 152px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker .ql-picker-item {
2022-09-14 11:26:01 +00:00
border: 1px solid transparent;
float: left;
height: 16px;
margin: 2px;
padding: 0px;
width: 16px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
2022-09-14 11:26:01 +00:00
position: absolute;
margin-top: -9px;
right: 0;
top: 50%;
width: 18px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {
2022-09-14 11:26:01 +00:00
content: attr(data-label);
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-header {
2022-09-14 11:26:01 +00:00
width: 98px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before {
2022-09-14 11:26:01 +00:00
content: 'Normal';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='1']::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {
content: 'Heading 1';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='2']::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {
content: 'Heading 2';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='3']::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {
content: 'Heading 3';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='4']::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {
content: 'Heading 4';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='5']::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {
content: 'Heading 5';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='6']::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {
content: 'Heading 6';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {
font-size: 2rem;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {
font-size: 1.5rem;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {
font-size: 1.17rem;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {
font-size: 1rem;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {
font-size: 0.83rem;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {
font-size: 0.67rem;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-font {
2022-09-14 11:26:01 +00:00
width: 108px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-snow .ql-picker.ql-font .ql-picker-item::before {
2022-09-14 11:26:01 +00:00
content: 'Sans Serif';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='serif']::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {
content: 'Serif';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='monospace']::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {
content: 'Monospace';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {
font-family: Georgia, Times New Roman, serif;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {
font-family: Monaco, Courier New, monospace;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-size {
2022-09-14 11:26:01 +00:00
width: 98px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
2022-09-14 11:26:01 +00:00
content: 'Normal';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='small']::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {
content: 'Small';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='large']::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {
content: 'Large';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='huge']::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {
content: 'Huge';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {
font-size: 10px;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {
font-size: 18px;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {
font-size: 32px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker.ql-background .ql-picker-item {
2022-09-14 11:26:01 +00:00
background-color: #fff;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-color-picker.ql-color .ql-picker-item {
2022-09-14 11:26:01 +00:00
background-color: #000;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow {
2022-09-14 11:26:01 +00:00
border: 1px solid #ccc;
box-sizing: border-box;
font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
padding: 8px;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow .ql-formats {
2022-09-14 11:26:01 +00:00
margin-right: 15px;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow .ql-picker-label {
2022-09-14 11:26:01 +00:00
border: 1px solid transparent;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow .ql-picker-options {
2022-09-14 11:26:01 +00:00
border: 1px solid transparent;
box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
2022-09-14 11:26:01 +00:00
border-color: #ccc;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
2022-09-14 11:26:01 +00:00
border-color: #ccc;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,
.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {
2022-09-14 11:26:01 +00:00
border-color: #000;
2022-09-06 12:03:37 +00:00
}
.ql-toolbar.ql-snow + .ql-container.ql-snow {
2022-09-14 11:26:01 +00:00
border-top: 0px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip {
2022-09-14 11:26:01 +00:00
background-color: #fff;
border: 1px solid #ccc;
box-shadow: 0px 0px 5px #ddd;
color: #444;
padding: 5px 12px;
white-space: nowrap;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip::before {
2022-09-14 11:26:01 +00:00
content: 'Visit URL:';
line-height: 26px;
margin-right: 8px;
}
.ql-snow .ql-tooltip input[type='text'] {
display: none;
border: 1px solid #ccc;
font-size: 13px;
height: 26px;
margin: 0px;
padding: 3px 5px;
width: 170px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip a.ql-preview {
2022-09-14 11:26:01 +00:00
display: inline-block;
max-width: 200px;
overflow-x: hidden;
text-overflow: ellipsis;
vertical-align: top;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip a.ql-action::after {
2022-09-14 11:26:01 +00:00
border-right: 1px solid #ccc;
content: 'Edit';
margin-left: 16px;
padding-right: 8px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip a.ql-remove::before {
2022-09-14 11:26:01 +00:00
content: 'Remove';
margin-left: 8px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip a {
2022-09-14 11:26:01 +00:00
line-height: 26px;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip.ql-editing a.ql-preview,
.ql-snow .ql-tooltip.ql-editing a.ql-remove {
2022-09-14 11:26:01 +00:00
display: none;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-tooltip.ql-editing input[type='text'] {
display: inline-block;
2022-09-06 12:03:37 +00:00
}
.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
2022-09-14 11:26:01 +00:00
border-right: 0px;
content: 'Save';
padding-right: 0px;
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-tooltip[data-mode='link']::before {
content: 'Enter link:';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-tooltip[data-mode='formula']::before {
content: 'Enter formula:';
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
.ql-snow .ql-tooltip[data-mode='video']::before {
content: 'Enter video:';
2022-09-06 12:03:37 +00:00
}
.ql-snow a {
2022-09-14 11:26:01 +00:00
color: #06c;
2022-09-06 12:03:37 +00:00
}
.ql-container.ql-snow {
2022-09-14 11:26:01 +00:00
border: 1px solid #ccc;
2022-09-06 12:03:37 +00:00
}
</style>