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 {
35 .editor-content-wrap {
49 justify-content: center;
52 .editor-button:hover {
53 background-color: #EEE;
57 .editor-button[disabled] {
62 .editor-button-active, .editor-button-active:hover {
63 background-color: #ceebff;
67 display: flex !important;
70 justify-content: start;
78 padding-inline-end: 4px;
80 .editor-button-format-preview {
84 .editor-button-long .editor-button-icon {
88 .editor-button-icon svg {
95 .editor-menu-button-icon {
102 .editor-container[dir="rtl"] .editor-menu-button-icon {
105 .editor-button-with-menu-container {
109 align-items: stretch;
111 .editor-dropdown-menu-container {
114 .editor-dropdown-menu-container > .editor-dropdown-menu {
117 .editor-dropdown-menu-container > .editor-button {
119 margin-inline-start: -3px;
126 outline: 1px solid #DDD;
127 outline-offset: -3px;
132 .editor-dropdown-menu-container {
135 .editor-dropdown-menu {
137 background-color: #FFF;
138 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
143 .editor-dropdown-menu-vertical {
145 flex-direction: column;
146 align-items: stretch;
149 .editor-dropdown-menu-vertical .editor-button {
155 .editor-dropdown-menu-vertical > .editor-dropdown-menu-container .editor-dropdown-menu {
156 inset-inline-start: 100%;
163 background-color: #DDD;
167 .editor-format-menu-toggle {
172 padding-inline: 12px;
173 justify-content: start;
174 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>');
175 background-repeat: no-repeat;
176 background-position: 98% 50%;
177 background-size: 28px;
179 .editor-container[dir="rtl"] .editor-format-menu-toggle {
180 background-position: 2% 50%;
182 .editor-format-menu .editor-dropdown-menu {
184 .editor-dropdown-menu {
187 .editor-button-icon {
191 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
195 .editor-overflow-container {
197 border-inline: 1px solid #DDD;
200 border-inline-start: none;
203 border-inline-end: none;
205 + .editor-overflow-container {
206 border-inline-start: none;
210 .editor-context-toolbar {
212 background-color: #FFF;
213 border: 1px solid #DDD;
216 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
226 background-color: #FFF;
227 border-top: 1px solid #DDD;
228 border-left: 1px solid #DDD;
229 transform: rotate(45deg);
235 top: calc(100% - 5px);
236 transform: rotate(225deg);
241 .editor-modal-wrapper {
245 justify-content: center;
247 background-color: rgba(0, 0, 0, 0.5);
252 background-color: #FFF;
255 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
257 .editor-modal-header {
259 justify-content: space-between;
260 align-items: stretch;
261 background-color: var(--color-primary);
264 .editor-modal-title {
267 .editor-modal-close {
271 justify-content: center;
274 background-color: rgba(255, 255, 255, 0.1);
287 // Specific UI elements
288 .editor-color-select-row {
291 .editor-color-select-option {
297 justify-content: center;
299 .editor-color-select-option:hover {
301 box-sizing: border-box;
303 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
305 .editor-color-select-option[data-color=""] svg {
310 .editor-table-creator-row {
313 .editor-table-creator-cell {
314 border: 1px solid #DDD;
319 background-color: var(--editor-color-primary);
322 .editor-table-creator-display {
327 // In-editor elements
330 display: inline-flex;
332 .editor-node-resizer {
336 display: inline-block;
337 outline: 2px dashed var(--editor-color-primary);
340 .editor-node-resizer-handle {
345 border: 2px solid var(--editor-color-primary);
347 background-color: #FFF;
350 inset-inline-start: -5px;
351 inset-block-start: -5px;
355 inset-inline-end: -5px;
356 inset-block-start: -5px;
360 inset-inline-end: -5px;
361 inset-block-end: -5px;
365 inset-inline-start: -5px;
366 inset-block-end: -5px;
370 .editor-node-resizer-ghost {
379 pointer-events: none;
380 background-color: var(--editor-color-primary);
382 .editor-node-resizer.active .editor-node-resizer-ghost {
386 .editor-table-marker {
388 background-color: var(--editor-color-primary);
396 .editor-table-marker-column {
400 .editor-table-marker-row {
405 .editor-code-block-wrap {
408 pointer-events: none;
410 &.selected .cm-editor {
411 border: 1px dashed var(--editor-color-primary);
414 .editor-diagram.selected {
415 outline: 2px dashed var(--editor-color-primary);
419 display: inline-block;
422 pointer-events: none;
437 * Fake task list checkboxes
439 .editor-content-area .task-list-item {
443 .editor-content-area .task-list-item > input[type="checkbox"] {
446 .editor-content-area .task-list-item:before {
448 display: inline-block;
449 border: 2px solid #CCC;
454 vertical-align: text-top;
460 .editor-content-area .task-list-item[checked]:before {
461 background-color: #CCC;
462 background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m8.4856 20.274-6.736-6.736 2.9287-2.7823 3.8073 3.8073 10.836-10.836 2.9287 2.9287z" stroke-width="1.4644"/></svg>');
463 background-position: 50% 50%;
464 background-size: 100% 100%;
470 .editor-form-field-wrapper {
471 margin-bottom: .5rem;
473 .editor-form-field-input {
477 border: 1px solid #DDD;
482 textarea.editor-form-field-input {
483 font-family: var(--font-code);
488 .editor-form-field-label {
493 .editor-form-actions {
495 justify-content: end;
499 .editor-form-actions > button {
503 padding: $-xs*1.3 $-m;
509 outline: 1px dotted currentColor;
510 outline-offset: -$-xs;
512 filter: brightness(90%);
515 .editor-form-action-primary {
516 background-color: var(--color-primary);
518 border: 1px solid var(--color-primary);
520 @include lightDark(box-shadow, $bs-light, $bs-dark);
521 filter: brightness(110%);
524 .editor-form-action-secondary {
526 @include lightDark(border-color, #CCC, #666);
527 @include lightDark(color, #666, #AAA);
528 &:hover, &:focus, &:active {
529 @include lightDark(color, #444, #BBB);
530 border: 1px solid #CCC;
531 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
532 background-color: #F2F2F2;
533 @include lightDark(background-color, #f8f8f8, #444);
538 background-color: #DDD;
540 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
543 .editor-form-tab-container {
548 .editor-form-tab-controls {
550 flex-direction: column;
551 align-items: stretch;
554 .editor-form-tab-control {
558 border-bottom: 2px solid transparent;
561 padding: .25rem .5rem;
563 &[aria-selected="true"] {
564 border-color: var(--editor-color-primary);
565 color: var(--editor-color-primary);
567 &[aria-selected="true"]:after, &:hover:after {
568 background-color: var(--editor-color-primary);
579 .editor-form-tab-contents {
582 .editor-action-input-container {
586 justify-content: space-between;
593 // Editor theme styles
597 .editor-theme-italic {
600 .editor-theme-strikethrough {
601 text-decoration-line: line-through;
603 .editor-theme-underline {
604 text-decoration-line: underline;
606 .editor-theme-underline-strikethrough {
607 text-decoration: underline line-through;