8
8
9
9
// Main UI elements
10
10
.editor-container {
11
- background-color : #FFF ;
11
+ @include mixins . lightDark ( background-color , #FFF , #222 ) ;
12
12
position : relative ;
13
13
& .fullscreen {
14
14
z-index : 500 ;
15
15
}
16
16
}
17
+
17
18
.editor-toolbar-main {
18
19
display : flex ;
19
20
flex-wrap : wrap ;
20
21
justify-content : center ;
21
22
border-top : 1px solid #DDD ;
22
23
border-bottom : 1px solid #DDD ;
24
+ @include mixins .lightDark (border-color , #DDD , #000 );
23
25
}
24
26
25
27
body .editor-is-fullscreen {
@@ -46,6 +48,7 @@ body.editor-is-fullscreen {
46
48
font-size : 12px ;
47
49
padding : 4px ;
48
50
color : #444 ;
51
+ @include mixins .lightDark (color , #444 , #999 );
49
52
border-radius : 4px ;
50
53
display : flex ;
51
54
align-items : center ;
@@ -54,6 +57,7 @@ body.editor-is-fullscreen {
54
57
}
55
58
.editor-button :hover {
56
59
background-color : #EEE ;
60
+ @include mixins .lightDark (background-color , #EEE , #333 );
57
61
cursor : pointer ;
58
62
color : #000 ;
59
63
}
@@ -63,7 +67,7 @@ body.editor-is-fullscreen {
63
67
opacity : .6 ;
64
68
}
65
69
.editor-button-active , .editor-button-active :hover {
66
- background-color : #ceebff ;
70
+ @include mixins . lightDark ( background-color , #ceebff , #444 ) ;
67
71
color : #000 ;
68
72
}
69
73
.editor-button-long {
@@ -75,7 +79,7 @@ body.editor-is-fullscreen {
75
79
}
76
80
.editor-button-text {
77
81
font-weight : 400 ;
78
- color : #000 ;
82
+ @include mixins . lightDark ( color , #000 , #AAA ) ;
79
83
font-size : 14px ;
80
84
flex : 1 ;
81
85
padding-inline-end : 4px ;
@@ -126,7 +130,8 @@ body.editor-is-fullscreen {
126
130
}
127
131
}
128
132
& :hover {
129
- outline : 1px solid #DDD ;
133
+ outline : 1px solid ;
134
+ @include mixins .lightDark (outline-color , #DDD , #111 );
130
135
outline-offset : -3px ;
131
136
}
132
137
}
@@ -137,11 +142,14 @@ body.editor-is-fullscreen {
137
142
}
138
143
.editor-dropdown-menu {
139
144
position : absolute ;
140
- background-color : #FFF ;
141
- box-shadow : 0 0 6px 0 rgba (0 , 0 , 0 , 0.15 );
145
+ border : 1px solid ;
146
+ @include mixins .lightDark (background-color , #FFF , #292929 );
147
+ @include mixins .lightDark (border-color , #FFF , #333 );
148
+ @include mixins .lightDark (box-shadow , 0 0 6px 0 rgba (0 , 0 , 0 , 0.15 ), 0 1px 4px 0 rgba (0 , 0 , 0 , 0.4 ));
142
149
z-index : 99 ;
143
150
display : flex ;
144
151
flex-direction : row ;
152
+ border-radius : 3px ;
145
153
}
146
154
.editor-dropdown-menu-vertical {
147
155
display : flex ;
@@ -163,8 +171,8 @@ body.editor-is-fullscreen {
163
171
.editor-separator {
164
172
display : block ;
165
173
height : 1px ;
166
- background-color : #DDD ;
167
174
opacity : .8 ;
175
+ @include mixins .lightDark (background-color , #DDD , #000 );
168
176
}
169
177
170
178
.editor-format-menu-toggle {
@@ -199,6 +207,7 @@ body.editor-is-fullscreen {
199
207
display : flex ;
200
208
border-inline : 1px solid #DDD ;
201
209
padding-inline : 4px ;
210
+ @include mixins .lightDark (border-color , #DDD , #000 );
202
211
& :first-child {
203
212
border-inline-start : none ;
204
213
}
@@ -212,11 +221,12 @@ body.editor-is-fullscreen {
212
221
213
222
.editor-context-toolbar {
214
223
position : fixed ;
215
- background-color : #FFF ;
216
224
border : 1px solid #DDD ;
225
+ @include mixins .lightDark (background-color , #FFF , #222 );
226
+ @include mixins .lightDark (border-color , #DDD , #333 );
227
+ @include mixins .lightDark (box-shadow , 0 2px 4px 0 rgba (0 , 0 , 0 , 0.12 ), 0 1px 4px 0 rgba (0 , 0 , 0 , 0.4 ));
217
228
padding : .2rem ;
218
229
border-radius : 4px ;
219
- box-shadow : 0 2px 4px 0 rgba (0 , 0 , 0 , 0.12 );
220
230
display : flex ;
221
231
flex-direction : row ;
222
232
& :before {
@@ -226,9 +236,10 @@ body.editor-is-fullscreen {
226
236
width : 8px ;
227
237
height : 8px ;
228
238
position : absolute ;
229
- background-color : #FFF ;
239
+ @include mixins . lightDark ( background-color , #FFF , #222 ) ;
230
240
border-top : 1px solid #DDD ;
231
241
border-left : 1px solid #DDD ;
242
+ @include mixins .lightDark (border-color , #DDD , #333 );
232
243
transform : rotate (45deg );
233
244
left : 50% ;
234
245
margin-left : -4px ;
@@ -252,7 +263,7 @@ body.editor-is-fullscreen {
252
263
height : 100% ;
253
264
}
254
265
.editor-modal {
255
- background-color : #FFF ;
266
+ @include mixins . lightDark ( background-color , #FFF , #222 ) ;
256
267
border-radius : 4px ;
257
268
overflow : hidden ;
258
269
box-shadow : 0 0 15px 0 rgba (0 , 0 , 0 , 0.3 );
@@ -314,7 +325,8 @@ body.editor-is-fullscreen {
314
325
display : flex ;
315
326
}
316
327
.editor-table-creator-cell {
317
- border : 1px solid #DDD ;
328
+ border : 1px solid ;
329
+ @include mixins .lightDark (border-color , #DDD , #000 );
318
330
width : 15px ;
319
331
height : 15px ;
320
332
cursor : pointer ;
@@ -347,7 +359,7 @@ body.editor-is-fullscreen {
347
359
height : 10px ;
348
360
border : 2px solid var (--editor-color-primary );
349
361
z-index : 3 ;
350
- background-color : #FFF ;
362
+ @include mixins . lightDark ( background-color , #FFF , #000 ) ;
351
363
user-select : none ;
352
364
& .nw {
353
365
inset-inline-start : -5px ;
@@ -477,10 +489,11 @@ body.editor-is-fullscreen {
477
489
display : block ;
478
490
width : 100% ;
479
491
min-width : 250px ;
480
- border : 1px solid #DDD ;
492
+ border : 1px solid ;
493
+ @include mixins .lightDark (border-color , #DDD , #000 );
481
494
padding : .5rem ;
482
495
border-radius : 4px ;
483
- color : #444 ;
496
+ @include mixins . lightDark ( color , #444 , #BBB ) ;
484
497
}
485
498
textarea .editor-form-field-input {
486
499
font-family : var (--font-code );
@@ -557,15 +570,15 @@ textarea.editor-form-field-input {
557
570
.editor-form-tab-control {
558
571
font-weight : bold ;
559
572
font-size : 14px ;
560
- color : #444 ;
573
+ @include mixins . lightDark ( color , #444 , #666 ) ;
561
574
border-bottom : 2px solid transparent ;
562
575
position : relative ;
563
576
cursor : pointer ;
564
577
padding : .25rem .5rem ;
565
578
text-align : start ;
566
579
& [aria-selected = " true" ] {
567
580
border-color : var (--editor-color-primary );
568
- color : var (--editor-color-primary );
581
+ color : var (--editor-color-primary ) !important ;
569
582
}
570
583
& [aria-selected = " true" ]:after , & :hover :after {
571
584
background-color : var (--editor-color-primary );
0 commit comments