UNPKG

suneditor

Version:

Vanilla JavaScript based WYSIWYG web editor

1,748 lines (1,551 loc) 142 kB
@import url('design/index.css'); /** --- suneditor main */ .sun-editor { width: auto; height: auto; box-sizing: border-box; font-family: var(--se-main-font-family); border: 1px solid var(--se-main-out-color); background-color: var(--se-main-background-color); color: var(--se-main-color); font-size: var(--se-main-font-size); } .sun-editor * { box-sizing: border-box; overflow: visible; } .sun-editor-common body, .sun-editor-common div, .sun-editor-common dl, .sun-editor-common dt, .sun-editor-common dd, .sun-editor-common ul, .sun-editor-common ol, .sun-editor-common li, .sun-editor-common h1, .sun-editor-common h2, .sun-editor-common h3, .sun-editor-common h4, .sun-editor-common h5, .sun-editor-common h6, .sun-editor-common pre, .sun-editor-common code, .sun-editor-common form, .sun-editor-common fieldset, .sun-editor-common legend, .sun-editor-common p, .sun-editor-common blockquote, .sun-editor-common th, .sun-editor-common td, .sun-editor-common input, .sun-editor-common select, .sun-editor-common textarea, .sun-editor-common button { margin: 0; padding: 0; border: 0; } .sun-editor-common input, .sun-editor-common select, .sun-editor-common textarea { background-color: inherit; } .sun-editor-common dl, .sun-editor-common ul, .sun-editor-common ol, .sun-editor-common menu { list-style: none; } .sun-editor-common hr { margin: 6px 0 6px 0 !important; } .sun-editor textarea { resize: none; border: 0; padding: 0; } .sun-editor button { border: 0 none; background-color: transparent; touch-action: manipulation; cursor: pointer; outline: none; } .sun-editor input, .sun-editor select, .sun-editor textarea, .sun-editor button { vertical-align: middle; } .sun-editor button span { display: block; margin: 0; padding: 0; } .sun-editor button .se-txt { display: block; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 2; max-height: 24px; } /** --- se-type-document ---------------------------------------------------------- */ .sun-editor .se-wrapper.se-type-document { --se-doc-padding: clamp( var(--se-doc-min-padding), var(--se-doc-min-padding) + calc(var(--se-doc-padding-factor) * 1vw), var(--se-doc-max-padding) ); padding: var(--se-doc-padding); background-color: var(--se-doc-background); box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.1); } .sun-editor .se-wrapper.se-type-document > .se-wrapper-inner { box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } /* se-type-document - header */ .sun-editor .se-wrapper.se-type-document .se-document-lines { width: var(--se-doc-info-width); min-width: var(--se-doc-info-min-width); font-size: var(--se-doc-info-font-size); overflow-y: auto; overflow-x: hidden; background-color: transparent; z-index: 1; } .sun-editor .se-wrapper.se-type-document .se-document-lines.se-document-responsible { min-width: unset !important; } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner { padding: var(--se-doc-info-inner-padding); padding-right: var(--se-doc-info-inner-line-padding); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-item { color: var(--se-doc-info-font-color); width: 100%; padding: var(--se-doc-info-inner-line-padding); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; cursor: pointer; } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-item:hover { text-decoration: underline; } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-item.active { color: var(--se-doc-info-active-color); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-h1 { font-weight: var(--se-doc-info-inner-line-weight-h1); padding-left: var(--se-doc-info-inner-line-indent-h1); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-h2 { font-weight: var(--se-doc-info-inner-line-weight-h2); padding-left: var(--se-doc-info-inner-line-indent-h2); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-h3 { font-weight: var(--se-doc-info-inner-line-weight-h3); padding-left: var(--se-doc-info-inner-line-indent-h3); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-h4 { font-weight: var(--se-doc-info-inner-line-weight-h4); padding-left: var(--se-doc-info-inner-line-indent-h4); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-h5 { font-weight: var(--se-doc-info-inner-line-weight-h5); padding-left: var(--se-doc-info-inner-line-indent-h5); } .sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner > div.se-doc-h6 { font-weight: var(--se-doc-info-inner-line-weight-h6); padding-left: var(--se-doc-info-inner-line-indent-h6); } /* se-type-document - page */ .sun-editor .se-wrapper.se-type-document .se-document-page { position: relative; text-align: center; pointer-events: none; z-index: 1; } .sun-editor .se-wrapper.se-type-document .se-document-page > div { position: absolute; width: var(--se-doc-info-page-width); color: var(--se-doc-info-page-font-color); background-color: var(--se-doc-info-page-background-color); font-size: inherit; left: 0px; padding: 1px 0; margin-left: 1px; } .sun-editor .se-wrapper.se-type-document .se-document-page > div > div.se-document-page-line { position: absolute; display: block; height: 0px; border-bottom: 1px dashed var(--se-doc-info-page-background-color); top: 0px; right: 100%; z-index: 1; } /* se-type-document - placeholder position set */ .sun-editor .se-wrapper.se-type-document .se-placeholder { top: var(--se-doc-padding); left: var(--se-doc-padding); right: var(--se-doc-padding); padding: var(--se-edit-inner-padding-doc-type); z-index: 2; } /* The editable is pushed inward on the start side by the header info panel and/or the block-handle gutter (`.se-mode-block`, present iff blockHandle is on). Offset the placeholder past whichever apply; the end side spans to the page edge. (RTL mirrors these in the `.se-rtl` section below.) Approximate within a few px — the panel's `%` width resolves against a different containing block than this margin, so it isn't pixel-exact, which is fine for a faint hint. */ .sun-editor .se-wrapper.se-type-document.se-type-document-header .se-placeholder { margin-left: max(var(--se-doc-info-min-width), var(--se-doc-info-width)); } .sun-editor .se-wrapper.se-type-document.se-mode-block .se-placeholder { margin-left: var(--se-block-handle-area-width); } .sun-editor .se-wrapper.se-type-document.se-mode-block.se-type-document-header .se-placeholder { margin-left: calc(var(--se-block-handle-area-width) + max(var(--se-doc-info-min-width), var(--se-doc-info-width))); } /** --- se-type-document end ---------------------------------------------------------- */ .sun-editor .se-wrapper .se-code-viewer-mirror, .sun-editor .se-wrapper .cm-editor, .sun-editor .se-wrapper .CodeMirror { font-size: var(--se-main-font-size); } /* button children are pointer event none */ .sun-editor button * { pointer-events: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; } /** button */ .sun-editor button { color: var(--se-main-color); } /** --- se buttons ---------------------------------------------------------- */ /** --- se-btn */ .sun-editor .se-btn { float: left; width: var(--se-input-btn-size); height: var(--se-input-btn-size); margin: 1px; padding: 0; font-size: var(--se-btn-font-size); line-height: 1.8; border-width: 0; border-style: solid; border-color: var(--se-input-btn-border-color); border-radius: var(--se-border-radius); transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease; } .sun-editor .se-form-group button.se-btn { border-width: 1px; } .sun-editor .se-btn:not(.on):not(.active):enabled:hover, .sun-editor .se-btn:not(.on):not(.active):enabled:focus { color: var(--se-hover-color); background-color: var(--se-hover-light-color); border-color: var(--se-hover-dark-color); } .sun-editor .se-btn:not(.on):not(.active):enabled:active, .sun-editor .se-btn:not(.on):not(.active):enabled.__se__active { background-color: var(--se-hover-light2-color); border-color: var(--se-hover-dark2-color) !important; outline: 1px solid var(--se-hover-dark3-color) !important; box-shadow: 0 0 0 0.3rem var(--se-hover-light2-color); transition: box-shadow 0.1s ease-in-out; } /* after, before button : hover */ .sun-editor .se-menu-list li:hover .se-side-btn-a:not(.on):not(.active):enabled, .sun-editor .se-menu-list li:hover .se-side-btn-b:not(.on):not(.active):enabled, .sun-editor .se-menu-list li:hover .se-side-btn-after:not(.on):not(.active):enabled, .sun-editor .se-menu-list li:hover .se-side-btn-before:not(.on):not(.active):enabled, .sun-editor .se-menu-list li:hover .se-btn-input input:enabled { border-width: 1px; border-style: solid; border-color: var(--se-hover-dark-color); } /* after, before button - on, active */ .sun-editor .se-menu-list li .se-side-btn-after.on:enabled, .sun-editor .se-menu-list li .se-side-btn-before.on:enabled, .sun-editor .se-menu-list li .se-side-btn-after.active:enabled, .sun-editor .se-menu-list li .se-side-btn-before.active:enabled, .sun-editor .se-menu-list li .se-btn-input.on input:enabled, .sun-editor .se-menu-list li .se-btn-input.active input:enabled { border-color: var(--se-active-dark3-color); } /* after, before button : hover - on, active - border */ .sun-editor .se-menu-list li .se-side-btn-after.on:enabled, .sun-editor .se-menu-list li .se-side-btn-after.active:enabled { border-right: 0; border-left: 1px solid; } .sun-editor .se-menu-list li .se-side-btn-before.on:enabled, .sun-editor .se-menu-list li .se-side-btn-before.active:enabled { border-left: 0; border-right: 1px solid; } .sun-editor .se-menu-list li .se-btn-input.on input:enabled, .sun-editor .se-menu-list li .se-btn-input.active input:enabled { border-width: 1px; border-style: solid; } /* after, before button : hover - on, active */ .sun-editor .se-menu-list li:hover .se-side-btn-after.on:enabled, .sun-editor .se-menu-list li:hover .se-side-btn-before.on:enabled, .sun-editor .se-menu-list li:hover .se-side-btn-after.active:enabled, .sun-editor .se-menu-list li:hover .se-side-btn-before.active:enabled, .sun-editor .se-menu-list li:hover .se-btn-input.on input:enabled, .sun-editor .se-menu-list li:hover .se-btn-input.active input:enabled { border-color: var(--se-active-dark4-color); } /* se-btn.on */ .sun-editor .se-btn:enabled.on { background-color: var(--se-active-light2-color); color: var(--se-active-dark3-color); border-color: var(--se-active-light5-color); } .sun-editor .se-btn:enabled.on:hover, .sun-editor .se-btn:enabled.on:focus { background-color: var(--se-active-light3-color); color: var(--se-active-hover-color); border-color: var(--se-active-light5-color); } .sun-editor .se-btn:enabled.on:active, .sun-editor .se-btn:enabled.on.__se__active { background-color: var(--se-active-light3-color); color: var(--se-active-color); border-color: var(--se-active-light3-color) !important; outline: 1px solid var(--se-active-color) !important; color: 1px solid var(--se-active-color); box-shadow: 0 0 0 0.3rem var(--se-active-light3-color); transition: box-shadow 0.1s ease-in-out; } /* se-btn.active */ .sun-editor .se-btn:enabled.active { background-color: var(--se-active-light4-color); color: var(--se-active-dark3-color); border-color: var(--se-active-dark-color); } .sun-editor .se-btn:enabled.active:hover, .sun-editor .se-btn:enabled.active:focus { background-color: var(--se-active-light5-color); color: var(--se-active-hover-color); border-color: var(--se-active-dark4-color); } .sun-editor .se-btn:enabled.active:active, .sun-editor .se-btn:enabled.active.__se__active { background-color: var(--se-active-light5-color); color: var(--se-active-hover-color); border-color: var(--se-active-dark5-color) !important; outline: 1px solid var(--se-active-dark5-color) !important; box-shadow: 0 0 0 0.3rem var(--se-active-light5-color); transition: box-shadow 0.1s ease-in-out; z-index: 1; } /** -- plain text button */ .sun-editor .se-btn.se-btn-plain { background-color: transparent; border-color: transparent; box-shadow: none; } .sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled:hover, .sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled:focus { background-color: transparent; border-color: transparent; box-shadow: none; } .sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled:active, .sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled.__se__active { background-color: transparent; border-color: transparent !important; box-shadow: none; outline: none !important; } /** --- primary button */ .sun-editor .se-btn-primary { background-color: var(--se-active-light2-color); border: 1px solid var(--se-active-dark5-color); border-radius: var(--se-border-radius); outline: 0 none; transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease; } .sun-editor .se-btn-primary:hover, .sun-editor .se-btn-primary:focus { background-color: var(--se-active-light5-color); } .sun-editor .se-btn-primary:active, .sun-editor .se-btn-primary.__se__active { background-color: var(--se-active-light2-color); border-color: var(--se-active-light2-color) !important; outline: 1px solid var(--se-active-dark5-color) !important; box-shadow: 0 0 0 0.3rem var(--se-active-light2-color); transition: box-shadow 0.1s ease-in-out; } /* --- se-btn.success */ .sun-editor .se-btn.se-btn-success { color: var(--se-success-color); border-color: var(--se-success-light5-color); } .sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled:hover, .sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled:focus { background-color: var(--se-success-light-color); border-color: var(--se-success-light5-color); } .sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled:active, .sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled.__se__active { background-color: var(--se-success-light-color); border-color: var(--se-success-light-color) !important; outline: 1px solid var(--se-success-light5-color) !important; box-shadow: 0 0 0 0.3rem var(--se-success-light-color); transition: box-shadow 0.1s ease-in-out; } /* se-btn.success.on */ .sun-editor .se-btn.se-btn-success:enabled.on { background-color: var(--se-success-light-color); color: var(--se-success-color); border-color: var(--se-success-light5-color); } .sun-editor .se-btn.se-btn-success:enabled.on:hover, .sun-editor .se-btn.se-btn-success:enabled.on:focus { background-color: var(--se-success-light2-color); color: var(--se-success-color); border-color: var(--se-success-light4-color); } .sun-editor .se-btn.se-btn-success:enabled.on:active, .sun-editor .se-btn.se-btn-success:enabled.on.__se__active { background-color: var(--se-success-light2-color); color: var(--se-success-color); border-color: var(--se-success-light2-color) !important; outline: 1px solid var(--se-success-dark-color) !important; color: 1px solid var(--se-success-color); box-shadow: 0 0 0 0.3rem var(--se-success-light2-color); transition: box-shadow 0.1s ease-in-out; } /* se-btn.success.active */ .sun-editor .se-btn.se-btn-success:enabled.active { background-color: var(--se-success-light2-color); color: var(--se-success-color); border-color: var(--se-success-dark2-color); } .sun-editor .se-btn.se-btn-success:enabled.active:hover, .sun-editor .se-btn.se-btn-success:enabled.active:focus { background-color: var(--se-success-light3-color); color: var(--se-success-dark3-color); border-color: var(--se-success-dark2-color); } .sun-editor .se-btn.se-btn-success:enabled.active:active, .sun-editor .se-btn.se-btn-success:enabled.active.__se__active { background-color: var(--se-success-light3-color); color: var(--se-success-dark3-color); border-color: var(--se-success-light3-color) !important; outline: 1px solid var(--se-success-dark2-color) !important; box-shadow: 0 0 0 0.3rem var(--se-success-light3-color); transition: box-shadow 0.1s ease-in-out; } /* --- se-btn.danger */ .sun-editor .se-btn.se-btn-danger { color: var(--se-error-color); border-color: var(--se-error-dark-color); } .sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled:hover, .sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled:focus { background-color: var(--se-error-light5-color); border-color: var(--se-error-dark-color); } .sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled:active, .sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled.__se__active { background-color: var(--se-error-light5-color); border-color: var(--se-error-light5-color) !important; outline: 1px solid var(--se-error-dark-color) !important; box-shadow: 0 0 0 0.3rem var(--se-error-light5-color); transition: box-shadow 0.1s ease-in-out; } /* se-btn.danger.on */ .sun-editor .se-btn.se-btn-danger:enabled.on { background-color: var(--se-error-light5-color); color: var(--se-error-color); border-color: var(--se-error-dark-color); } .sun-editor .se-btn.se-btn-danger:enabled.on:hover, .sun-editor .se-btn.se-btn-danger:enabled.on:focus { background-color: var(--se-error-light4-color); color: var(--se-error-color); border-color: var(--se-error-dark-color); } .sun-editor .se-btn.se-btn-danger:enabled.on:active, .sun-editor .se-btn.se-btn-danger:enabled.on.__se__active { background-color: var(--se-error-light-color); color: var(--se-error-color); border-color: var(--se-error-light-color) !important; outline: 1px solid var(--se-error-dark3-color) !important; box-shadow: 0 0 0 0.3rem var(--se-error-light4-color); transition: box-shadow 0.1s ease-in-out; } /* se-btn.danger.active */ .sun-editor .se-btn.se-btn-danger:enabled.active { background-color: var(--se-error-light4-color); color: var(--se-error-color); border-color: var(--se-error-dark3-color); } .sun-editor .se-btn.se-btn-danger:enabled.active:hover, .sun-editor .se-btn.se-btn-danger:enabled.active:focus { background-color: var(--se-error-light-color); color: var(--se-error-color); border-color: var(--se-error-dark3-color); } .sun-editor .se-btn.se-btn-danger:enabled.active:active, .sun-editor .se-btn.se-btn-danger:enabled.active.__se__active { background-color: var(--se-error-light-color); color: var(--se-error-color); border-color: var(--se-error-light-color) !important; outline: 1px solid var(--se-error-dark3-color) !important; box-shadow: 0 0 0 0.3rem var(--se-error-light-color); transition: box-shadow 0.1s ease-in-out; } /** --- Input */ .sun-editor input, .sun-editor select, .sun-editor textarea { color: var(--se-main-color); border: 1px solid var(--se-input-btn-border-color); border-radius: var(--se-border-radius); } /* disabled buttons, icon blur */ .sun-editor .se-btn:disabled, .sun-editor button:disabled, .sun-editor input:disabled { cursor: default; color: var(--se-input-btn-disabled-color); } /* dropdown layer - list button */ .sun-editor .se-btn-list { width: 100%; height: auto; min-height: 32px; padding: 0 14px; cursor: pointer; font-size: var(--se-btn-font-size); line-height: normal; text-indent: 0; text-decoration: none; text-align: left; } .sun-editor .se-btn-list.default_value { border: 1px dashed var(--se-main-outline-color); } .sun-editor .se-sub-list:has(:not([style*='display: none'])) { font-size: 0.75rem; letter-spacing: 0.25px; color: color-mix(in srgb, currentColor 45%, transparent); padding: 14px 14px 3px 14px; cursor: auto; } .sun-editor .se-sub-list:has(:not([style*='display: none'])) { border-bottom: 1px dashed var(--se-main-outline-color); } /* page navigator */ .sun-editor .se-btn.se-btn-tool-pageNavigator > input { width: var(--se-input-btn-size); text-align: center; color: var(--se-main-color-lighter); } .sun-editor .se-btn.se-btn-tool-pageNavigator > input[type='number'] { -webkit-appearance: textfield; -moz-appearance: textfield; appearance: textfield; } .sun-editor .se-btn.se-btn-tool-pageNavigator > input[type='number']::-webkit-inner-spin-button, .sun-editor .se-btn.se-btn-tool-pageNavigator > input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; -moz-appearance: none; appearance: none; margin: 0; } .sun-editor .se-btn.se-btn-tool-pageNavigator ~ span { text-align: center; font-size: var(--se-main-font-size); align-content: center; margin-left: -10px; } .sun-editor .se-btn.se-btn-tool-pageNavigator ~ span::before { content: '/'; margin: 0 0.6em; } /** --- Icons ---------------------------------------------------------- */ /* default svg */ .sun-editor svg { fill: currentColor; vertical-align: super; } .sun-editor button > svg, .sun-editor .se-svg { width: 20px; height: 20px; margin: auto; fill: currentColor; display: block; text-align: center; float: none; } .sun-editor button > svg.se-ci { width: 15px; height: 15px; } .sun-editor .se-text-prefix-icon { width: 20px; height: 20px; float: left; } .sun-editor .se-text-prefix-icon svg { vertical-align: middle; } /* sub button size */ .sun-editor button.se-sub-arrow-btn { width: 18px; } .sun-editor button.se-sub-arrow-btn svg { width: 8px; } .sun-editor button.se-sub-btn { width: 24px; } .sun-editor button.se-sub-btn svg { width: 12px; } /* side button */ .sun-editor button.se-side-btn { border-radius: 0; margin-left: 0; margin-right: 0; } .sun-editor button.se-side-btn-a { float: left; border-radius: var(--se-border-radius) 0 0 var(--se-border-radius); margin-right: 0; } .sun-editor button.se-side-btn-b { float: left; border-radius: 0 var(--se-border-radius) var(--se-border-radius) 0; margin-left: 0; } .sun-editor button.se-side-btn-before { float: left; margin-right: 0; border-radius: var(--se-border-radius) 0 0 var(--se-border-radius); } .sun-editor button.se-side-btn-after { margin-left: 0; border-radius: 0 var(--se-border-radius) var(--se-border-radius) 0; } /* list button icons */ .sun-editor button.se-btn-list > * li::before { content: ''; display: inline-block; width: 18px; height: 13px; background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5LDEzSDVWMTFIMTlWMTNaIiBmaWxsPSJibGFjayIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxIiAvPjwvc3ZnPg=='); background-size: cover; opacity: 0.5; } /* se-select-btn icon */ .sun-editor .se-btn-select > svg { float: right; width: 8px !important; height: 8px !important; } /* se-btn-list inner icon */ .sun-editor .se-select-item .se-list-icon { display: inline-block; width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: middle; } /* select menu inner icon */ .sun-editor .se-btn-list > .se-list-icon { display: inline-block; width: 16px; height: 16px; margin: -1px 10px 0 0; vertical-align: middle; } /* icon class */ .sun-editor button > i::before { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; font-size: var(--se-modal-title-font-size); line-height: 2; } .sun-editor button > [class='se-icon-text'] { font-size: 20px; line-height: 1; } /** --- arrow icon ---------------------------------------------------------- */ .sun-editor .se-arrow, .sun-editor .se-arrow::after { position: absolute; display: block; width: 0; height: 0; border: 12px solid transparent; margin-right: 0; margin-left: -12px; } .sun-editor .se-controller .se-arrow { left: 20px; right: auto; margin-left: -12px; margin-right: 0; } /* arrow up */ .sun-editor .se-arrow.se-arrow-up { top: -12px; border-top-width: 0; border-bottom-color: var(--se-controller-border-color); } .sun-editor .se-arrow.se-arrow-up::after { top: 1px; content: ' '; border-top-width: 0; border-bottom-color: var(--se-main-background-color); } /* arrow down */ .sun-editor .se-arrow.se-arrow-down { bottom: -12px; border-bottom-width: 0; border-top-color: var(--se-controller-border-color); } .sun-editor .se-arrow.se-arrow-down::after { top: -14px; content: ' '; border-bottom-width: 0; border-top-color: var(--se-controller-background-color); } /** --- container */ .sun-editor .se-container { position: relative; width: auto; height: auto; } /** --- loading box */ .sun-editor .se-loading-box { position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0; background-color: transparent; z-index: 2147483647; } .sun-editor .se-container .se-loading-box { position: absolute; } .sun-editor .se-loading-box .se-loading-effect { position: absolute; display: block; top: 50%; left: 50%; height: 44px; width: 44px; border: 2px solid transparent; border-top: 2px solid var(--se-loading-color); border-right: 2px solid var(--se-loading-color); border-radius: 50%; -webkit-animation: spinner 0.8s linear infinite; animation: spinner 0.8s linear infinite; margin: -25px 0 0 -25px; } /** --- line breaker --- component - top, bottom */ .sun-editor .se-line-breaker-component { position: absolute; display: none; width: 24px; height: 24px; color: var(--se-drag-over-color); background-color: var(--se-main-background-color); border: 1px solid var(--se-drag-over-color); opacity: 0.95; border-radius: var(--se-border-radius); cursor: pointer; z-index: 2147483647; transition: opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease; } .sun-editor .se-line-breaker-component.se-on-selected { color: var(--se-active-color); background-color: var(--se-main-background-color); border: 1px solid var(--se-active-color); } .sun-editor .se-line-breaker-component:hover { opacity: 0.9; color: var(--se-main-background-color); background-color: var(--se-active-dark3-color); border-color: var(--se-active-color); } /** --- toolbar ---------------------------------------------------------- */ .sun-editor .se-toolbar { display: block; position: sticky; top: 0; height: auto; width: 100%; overflow: visible; padding: 0; margin: 0; background-color: var(--se-main-background-color); outline: 1px solid var(--se-main-divider-color); z-index: 7; } .sun-editor .se-toolbar-shadow { display: block !important; position: relative !important; width: 100% !important; height: 0px !important; overflow: visible !important; visibility: hidden !important; padding: 0 !important; margin: 0 !important; background-color: transparent !important; outline: none !important; border: none !important; z-index: 0 !important; } /* inline toolbar */ .sun-editor .se-toolbar.se-toolbar-inline { display: none; position: absolute; } /* balloon toolbar */ .sun-editor .se-toolbar.se-toolbar-balloon { display: none; position: absolute; z-index: 2147483646; width: auto; box-shadow: 0 3px 9px var(--se-shadow-layer-color); -webkit-box-shadow: 0 3px 9px var(--se-shadow-layer-color); } /* JS fallback: initial state — override CSS sticky */ .sun-editor .se-toolbar.se-toolbar-relative { position: relative; top: auto; } /* JS fallback: sticky active — overrides both default and relative */ .sun-editor .se-toolbar.se-toolbar-sticky { position: fixed; top: 0px; } .sun-editor .se-toolbar-sticky-dummy { display: none; position: static; z-index: -1; } /* Bottom toolbar: sticky from bottom */ .sun-editor .se-toolbar.se-toolbar-bottom { top: auto; bottom: 0; } /* Bottom toolbar: more layer opens above buttons */ .sun-editor .se-toolbar.se-toolbar-bottom .se-btn-tray { display: flex; flex-wrap: wrap; padding: 4px 3px; } .sun-editor .se-toolbar.se-toolbar-bottom .se-btn-tray > .se-toolbar-more-layer { order: -1; width: 100%; border-top: none; } .sun-editor .se-toolbar.se-toolbar-bottom .se-toolbar-more-layer .se-more-layer { border-top: none; border-bottom: 1px solid var(--se-main-divider-color); margin-bottom: 4px; } /* JS fallback sticky for bottom */ .sun-editor .se-toolbar.se-toolbar-sticky.se-toolbar-bottom { top: auto; bottom: 0px; } /* Bottom toolbar: tooltip appears above */ .sun-editor .se-toolbar.se-toolbar-bottom .se-tooltip .se-tooltip-inner { top: auto; bottom: 120%; } .sun-editor .se-toolbar.se-toolbar-bottom .se-tooltip .se-tooltip-inner .se-tooltip-text::after { top: 100%; bottom: auto; border-color: var(--se-main-font-color) transparent transparent transparent; } /* toolbar arrow up */ .sun-editor .se-toolbar .se-arrow.se-arrow-up { border-bottom-color: var(--se-main-divider-color); } .sun-editor .se-toolbar .se-arrow.se-arrow-up::after { border-bottom-color: var(--se-main-background-color); } /* toolbar arrow down */ .sun-editor .se-toolbar .se-arrow.se-arrow-down { border-top-color: var(--se-main-divider-color); } .sun-editor .se-toolbar .se-arrow.se-arrow-down::after { border-top-color: var(--se-main-background-color); } /* --- Block handle ------------------------------------------------------- */ .sun-editor .se-wrapper.se-mode-block { display: flex; flex-direction: row; } .sun-editor.se-rtl .se-wrapper.se-mode-block { flex-direction: row-reverse; } .sun-editor .se-block-handle-area { position: relative; width: var(--se-block-handle-area-width); flex-shrink: 0; overflow: visible; z-index: 2; } .sun-editor .se-wrapper.se-mode-block .se-wrapper-inner { flex: 1; min-width: 0; position: relative; z-index: 1; } .sun-editor .se-block-handle { position: absolute; display: none; align-items: center; gap: var(--se-block-handle-gap); color: var(--se-block-handle-color); z-index: 10; transition: top 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), right 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: top, left, right; } .sun-editor .se-block-handle.se-no-transition { transition: none; } .sun-editor .se-block-handle-btn { display: flex; align-items: center; justify-content: center; width: var(--se-block-handle-btn-size); height: var(--se-block-handle-btn-size); border-radius: var(--se-border-radius); cursor: pointer; opacity: 0.55; transition: opacity 0.15s, background-color 0.08s ease; } .sun-editor .se-block-handle-btn:hover { opacity: 1; background-color: var(--se-block-handle-btn-hover-bg); } .sun-editor .se-block-handle-btn:active { opacity: 1; background-color: var(--se-block-handle-btn-active-bg); } .sun-editor .se-block-handle-btn svg { width: var(--se-block-handle-btn-icon-size); height: var(--se-block-handle-btn-icon-size); } .sun-editor .se-block-handle-drag { cursor: grab; } .sun-editor .se-block-handle-drag:active { cursor: grabbing; } /* block hover highlight (Notion-style) */ .sun-editor .se-block-hover { background-color: var(--se-block-hover-bg); border-radius: var(--se-border-radius); outline: 2px solid var(--se-block-hover-outline); } /* drag indicator line — mirrors `.se-drag-cursor` for component drag-drop, but horizontal (between blocks) instead of vertical (between text positions). */ .sun-editor .se-block-drag-indicator { position: absolute; height: var(--se-block-drag-indicator-height); background-color: var(--se-block-drag-indicator-color); border-radius: 1px; pointer-events: none; z-index: 10; } .sun-editor .se-block-drag-indicator::before { content: ''; position: absolute; left: -3px; top: -4px; width: 0; height: 0; border: 0 solid transparent; border-width: 5px 0 5px 6px; border-color: transparent transparent transparent var(--se-block-drag-indicator-color); } .sun-editor .se-block-drag-indicator::after { content: ''; position: absolute; right: -3px; top: -4px; width: 0; height: 0; border: 0 solid transparent; border-width: 5px 6px 5px 0; border-color: transparent var(--se-block-drag-indicator-color) transparent transparent; } .sun-editor .se-block-dragging { opacity: 0.4; transition: opacity 0.1s; } .sun-editor .se-block-menu-icon { display: inline-flex; align-items: center; width: 16px; height: 16px; margin-right: 12px; margin-left: 4px; vertical-align: middle; } .sun-editor .se-block-menu-icon svg { width: 100%; height: 100%; } .sun-editor .se-block-menu-label { vertical-align: middle; } .sun-editor .se-block-menu-label-full { padding-left: 22px; } /* block handle - submenu items (dropdown child items) */ .sun-editor .se-block-submenu-item { display: flex; align-items: center; padding: 2px 8px; gap: 6px; line-height: 1.4; } .sun-editor .se-block-submenu-item .se-list-icon, .sun-editor .se-block-submenu-item svg { display: inline-block; width: 16px; height: 16px; margin: 0 6px 0 0; flex-shrink: 0; vertical-align: middle; } .sun-editor .se-block-submenu-item .se-list-icon svg { width: 100%; height: 100%; } /* dragging source line */ .sun-editor .se-block-dragging { opacity: 0.4; } /** --- tool bar --- module --- button, module, group ---------------------------------------------------------- */ /* module */ .sun-editor .se-btn-module { display: inline-block; } /* button group */ .sun-editor .se-btn-module-border { border: 1px solid var(--se-main-divider-color); border: none; border-radius: var(--se-border-radius); margin-left: 1px; margin-right: 1px; } /* separator vertical */ .sun-editor .se-toolbar-separator-vertical { display: inline-block; height: var(--se-input-btn-size); width: 1px; margin: 1px; vertical-align: top; background-color: var(--se-main-divider-color); } .sun-editor .se-btn-module-enter { display: block; width: 100%; height: 0px; margin: 0; padding: 0; background-color: transparent; } /* ---more - layer */ .sun-editor .se-toolbar-more-layer { margin: 0 -3px; background-color: var(--se-main-background-color); } .sun-editor .se-toolbar-more-layer .se-more-layer { display: none; border-top: 1px solid var(--se-main-divider-color); } .sun-editor .se-toolbar-more-layer .se-more-layer .se-more-form { display: inline-block; width: 100%; height: auto; padding: 4px 3px 0 3px; } /* ---more - button */ .sun-editor .se-btn-module .se-btn-more.se-btn-more-text { width: auto; padding: 0 4px; } /* innser ul */ .sun-editor .se-menu-list { float: left; padding: 0; margin: 0; } .sun-editor .se-menu-list li { position: relative; float: left; padding: 0; margin: 0; } .sun-editor .se-menu-list li.se-toolbar-hidden-btn { display: none; } .sun-editor .se-menu-list li .se-toolbar-btn:not(input) { border-color: transparent; } /* tool bar select button (font, fontSize, blockStyle) */ .sun-editor .se-btn-select { width: auto; display: flex; padding: 4px 6px; } .sun-editor .se-btn-select .se-txt { flex: auto; display: flex; text-align: left; margin-right: 4px; align-items: center; } .sun-editor .se-btn-select .se-not-arrow-text { flex: auto; text-align: center; margin: 0; } .sun-editor .se-btn-select.on .se-txt + svg { transform: rotate(-180deg); } .sun-editor .se-btn-select.se-btn-tool-font { width: 128px; } .sun-editor .se-btn-select.se-btn-tool-format { width: 96px; } .sun-editor .se-btn-select.se-btn-tool-font-size .se-txt { width: 66px; margin: 0; } .sun-editor .se-btn-select.se-btn-tool-font-size .se-not-arrow-text { width: 50px; } /* tool bar input button (fontSize) */ .sun-editor .se-btn-input { padding: 0 !important; border: 0 !important; } .sun-editor .se-btn-input input { font-size: var(--se-main-font-size); height: var(--se-input-btn-size); border: 0; } .sun-editor .se-btn-input input:hover { border: 1px solid var(--se-main-border-color); } .sun-editor .se-btn-input input:focus { border: 1px solid var(--se-active-color) !important; outline: 0; } /** --- menu tray -------------------------------------------------------------- */ .sun-editor .se-btn-tray { position: relative; width: 100%; height: auto; padding: 4px 3px 0 3px; margin: 0; } .sun-editor .se-menu-tray { position: absolute; top: 0px; left: 0px; width: 100%; height: 0px; z-index: 2147483646; } /** --- popover UA override ---------------------------------------------------- */ .sun-editor .se-controller[popover], .sun-editor .se-block-handle[popover], .sun-editor.sun-editor-carrier-wrapper .se-drag-cursor[popover] { inset: unset; margin: 0; } .sun-editor .se-modal-area[popover], .sun-editor .se-back-wrapper[popover], .sun-editor .se-loading-box[popover], .sun-editor .se-toast[popover], .sun-editor .se-browser[popover], .sun-editor .se-block-handle[popover], .sun-editor .se-menu-tray[popover] { background: none; border: none; padding: 0; overflow: visible; color: inherit; } /** --- dropdown layer ---------------------------------------------------------- */ .sun-editor .se-dropdown { overflow-x: hidden; overflow-y: auto; } .sun-editor .se-menu-container { overflow-x: unset; overflow-y: unset; } .sun-editor .se-list-layer { display: none; position: absolute; top: 0px; left: 0px; height: auto; z-index: 5; border: 1px solid var(--se-main-divider-color); border-radius: var(--se-border-radius-lg); padding: 4px; background-color: var(--se-main-background-color); box-shadow: 0 3px 9px var(--se-shadow-layer-color); outline: 0 none; } .sun-editor .se-list-layer .se-list-inner { padding: 0; margin: 0; overflow: visible; } .sun-editor .se-list-layer button { margin: 0 0 2px 0; width: 100%; } .sun-editor .se-list-inner ul { width: 100%; padding: 0; margin: auto; } .sun-editor .se-list-inner :not(.se-list-horizontal) li > button { min-width: 100%; width: -webkit-max-content; width: -moz-max-content; width: max-content; } /* dropdown layer - basic list */ .sun-editor .se-list-inner .se-list-basic li { width: auto; max-width: 100%; } .sun-editor .se-list-inner input { border-radius: 0; } .sun-editor .se-list-inner ul.se-list-carrier { width: 165px; height: 52px; } .sun-editor .se-list-inner ul.se-list-carrier li button > ol, .sun-editor .se-list-inner ul.se-list-carrier li button > ul { font-size: 10px; } /* dropdown layer - checked list */ .sun-editor .se-list-inner .se-list-checked li .se-svg { float: left; padding: 6px 6px 0 0; } .sun-editor .se-list-inner .se-list-checked li .se-svg > svg { display: none; } .sun-editor .se-list-inner .se-list-checked li.se-checked * { color: var(--se-active-dark3-color); } .sun-editor .se-list-inner .se-list-checked li.se-checked .se-svg > svg { display: block; } /* dropdown layer - se-list-horizontal */ .sun-editor .se-list-inner .se-list-horizontal { display: flex; padding: 2px; } .sun-editor .se-list-inner .se-list-horizontal li { padding: 0; margin: 0 2px; } /** --- dropdown layer - se-list-inner > exception */ /* dropdown layer - font size */ .sun-editor .se-list-layer.se-list-font-size { min-width: 140px; max-height: 300px; } /* dropdown layer - code block */ .sun-editor .se-list-layer.se-list-code-block { min-width: 140px; max-height: 310px; } /* dropdown layer - font family */ .sun-editor .se-list-layer.se-list-font-family { min-width: 156px; } .sun-editor .se-list-layer.se-list-font-family .default { border-bottom: 1px solid var(--se-input-btn-border-color); } /* dropdown layer - hr */ .sun-editor .se-list-layer.se-list-line { width: 125px; } .sun-editor .se-list-layer.se-list-line hr { border-width: 1px 0 0; height: 1px; border-color: var(--se-edit-hr-color); } /* dropdown layer - align */ .sun-editor .se-list-layer.se-list-align .se-list-inner { left: 9px; } /** dropdown layer - format block, paragraph style, text style */ .sun-editor .se-list-layer.se-list-format { min-width: 156px; } .sun-editor .se-list-layer.se-list-format li { padding: 0; width: 100%; } .sun-editor .se-list-layer.se-list-format ul .se-btn-list { line-height: 100%; } .sun-editor .se-list-layer.se-list-format ul .se-btn-list[data-value='h1'] { height: 40px; } .sun-editor .se-list-layer.se-list-format ul .se-btn-list[data-value='h2'] { height: 34px; } .sun-editor .se-list-layer.se-list-format ul p { font-size: var(--se-main-font-size); } .sun-editor .se-list-layer.se-list-format ul div { font-size: var(--se-main-font-size); padding: 4px 2px; } .sun-editor .se-list-layer.se-list-format ul h1 { font-size: 2em; font-weight: bold; } .sun-editor .se-list-layer.se-list-format ul h2 { font-size: 1.5em; font-weight: bold; } .sun-editor .se-list-layer.se-list-format ul h3 { font-size: 1.17em; font-weight: bold; } .sun-editor .se-list-layer.se-list-format ul h4 { font-size: 1em; font-weight: bold; } .sun-editor .se-list-layer.se-list-format ul h5 { font-size: 0.83em; font-weight: bold; } .sun-editor .se-list-layer.se-list-format ul h6 { font-size: 0.67em; font-weight: bold; } .sun-editor .se-list-layer.se-list-format ul blockquote { font-size: var(--se-main-font-size); color: var(--se-edit-font-quote); height: 22px; margin: 0; background-color: transparent; line-height: 1.5; border-style: solid; border-color: var(--se-edit-border-dark); padding: 0 0 0 7px; border-width: 0; border-left-width: 5px; } .sun-editor .se-list-layer.se-list-format ul pre { font-size: var(--se-main-font-size); color: var(--se-edit-font-pre); padding: 4px 11px; margin: 0; background-color: var(--se-edit-background-pre); border: 1px solid var(--se-edit-border-light); border-radius: var(--se-border-radius); } .sun-editor-editable[contenteditable='true'], .sun-editor-editable[contenteditable='true'] * { scroll-margin: var(--se-edit-scroll-margin); } .sun-editor-editable[contenteditable='true'].se-copy-format-cursor { cursor: url('data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIxNiIKICB2aWV3Qm94PSIwIDAgMjQgMTYiCj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9IndoaXRlLW91dGxpbmUiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICAgIDxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9ImRpbGF0ZWQiIG9wZXJhdG9yPSJkaWxhdGUiIHJhZGl1cz0iMSIvPgogICAgICA8ZmVGbG9vZCBmbG9vZC1jb2xvcj0id2hpdGUiIHJlc3VsdD0id2hpdGUiLz4KICAgICAgPGZlQ29tcG9zaXRlIGluPSJ3aGl0ZSIgaW4yPSJkaWxhdGVkIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0ib3V0bGluZSIvPgogICAgICA8ZmVNZXJnZT4KICAgICAgICA8ZmVNZXJnZU5vZGUgaW49Im91dGxpbmUiLz4KICAgICAgICA8ZmVNZXJnZU5vZGUgaW49IlNvdXJjZUdyYXBoaWMiLz4KICAgICAgPC9mZU1lcmdlPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxnIGZpbHRlcj0idXJsKCN3aGl0ZS1vdXRsaW5lKSI+CiAgICA8cGF0aAogICAgICBkPSJNNC4zMzIgMTIuNjY4CiAgICAgICAgIEM0LjMzMiAxMy4wMzUgNC40ODQgMTMuMzMyIDQuNjY4IDEzLjMzMgogICAgICAgICBMNS4zMzIgMTMuMzMyCiAgICAgICAgIEw1LjMzMiAxNC42NjgKICAgICAgICAgTDQuNSAxNC42NjgKICAgICAgICAgQzQuMzE2IDE0LjY2OCA0IDE0LjM2NyA0IDE0CiAgICAgICAgIEM0IDE0LjM2NyAzLjY4NCAxNC42NjggMy41IDE0LjY2OAogICAgICAgICBMMi42NjggMTQuNjY4CiAgICAgICAgIEwyLjY2OCAxMy4zMzIKICAgICAgICAgTDMuMzMyIDEzLjMzMgogICAgICAgICBDMy41MTYgMTMuMzMyIDMuNjY4IDEzLjAzNSAzLjY2OCAxMi42NjgKICAgICAgICAgTDMuNjY4IDMuMzMyCiAgICAgICAgIEMzLjY2OCAyLjk2NSAzLjUxNiAyLjY2OCAzLjMzMiAyLjY2OAogICAgICAgICBMMi42NjggMi42NjgKICAgICAgICAgTDIuNjY4IDEuMzMyCiAgICAgICAgIEwzLjUgMS4zMzIKICAgICAgICAgQzMuNjg0IDEuMzMyIDQgMS42MzMgNCAyCiAgICAgICAgIEM0IDEuNjMzIDQuMzE2IDEuMzMyIDQuNSAxLjMzMgogICAgICAgICBMNS4zMzIgMS4zMzIKICAgICAgICAgTDUuMzMyIDIuNjY4CiAgICAgICAgIEw0LjY2OCAyLjY2OAogICAgICAgICBDNC40ODQgMi42NjggNC4zMzIgMi45NjUgNC4zMzIgMy4zMzIKICAgICAgICAgWiIKICAgICAgZmlsbD0iYmxhY2siCiAgICAvPgogICAgPHBhdGgKICAgICAgZD0iTTIwIDIuNjY4CiAgICAgICAgIEwyMCAyCiAgICAgICAgIEMyMCAxLjYzMyAxOS43MDMgMS4zMzIgMTkuMzMyIDEuMzMyCiAgICAgICAgIEwxMS4zMzIgMS4zMzIKICAgICAgICAgQzEwLjk2NSAxLjMzMiAxMC42NjggMS42MzMgMTAuNjY4IDIKICAgICAgICAgTDEwLjY2OCA0LjY2OAogICAgICAgICBDMTAuNjY4IDUuMDM1IDEwLjk2NSA1LjMzMiAxMS4zMzIgNS4zMzIKICAgICAgICAgTDE5LjMzMiA1LjMzMgogICAgICAgICBDMTkuNzAzIDUuMzMyIDIwIDUuMDM1IDIwIDQuNjY4CiAgICAgICAgIEwyMCA0CiAgICAgICAgIEwyMC42NjggNAogICAgICAgICBMMjAuNjY4IDYuNjY4CiAgICAgICAgIEwxNCA2LjY2OAogICAgICAgICBMMTQgMTQKICAgICAgICAgQzE0IDE0LjM2NyAxNC4yOTcgMTQuNjY4IDE0LjY2OCAxNC42NjgKICAgICAgICAgTDE2IDE0LjY2OAogICAgICAgICBDMTYuMzY3IDE0LjY2OCAxNi42NjggMTQuMzY3IDE2LjY2OCAxNAogICAgICAgICBMMTYuNjY4IDgKICAgICAgICAgTDIyIDgKICAgICAgICAgTDIyIDIuNjY4CiAgICAgICAgIFoiCiAgICAgIGZpbGw9ImJsYWNrIgogICAgLz4KICA8L2c+Cjwvc3ZnPgo=') 0 8, text; } /* table resize */ /* table resize - ew */ .sun-editor-editable[contenteditable='true'] table th:not(.se-selected-table-cell):hover::before, .sun-editor-editable[contenteditable='true'] table td:not(.se-selected-table-cell):hover::before { content: ''; position: absolute; top: 0; left: -2px; width: 4px; height: 100%; background-color: transparent; cursor: ew-resize; } .sun-editor-editable[contenteditable='true'] table th:not(.se-selected-table-cell):hover::after, .sun-editor-editable[contenteditable='true'] table td:not(.se-selected-table-cell):hover::after { content: ''; position: absolute; top: 0; right: -2px; width: 4px; height: 100%; background-color: transparent; cursor: ew-resize; } /* table resize - lines */ .sun-editor .se-table-resize-line { position: absolute; top: 0; width: 6px; height: 100%; margin-left: -3px; background-color: var(--se-active-dark-color); opacity: 0.4; pointer-events: none; display: none; z-index: 2; } /* table resize - row, cursor */ .sun-editor .se-table-resize-row { position: absolute; left: 0; width: 100%; height: 6px; margin-top: -3px; background-color: var(--se-active-dark-color); opacity: 0.4; pointer-events: none; display: none; z-index: 2; } .sun-editor .se-table-resize-line-prev { position: absolute; top: 0; width: 4px; height: 100%; margin-left: -1px; border-left: 1px dashed var(--se-drag-over-color); background-color: transparent; opacity: 0.8; pointer-events: none; display: none; z-index: 2; } .sun-editor .se-table-resize-row-prev { position: absolute; left: 0; width: 100%; height: 4px; margin-top: -1px; border-top: 1px dashed var(--se-drag-over-color); background-color: transparent; opacity: 0.8; pointer-events: none; display: none; z-index: 2; } /* dropdown layer --- table selector */ .sun-editor .se-selector-table { display: none; position: absolute; overflow: hidden; top: var(--se-input-btn-size); left: 1px; z-index: 5; padding: 5px 0; float: left; margin: 2px 0 0; font-size: var(--se-main-font-size); text-align: left; list-style: none; background-color: var(--se-main-background-color); -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid var(--se-input-btn-border-color); border-radius: var(--se-border-radius); box-shadow: 0 6px 12px var(--se-shadow-layer-color); } .sun-editor .se-selector-table .se-table-size { font-size: 18px; padding: 0 5px; } /* When modifying the values ​​of this style, you must also adjust the values ​​of "table/index:#OnMouseMoveTablePicke()" */ .sun-editor .se-selector-table .se-table-size-picker { position: absolute !important; z-index: 3; font-size: 18px; width: 10em; height: 10em; cursor: pointer; } .sun-editor .se-selector-table .se-table-size-highlighted { position: absolute !important; z-index: 2; font-size: 18px; width: 1em; height: 1em; background-color: var(--se-table-picker-highlight-color); background-image: linear-gradient(to right, var(--se-table-picker-highlight-border-color) 1px, transparent 1px), linear-gradient(to bottom, var(--se-table-picker-highlight-border-color) 1px, transparent 1px); background-size: 1em 1em; border-right: 1px solid var(--se-table-picker-highlight-border-color); border-bottom: 1px solid var(--se-table-picker-highlight-border-color); } .sun-editor .se-selector-table .se-table-size-unhighlighted { position: relative !important; z-index: 1; font-size: 18px; width: 5em; height: 5em; background-color: var(--se-table-picker-color); background-image: linear-gradient(to right, var(--se-table-picker-border-color) 1px, transparent 1px), linear-gradient(to bottom, var(--se-table-picker-border-color) 1px, transparent 1px); background-size: 1em 1em; border-right: 1px solid var(--se-table-picker-border-color); border-bottom: 1px solid var(--se-table-picker-border-color); } .sun-editor .se-select