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;
63 display: flex !important;
66 justify-content: start;
74 .editor-button-format-preview {
78 .editor-button-icon svg {
87 .editor-dropdown-menu-container {
90 .editor-dropdown-menu {
92 background-color: #FFF;
93 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
99 .editor-dropdown-menu-vertical {
101 flex-direction: column;
102 align-items: stretch;
104 .editor-dropdown-menu-vertical .editor-button {
110 .editor-dropdown-menu-vertical > .editor-dropdown-menu-container .editor-dropdown-menu {
111 inset-inline-start: 100%;
115 .editor-format-menu-toggle {
119 padding-inline: 12px;
120 justify-content: start;
121 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>');
122 background-repeat: no-repeat;
123 background-position: 98% 50%;
124 background-size: 28px;
126 .editor-format-menu .editor-dropdown-menu {
128 .editor-dropdown-menu {
132 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
136 .editor-overflow-container {
138 border-inline: 1px solid #DDD;
141 border-inline-start: none;
144 border-inline-end: none;
146 + .editor-overflow-container {
147 border-inline-start: none;
151 .editor-context-toolbar {
153 background-color: #FFF;
154 border: 1px solid #DDD;
157 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
167 background-color: #FFF;
168 border-top: 1px solid #DDD;
169 border-left: 1px solid #DDD;
170 transform: rotate(45deg);
176 top: calc(100% - 5px);
177 transform: rotate(225deg);
182 .editor-modal-wrapper {
186 justify-content: center;
188 background-color: rgba(0, 0, 0, 0.5);
193 background-color: #FFF;
196 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
198 .editor-modal-header {
200 justify-content: space-between;
201 align-items: stretch;
202 background-color: var(--color-primary);
205 .editor-modal-title {
208 .editor-modal-close {
212 justify-content: center;
215 background-color: rgba(255, 255, 255, 0.1);
228 // Specific UI elements
229 .editor-color-select-row {
232 .editor-color-select-option {
237 .editor-color-select-option:hover {
239 box-sizing: border-box;
241 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
243 .editor-table-creator-row {
246 .editor-table-creator-cell {
247 border: 1px solid #DDD;
252 background-color: var(--editor-color-primary);
255 .editor-table-creator-display {
260 // In-editor elements
263 display: inline-flex;
265 .editor-image-decorator {
271 display: inline-block;
273 border: 1px dashed var(--editor-color-primary);
276 .editor-image-decorator-handle {
281 border: 2px solid var(--editor-color-primary);
282 background-color: #FFF;
285 inset-inline-start: -5px;
286 inset-block-start: -5px;
290 inset-inline-end: -5px;
291 inset-block-start: -5px;
295 inset-inline-end: -5px;
296 inset-block-end: -5px;
300 inset-inline-start: -5px;
301 inset-block-end: -5px;
306 .editor-table-marker {
308 background-color: var(--editor-color-primary);
316 .editor-table-marker-column {
320 .editor-table-marker-row {
325 .editor-code-block-wrap {
328 pointer-events: none;
330 &.selected .cm-editor {
331 border: 1px dashed var(--editor-color-primary);
334 .editor-diagram.selected {
335 outline: 2px dashed var(--editor-color-primary);
339 * Fake task list checkboxes
341 .editor-content-area .task-list-item {
345 .editor-content-area .task-list-item > input[type="checkbox"] {
348 .editor-content-area .task-list-item:before {
350 display: inline-block;
351 border: 2px solid #CCC;
356 vertical-align: text-top;
362 .editor-content-area .task-list-item[checked]:before {
363 background-color: #CCC;
364 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>');
365 background-position: 50% 50%;
366 background-size: 100% 100%;
369 // Editor form elements
370 .editor-form-field-wrapper {
371 margin-bottom: .5rem;
373 .editor-form-field-input {
377 border: 1px solid #DDD;
382 textarea.editor-form-field-input {
383 font-family: var(--font-code);
388 .editor-form-field-label {
393 .editor-form-actions {
395 justify-content: end;
399 .editor-form-actions > button {
403 padding: $-xs*1.3 $-m;
409 outline: 1px dotted currentColor;
410 outline-offset: -$-xs;
412 filter: brightness(90%);
415 .editor-form-action-primary {
416 background-color: var(--color-primary);
418 border: 1px solid var(--color-primary);
420 @include lightDark(box-shadow, $bs-light, $bs-dark);
421 filter: brightness(110%);
424 .editor-form-action-secondary {
426 @include lightDark(border-color, #CCC, #666);
427 @include lightDark(color, #666, #AAA);
428 &:hover, &:focus, &:active {
429 @include lightDark(color, #444, #BBB);
430 border: 1px solid #CCC;
431 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
432 background-color: #F2F2F2;
433 @include lightDark(background-color, #f8f8f8, #444);
438 background-color: #DDD;
440 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
443 .editor-form-tab-container {
448 .editor-form-tab-controls {
450 flex-direction: column;
451 align-items: stretch;
454 .editor-form-tab-control {
458 border-bottom: 2px solid transparent;
461 padding: .25rem .5rem;
463 &[aria-selected="true"] {
464 border-color: var(--editor-color-primary);
465 color: var(--editor-color-primary);
467 &[aria-selected="true"]:after, &:hover:after {
468 background-color: var(--editor-color-primary);
479 .editor-form-tab-contents {
483 // Editor theme styles
487 .editor-theme-italic {
490 .editor-theme-strikethrough {
491 text-decoration-line: line-through;
493 .editor-theme-underline {
494 text-decoration-line: underline;
496 .editor-theme-underline-strikethrough {
497 text-decoration: underline line-through;