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 {
46 justify-content: center;
49 .editor-button:hover {
50 background-color: #EEE;
54 .editor-button[disabled] {
59 .editor-button-active, .editor-button-active:hover {
60 background-color: #ceebff;
64 display: flex !important;
67 justify-content: start;
75 padding-inline-end: 4px;
77 .editor-button-format-preview {
81 .editor-button-long .editor-button-icon {
85 .editor-button-icon svg {
92 .editor-menu-button-icon {
99 .editor-button-with-menu-container {
103 align-items: stretch;
105 .editor-dropdown-menu-container {
108 .editor-dropdown-menu-container > .editor-dropdown-menu {
111 .editor-dropdown-menu-container > .editor-button {
113 margin-inline-start: -3px;
120 outline: 1px solid #DDD;
121 outline-offset: -3px;
126 .editor-dropdown-menu-container {
129 .editor-dropdown-menu {
131 background-color: #FFF;
132 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
138 .editor-dropdown-menu-vertical {
140 flex-direction: column;
141 align-items: stretch;
144 .editor-dropdown-menu-vertical .editor-button {
150 .editor-dropdown-menu-vertical > .editor-dropdown-menu-container .editor-dropdown-menu {
151 inset-inline-start: 100%;
158 background-color: #DDD;
162 .editor-format-menu-toggle {
167 padding-inline: 12px;
168 justify-content: start;
169 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>');
170 background-repeat: no-repeat;
171 background-position: 98% 50%;
172 background-size: 28px;
174 .editor-format-menu .editor-dropdown-menu {
176 .editor-dropdown-menu {
179 .editor-button-icon {
183 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
187 .editor-overflow-container {
189 border-inline: 1px solid #DDD;
192 border-inline-start: none;
195 border-inline-end: none;
197 + .editor-overflow-container {
198 border-inline-start: none;
202 .editor-context-toolbar {
204 background-color: #FFF;
205 border: 1px solid #DDD;
208 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
218 background-color: #FFF;
219 border-top: 1px solid #DDD;
220 border-left: 1px solid #DDD;
221 transform: rotate(45deg);
227 top: calc(100% - 5px);
228 transform: rotate(225deg);
233 .editor-modal-wrapper {
237 justify-content: center;
239 background-color: rgba(0, 0, 0, 0.5);
244 background-color: #FFF;
247 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
249 .editor-modal-header {
251 justify-content: space-between;
252 align-items: stretch;
253 background-color: var(--color-primary);
256 .editor-modal-title {
259 .editor-modal-close {
263 justify-content: center;
266 background-color: rgba(255, 255, 255, 0.1);
279 // Specific UI elements
280 .editor-color-select-row {
283 .editor-color-select-option {
289 justify-content: center;
291 .editor-color-select-option:hover {
293 box-sizing: border-box;
295 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
297 .editor-color-select-option[data-color=""] svg {
302 .editor-table-creator-row {
305 .editor-table-creator-cell {
306 border: 1px solid #DDD;
311 background-color: var(--editor-color-primary);
314 .editor-table-creator-display {
319 // In-editor elements
322 display: inline-flex;
324 .editor-node-resizer {
328 display: inline-block;
329 outline: 2px dashed var(--editor-color-primary);
331 .editor-node-resizer-handle {
336 border: 2px solid var(--editor-color-primary);
338 background-color: #FFF;
341 inset-inline-start: -5px;
342 inset-block-start: -5px;
346 inset-inline-end: -5px;
347 inset-block-start: -5px;
351 inset-inline-end: -5px;
352 inset-block-end: -5px;
356 inset-inline-start: -5px;
357 inset-block-end: -5px;
361 .editor-node-resizer-ghost {
370 pointer-events: none;
371 background-color: var(--editor-color-primary);
373 .editor-node-resizer.active .editor-node-resizer-ghost {
377 .editor-table-marker {
379 background-color: var(--editor-color-primary);
387 .editor-table-marker-column {
391 .editor-table-marker-row {
396 .editor-code-block-wrap {
399 pointer-events: none;
401 &.selected .cm-editor {
402 border: 1px dashed var(--editor-color-primary);
405 .editor-diagram.selected {
406 outline: 2px dashed var(--editor-color-primary);
410 display: inline-block;
413 pointer-events: none;
428 * Fake task list checkboxes
430 .editor-content-area .task-list-item {
434 .editor-content-area .task-list-item > input[type="checkbox"] {
437 .editor-content-area .task-list-item:before {
439 display: inline-block;
440 border: 2px solid #CCC;
445 vertical-align: text-top;
451 .editor-content-area .task-list-item[checked]:before {
452 background-color: #CCC;
453 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>');
454 background-position: 50% 50%;
455 background-size: 100% 100%;
461 .editor-form-field-wrapper {
462 margin-bottom: .5rem;
464 .editor-form-field-input {
468 border: 1px solid #DDD;
473 textarea.editor-form-field-input {
474 font-family: var(--font-code);
479 .editor-form-field-label {
484 .editor-form-actions {
486 justify-content: end;
490 .editor-form-actions > button {
494 padding: $-xs*1.3 $-m;
500 outline: 1px dotted currentColor;
501 outline-offset: -$-xs;
503 filter: brightness(90%);
506 .editor-form-action-primary {
507 background-color: var(--color-primary);
509 border: 1px solid var(--color-primary);
511 @include lightDark(box-shadow, $bs-light, $bs-dark);
512 filter: brightness(110%);
515 .editor-form-action-secondary {
517 @include lightDark(border-color, #CCC, #666);
518 @include lightDark(color, #666, #AAA);
519 &:hover, &:focus, &:active {
520 @include lightDark(color, #444, #BBB);
521 border: 1px solid #CCC;
522 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
523 background-color: #F2F2F2;
524 @include lightDark(background-color, #f8f8f8, #444);
529 background-color: #DDD;
531 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
534 .editor-form-tab-container {
539 .editor-form-tab-controls {
541 flex-direction: column;
542 align-items: stretch;
545 .editor-form-tab-control {
549 border-bottom: 2px solid transparent;
552 padding: .25rem .5rem;
554 &[aria-selected="true"] {
555 border-color: var(--editor-color-primary);
556 color: var(--editor-color-primary);
558 &[aria-selected="true"]:after, &:hover:after {
559 background-color: var(--editor-color-primary);
570 .editor-form-tab-contents {
573 .editor-action-input-container {
577 justify-content: space-between;
584 // Editor theme styles
588 .editor-theme-italic {
591 .editor-theme-strikethrough {
592 text-decoration-line: line-through;
594 .editor-theme-underline {
595 text-decoration-line: underline;
597 .editor-theme-underline-strikethrough {
598 text-decoration: underline line-through;