3 --editor-color-primary: #206ea7;
8 background-color: #FFF;
14 .editor-toolbar-main {
17 justify-content: center;
18 border-top: 1px solid #DDD;
19 border-bottom: 1px solid #DDD;
22 body.editor-is-fullscreen {
28 .editor-content-area {
33 .editor-content-wrap {
45 justify-content: center;
48 .editor-button:hover {
49 background-color: #EEE;
53 .editor-button[disabled] {
58 .editor-button-active, .editor-button-active:hover {
59 background-color: #ceebff;
62 .editor-button-format-preview {
66 .editor-button-icon svg {
75 .editor-dropdown-menu-container {
78 .editor-dropdown-menu {
80 background-color: #FFF;
81 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
89 flex-direction: column;
92 .editor-menu-list .editor-button {
98 .editor-menu-list > .editor-dropdown-menu-container .editor-dropdown-menu {
99 inset-inline-start: 100%;
101 flex-direction: column;
104 .editor-format-menu-toggle {
108 padding-inline: 12px;
109 justify-content: start;
110 background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M7.41 8L12 12.58 16.59 8 18 9.41l-6 6-6-6z"/></svg>');
111 background-repeat: no-repeat;
112 background-position: 98% 50%;
113 background-size: 28px;
115 .editor-format-menu .editor-dropdown-menu {
117 .editor-dropdown-menu {
121 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
125 .editor-overflow-container {
127 border-inline: 1px solid #DDD;
130 border-inline-start: none;
133 border-inline-end: none;
135 + .editor-overflow-container {
136 border-inline-start: none;
140 .editor-context-toolbar {
142 background-color: #FFF;
143 border: 1px solid #DDD;
146 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
156 background-color: #FFF;
157 border-top: 1px solid #DDD;
158 border-left: 1px solid #DDD;
159 transform: rotate(45deg);
167 .editor-modal-wrapper {
171 justify-content: center;
173 background-color: rgba(0, 0, 0, 0.5);
178 background-color: #FFF;
181 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
183 .editor-modal-header {
185 justify-content: space-between;
186 align-items: stretch;
187 background-color: var(--color-primary);
190 .editor-modal-title {
193 .editor-modal-close {
197 justify-content: center;
200 background-color: rgba(255, 255, 255, 0.1);
213 // Specific UI elements
214 .editor-color-select-row {
217 .editor-color-select-option {
222 .editor-color-select-option:hover {
224 box-sizing: border-box;
226 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
228 .editor-table-creator-row {
231 .editor-table-creator-cell {
232 border: 1px solid #DDD;
237 background-color: var(--editor-color-primary);
240 .editor-table-creator-display {
245 // In-editor elements
248 display: inline-flex;
250 .editor-image-decorator {
256 display: inline-block;
258 border: 1px dashed var(--editor-color-primary);
261 .editor-image-decorator-handle {
266 border: 2px solid var(--editor-color-primary);
267 background-color: #FFF;
270 inset-inline-start: -5px;
271 inset-block-start: -5px;
275 inset-inline-end: -5px;
276 inset-block-start: -5px;
280 inset-inline-end: -5px;
281 inset-block-end: -5px;
285 inset-inline-start: -5px;
286 inset-block-end: -5px;
291 .editor-table-marker {
293 background-color: var(--editor-color-primary);
301 .editor-table-marker-column {
305 .editor-table-marker-row {
310 .editor-code-block-wrap {
313 pointer-events: none;
315 &.selected .cm-editor {
316 border: 1px dashed var(--editor-color-primary);
320 // Editor form elements
321 .editor-form-field-wrapper {
322 margin-bottom: .5rem;
324 .editor-form-field-input {
328 border: 1px solid #DDD;
333 textarea.editor-form-field-input {
334 font-family: var(--font-code);
339 .editor-form-field-label {
344 .editor-form-actions {
346 justify-content: end;
350 .editor-form-actions > button {
354 padding: $-xs*1.3 $-m;
360 outline: 1px dotted currentColor;
361 outline-offset: -$-xs;
363 filter: brightness(90%);
366 .editor-form-action-primary {
367 background-color: var(--color-primary);
369 border: 1px solid var(--color-primary);
371 @include lightDark(box-shadow, $bs-light, $bs-dark);
372 filter: brightness(110%);
375 .editor-form-action-secondary {
377 @include lightDark(border-color, #CCC, #666);
378 @include lightDark(color, #666, #AAA);
379 &:hover, &:focus, &:active {
380 @include lightDark(color, #444, #BBB);
381 border: 1px solid #CCC;
382 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
383 background-color: #F2F2F2;
384 @include lightDark(background-color, #f8f8f8, #444);
389 background-color: #DDD;
391 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
395 // Editor theme styles
399 .editor-theme-italic {
402 .editor-theme-strikethrough {
403 text-decoration-line: line-through;
405 .editor-theme-underline {
406 text-decoration-line: underline;
408 .editor-theme-underline-strikethrough {
409 text-decoration: underline line-through;