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 .editor-button-format-preview {
79 .editor-button-icon svg {
86 .editor-button-with-menu-container {
92 .editor-dropdown-menu-container {
95 .editor-dropdown-menu-container > .editor-dropdown-menu {
98 .editor-dropdown-menu-container > .editor-button {
100 margin-inline-start: -3px;
107 outline: 1px solid #DDD;
108 outline-offset: -3px;
113 .editor-dropdown-menu-container {
116 .editor-dropdown-menu {
118 background-color: #FFF;
119 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
125 .editor-dropdown-menu-vertical {
127 flex-direction: column;
128 align-items: stretch;
130 .editor-dropdown-menu-vertical .editor-button {
136 .editor-dropdown-menu-vertical > .editor-dropdown-menu-container .editor-dropdown-menu {
137 inset-inline-start: 100%;
141 .editor-format-menu-toggle {
145 padding-inline: 12px;
146 justify-content: start;
147 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>');
148 background-repeat: no-repeat;
149 background-position: 98% 50%;
150 background-size: 28px;
152 .editor-format-menu .editor-dropdown-menu {
154 .editor-dropdown-menu {
158 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
162 .editor-overflow-container {
164 border-inline: 1px solid #DDD;
167 border-inline-start: none;
170 border-inline-end: none;
172 + .editor-overflow-container {
173 border-inline-start: none;
177 .editor-context-toolbar {
179 background-color: #FFF;
180 border: 1px solid #DDD;
183 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
193 background-color: #FFF;
194 border-top: 1px solid #DDD;
195 border-left: 1px solid #DDD;
196 transform: rotate(45deg);
202 top: calc(100% - 5px);
203 transform: rotate(225deg);
208 .editor-modal-wrapper {
212 justify-content: center;
214 background-color: rgba(0, 0, 0, 0.5);
219 background-color: #FFF;
222 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
224 .editor-modal-header {
226 justify-content: space-between;
227 align-items: stretch;
228 background-color: var(--color-primary);
231 .editor-modal-title {
234 .editor-modal-close {
238 justify-content: center;
241 background-color: rgba(255, 255, 255, 0.1);
254 // Specific UI elements
255 .editor-color-select-row {
258 .editor-color-select-option {
263 .editor-color-select-option:hover {
265 box-sizing: border-box;
267 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
269 .editor-table-creator-row {
272 .editor-table-creator-cell {
273 border: 1px solid #DDD;
278 background-color: var(--editor-color-primary);
281 .editor-table-creator-display {
286 // In-editor elements
289 display: inline-flex;
291 .editor-node-resizer {
295 display: inline-block;
296 outline: 2px dashed var(--editor-color-primary);
298 .editor-node-resizer-handle {
303 border: 2px solid var(--editor-color-primary);
305 background-color: #FFF;
308 inset-inline-start: -5px;
309 inset-block-start: -5px;
313 inset-inline-end: -5px;
314 inset-block-start: -5px;
318 inset-inline-end: -5px;
319 inset-block-end: -5px;
323 inset-inline-start: -5px;
324 inset-block-end: -5px;
328 .editor-node-resizer-ghost {
337 pointer-events: none;
338 background-color: var(--editor-color-primary);
340 .editor-node-resizer.active .editor-node-resizer-ghost {
344 .editor-table-marker {
346 background-color: var(--editor-color-primary);
354 .editor-table-marker-column {
358 .editor-table-marker-row {
363 .editor-code-block-wrap {
366 pointer-events: none;
368 &.selected .cm-editor {
369 border: 1px dashed var(--editor-color-primary);
372 .editor-diagram.selected {
373 outline: 2px dashed var(--editor-color-primary);
377 display: inline-block;
380 pointer-events: none;
395 * Fake task list checkboxes
397 .editor-content-area .task-list-item {
401 .editor-content-area .task-list-item > input[type="checkbox"] {
404 .editor-content-area .task-list-item:before {
406 display: inline-block;
407 border: 2px solid #CCC;
412 vertical-align: text-top;
418 .editor-content-area .task-list-item[checked]:before {
419 background-color: #CCC;
420 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>');
421 background-position: 50% 50%;
422 background-size: 100% 100%;
425 // Editor form elements
426 .editor-form-field-wrapper {
427 margin-bottom: .5rem;
429 .editor-form-field-input {
433 border: 1px solid #DDD;
438 textarea.editor-form-field-input {
439 font-family: var(--font-code);
444 .editor-form-field-label {
449 .editor-form-actions {
451 justify-content: end;
455 .editor-form-actions > button {
459 padding: $-xs*1.3 $-m;
465 outline: 1px dotted currentColor;
466 outline-offset: -$-xs;
468 filter: brightness(90%);
471 .editor-form-action-primary {
472 background-color: var(--color-primary);
474 border: 1px solid var(--color-primary);
476 @include lightDark(box-shadow, $bs-light, $bs-dark);
477 filter: brightness(110%);
480 .editor-form-action-secondary {
482 @include lightDark(border-color, #CCC, #666);
483 @include lightDark(color, #666, #AAA);
484 &:hover, &:focus, &:active {
485 @include lightDark(color, #444, #BBB);
486 border: 1px solid #CCC;
487 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
488 background-color: #F2F2F2;
489 @include lightDark(background-color, #f8f8f8, #444);
494 background-color: #DDD;
496 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
499 .editor-form-tab-container {
504 .editor-form-tab-controls {
506 flex-direction: column;
507 align-items: stretch;
510 .editor-form-tab-control {
514 border-bottom: 2px solid transparent;
517 padding: .25rem .5rem;
519 &[aria-selected="true"] {
520 border-color: var(--editor-color-primary);
521 color: var(--editor-color-primary);
523 &[aria-selected="true"]:after, &:hover:after {
524 background-color: var(--editor-color-primary);
535 .editor-form-tab-contents {
538 .editor-action-input-container {
542 justify-content: space-between;
549 // Editor theme styles
553 .editor-theme-italic {
556 .editor-theme-strikethrough {
557 text-decoration-line: line-through;
559 .editor-theme-underline {
560 text-decoration-line: underline;
562 .editor-theme-underline-strikethrough {
563 text-decoration: underline line-through;