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;
62 .editor-button-format-preview {
66 .editor-button-icon svg {
75 .editor-dropdown-menu-container {
78 .editor-dropdown-menu {
80 background-color: #FFF;
81 box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
89 flex-direction: column;
92 .editor-menu-list .editor-button {
98 .editor-menu-list > .editor-dropdown-menu-container .editor-dropdown-menu {
99 inset-inline-start: 100%;
101 flex-direction: column;
104 .editor-format-menu-toggle {
108 padding-inline: 12px;
109 justify-content: start;
110 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>');
111 background-repeat: no-repeat;
112 background-position: 98% 50%;
113 background-size: 28px;
115 .editor-format-menu .editor-dropdown-menu {
117 .editor-dropdown-menu {
121 .editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
125 .editor-overflow-container {
127 border-inline: 1px solid #DDD;
130 border-inline-start: none;
133 border-inline-end: none;
135 + .editor-overflow-container {
136 border-inline-start: none;
140 .editor-context-toolbar {
142 background-color: #FFF;
143 border: 1px solid #DDD;
146 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
156 background-color: #FFF;
157 border-top: 1px solid #DDD;
158 border-left: 1px solid #DDD;
159 transform: rotate(45deg);
165 top: calc(100% - 5px);
166 transform: rotate(225deg);
171 .editor-modal-wrapper {
175 justify-content: center;
177 background-color: rgba(0, 0, 0, 0.5);
182 background-color: #FFF;
185 box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
187 .editor-modal-header {
189 justify-content: space-between;
190 align-items: stretch;
191 background-color: var(--color-primary);
194 .editor-modal-title {
197 .editor-modal-close {
201 justify-content: center;
204 background-color: rgba(255, 255, 255, 0.1);
217 // Specific UI elements
218 .editor-color-select-row {
221 .editor-color-select-option {
226 .editor-color-select-option:hover {
228 box-sizing: border-box;
230 box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
232 .editor-table-creator-row {
235 .editor-table-creator-cell {
236 border: 1px solid #DDD;
241 background-color: var(--editor-color-primary);
244 .editor-table-creator-display {
249 // In-editor elements
252 display: inline-flex;
254 .editor-image-decorator {
260 display: inline-block;
262 border: 1px dashed var(--editor-color-primary);
265 .editor-image-decorator-handle {
270 border: 2px solid var(--editor-color-primary);
271 background-color: #FFF;
274 inset-inline-start: -5px;
275 inset-block-start: -5px;
279 inset-inline-end: -5px;
280 inset-block-start: -5px;
284 inset-inline-end: -5px;
285 inset-block-end: -5px;
289 inset-inline-start: -5px;
290 inset-block-end: -5px;
295 .editor-table-marker {
297 background-color: var(--editor-color-primary);
305 .editor-table-marker-column {
309 .editor-table-marker-row {
314 .editor-code-block-wrap {
317 pointer-events: none;
319 &.selected .cm-editor {
320 border: 1px dashed var(--editor-color-primary);
323 .editor-diagram.selected {
324 outline: 2px dashed var(--editor-color-primary);
327 // Editor form elements
328 .editor-form-field-wrapper {
329 margin-bottom: .5rem;
331 .editor-form-field-input {
335 border: 1px solid #DDD;
340 textarea.editor-form-field-input {
341 font-family: var(--font-code);
346 .editor-form-field-label {
351 .editor-form-actions {
353 justify-content: end;
357 .editor-form-actions > button {
361 padding: $-xs*1.3 $-m;
367 outline: 1px dotted currentColor;
368 outline-offset: -$-xs;
370 filter: brightness(90%);
373 .editor-form-action-primary {
374 background-color: var(--color-primary);
376 border: 1px solid var(--color-primary);
378 @include lightDark(box-shadow, $bs-light, $bs-dark);
379 filter: brightness(110%);
382 .editor-form-action-secondary {
384 @include lightDark(border-color, #CCC, #666);
385 @include lightDark(color, #666, #AAA);
386 &:hover, &:focus, &:active {
387 @include lightDark(color, #444, #BBB);
388 border: 1px solid #CCC;
389 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
390 background-color: #F2F2F2;
391 @include lightDark(background-color, #f8f8f8, #444);
396 background-color: #DDD;
398 box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
401 .editor-form-tab-container {
406 .editor-form-tab-controls {
408 flex-direction: column;
409 align-items: stretch;
412 .editor-form-tab-control {
416 border-bottom: 2px solid transparent;
419 padding: .25rem .5rem;
421 &[aria-selected="true"] {
422 border-color: var(--editor-color-primary);
423 color: var(--editor-color-primary);
425 &[aria-selected="true"]:after, &:hover:after {
426 background-color: var(--editor-color-primary);
437 .editor-form-tab-contents {
441 // Editor theme styles
445 .editor-theme-italic {
448 .editor-theme-strikethrough {
449 text-decoration-line: line-through;
451 .editor-theme-underline {
452 text-decoration-line: underline;
454 .editor-theme-underline-strikethrough {
455 text-decoration: underline line-through;