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-container[dir="rtl"] .editor-menu-button-icon {
102 .editor-button-with-menu-container {
106 align-items: stretch;
108 .editor-dropdown-menu-container {
111 .editor-dropdown-menu-container > .editor-dropdown-menu {
114 .editor-dropdown-menu-container > .editor-button {
116 margin-inline-start: -3px;
123 outline: 1px solid #DDD;
124 outline-offset: -3px;
129 .editor-dropdown-menu-container {
132 .editor-dropdown-menu {
134 background-color: #FFF;
135 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
141 .editor-dropdown-menu-vertical {
143 flex-direction: column;
144 align-items: stretch;
147 .editor-dropdown-menu-vertical .editor-button {
153 .editor-dropdown-menu-vertical > .editor-dropdown-menu-container .editor-dropdown-menu {
154 inset-inline-start: 100%;
161 background-color: #DDD;
165 .editor-format-menu-toggle {
170 padding-inline: 12px;
171 justify-content: start;
172 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>');
173 background-repeat: no-repeat;
174 background-position: 98% 50%;
175 background-size: 28px;
177 .editor-container[dir="rtl"] .editor-format-menu-toggle {
178 background-position: 2% 50%;
180 .editor-format-menu .editor-dropdown-menu {
182 .editor-dropdown-menu {
185 .editor-button-icon {
189 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
193 .editor-overflow-container {
195 border-inline: 1px solid #DDD;
198 border-inline-start: none;
201 border-inline-end: none;
203 + .editor-overflow-container {
204 border-inline-start: none;
208 .editor-context-toolbar {
210 background-color: #FFF;
211 border: 1px solid #DDD;
214 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
224 background-color: #FFF;
225 border-top: 1px solid #DDD;
226 border-left: 1px solid #DDD;
227 transform: rotate(45deg);
233 top: calc(100% - 5px);
234 transform: rotate(225deg);
239 .editor-modal-wrapper {
243 justify-content: center;
245 background-color: rgba(0, 0, 0, 0.5);
250 background-color: #FFF;
253 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
255 .editor-modal-header {
257 justify-content: space-between;
258 align-items: stretch;
259 background-color: var(--color-primary);
262 .editor-modal-title {
265 .editor-modal-close {
269 justify-content: center;
272 background-color: rgba(255, 255, 255, 0.1);
285 // Specific UI elements
286 .editor-color-select-row {
289 .editor-color-select-option {
295 justify-content: center;
297 .editor-color-select-option:hover {
299 box-sizing: border-box;
301 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
303 .editor-color-select-option[data-color=""] svg {
308 .editor-table-creator-row {
311 .editor-table-creator-cell {
312 border: 1px solid #DDD;
317 background-color: var(--editor-color-primary);
320 .editor-table-creator-display {
325 // In-editor elements
328 display: inline-flex;
330 .editor-node-resizer {
334 display: inline-block;
335 outline: 2px dashed var(--editor-color-primary);
338 .editor-node-resizer-handle {
343 border: 2px solid var(--editor-color-primary);
345 background-color: #FFF;
348 inset-inline-start: -5px;
349 inset-block-start: -5px;
353 inset-inline-end: -5px;
354 inset-block-start: -5px;
358 inset-inline-end: -5px;
359 inset-block-end: -5px;
363 inset-inline-start: -5px;
364 inset-block-end: -5px;
368 .editor-node-resizer-ghost {
377 pointer-events: none;
378 background-color: var(--editor-color-primary);
380 .editor-node-resizer.active .editor-node-resizer-ghost {
384 .editor-table-marker {
386 background-color: var(--editor-color-primary);
394 .editor-table-marker-column {
398 .editor-table-marker-row {
403 .editor-code-block-wrap {
406 pointer-events: none;
408 &.selected .cm-editor {
409 border: 1px dashed var(--editor-color-primary);
412 .editor-diagram.selected {
413 outline: 2px dashed var(--editor-color-primary);
417 display: inline-block;
420 pointer-events: none;
435 * Fake task list checkboxes
437 .editor-content-area .task-list-item {
441 .editor-content-area .task-list-item > input[type="checkbox"] {
444 .editor-content-area .task-list-item:before {
446 display: inline-block;
447 border: 2px solid #CCC;
452 vertical-align: text-top;
458 .editor-content-area .task-list-item[checked]:before {
459 background-color: #CCC;
460 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>');
461 background-position: 50% 50%;
462 background-size: 100% 100%;
468 .editor-form-field-wrapper {
469 margin-bottom: .5rem;
471 .editor-form-field-input {
475 border: 1px solid #DDD;
480 textarea.editor-form-field-input {
481 font-family: var(--font-code);
486 .editor-form-field-label {
491 .editor-form-actions {
493 justify-content: end;
497 .editor-form-actions > button {
501 padding: $-xs*1.3 $-m;
507 outline: 1px dotted currentColor;
508 outline-offset: -$-xs;
510 filter: brightness(90%);
513 .editor-form-action-primary {
514 background-color: var(--color-primary);
516 border: 1px solid var(--color-primary);
518 @include lightDark(box-shadow, $bs-light, $bs-dark);
519 filter: brightness(110%);
522 .editor-form-action-secondary {
524 @include lightDark(border-color, #CCC, #666);
525 @include lightDark(color, #666, #AAA);
526 &:hover, &:focus, &:active {
527 @include lightDark(color, #444, #BBB);
528 border: 1px solid #CCC;
529 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
530 background-color: #F2F2F2;
531 @include lightDark(background-color, #f8f8f8, #444);
536 background-color: #DDD;
538 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
541 .editor-form-tab-container {
546 .editor-form-tab-controls {
548 flex-direction: column;
549 align-items: stretch;
552 .editor-form-tab-control {
556 border-bottom: 2px solid transparent;
559 padding: .25rem .5rem;
561 &[aria-selected="true"] {
562 border-color: var(--editor-color-primary);
563 color: var(--editor-color-primary);
565 &[aria-selected="true"]:after, &:hover:after {
566 background-color: var(--editor-color-primary);
577 .editor-form-tab-contents {
580 .editor-action-input-container {
584 justify-content: space-between;
591 // Editor theme styles
595 .editor-theme-italic {
598 .editor-theme-strikethrough {
599 text-decoration-line: line-through;
601 .editor-theme-underline {
602 text-decoration-line: underline;
604 .editor-theme-underline-strikethrough {
605 text-decoration: underline line-through;