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-image-resizer {
295 display: inline-block;
296 outline: 2px dashed var(--editor-color-primary);
298 .editor-image-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-image-resizer-ghost {
337 pointer-events: none;
339 .editor-image-resizer.active .editor-image-resizer-ghost {
343 .editor-table-marker {
345 background-color: var(--editor-color-primary);
353 .editor-table-marker-column {
357 .editor-table-marker-row {
362 .editor-code-block-wrap {
365 pointer-events: none;
367 &.selected .cm-editor {
368 border: 1px dashed var(--editor-color-primary);
371 .editor-diagram.selected {
372 outline: 2px dashed var(--editor-color-primary);
376 * Fake task list checkboxes
378 .editor-content-area .task-list-item {
382 .editor-content-area .task-list-item > input[type="checkbox"] {
385 .editor-content-area .task-list-item:before {
387 display: inline-block;
388 border: 2px solid #CCC;
393 vertical-align: text-top;
399 .editor-content-area .task-list-item[checked]:before {
400 background-color: #CCC;
401 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>');
402 background-position: 50% 50%;
403 background-size: 100% 100%;
406 // Editor form elements
407 .editor-form-field-wrapper {
408 margin-bottom: .5rem;
410 .editor-form-field-input {
414 border: 1px solid #DDD;
419 textarea.editor-form-field-input {
420 font-family: var(--font-code);
425 .editor-form-field-label {
430 .editor-form-actions {
432 justify-content: end;
436 .editor-form-actions > button {
440 padding: $-xs*1.3 $-m;
446 outline: 1px dotted currentColor;
447 outline-offset: -$-xs;
449 filter: brightness(90%);
452 .editor-form-action-primary {
453 background-color: var(--color-primary);
455 border: 1px solid var(--color-primary);
457 @include lightDark(box-shadow, $bs-light, $bs-dark);
458 filter: brightness(110%);
461 .editor-form-action-secondary {
463 @include lightDark(border-color, #CCC, #666);
464 @include lightDark(color, #666, #AAA);
465 &:hover, &:focus, &:active {
466 @include lightDark(color, #444, #BBB);
467 border: 1px solid #CCC;
468 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
469 background-color: #F2F2F2;
470 @include lightDark(background-color, #f8f8f8, #444);
475 background-color: #DDD;
477 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
480 .editor-form-tab-container {
485 .editor-form-tab-controls {
487 flex-direction: column;
488 align-items: stretch;
491 .editor-form-tab-control {
495 border-bottom: 2px solid transparent;
498 padding: .25rem .5rem;
500 &[aria-selected="true"] {
501 border-color: var(--editor-color-primary);
502 color: var(--editor-color-primary);
504 &[aria-selected="true"]:after, &:hover:after {
505 background-color: var(--editor-color-primary);
516 .editor-form-tab-contents {
519 .editor-action-input-container {
523 justify-content: space-between;
530 // Editor theme styles
534 .editor-theme-italic {
537 .editor-theme-strikethrough {
538 text-decoration-line: line-through;
540 .editor-theme-underline {
541 text-decoration-line: underline;
543 .editor-theme-underline-strikethrough {
544 text-decoration: underline line-through;