3
3
grid- template-areas: 'editor' ;
4
4
}
5
5
6
+ .da-prose-mirror {
7
+ --editor-btn-bg-color : # EFEFEF ;
8
+ --editor-btn-bg-color-hover : # e9e9e9 ;
9
+ }
10
+
11
+
6
12
.da-prose-mirror {
7
13
grid-area : editor;
8
14
}
@@ -141,7 +147,7 @@ td.selectedCell {
141
147
overflow : hidden;
142
148
border-radius : 2px ;
143
149
margin-bottom : 6px ;
144
- background-color : # EFEFEF ;
150
+ background-color : var ( --editor-btn-bg-color ) ;
145
151
}
146
152
147
153
span .ProseMirror-menuitem .edit-table [style = "" ] + .ProseMirror-menuitem {
@@ -155,7 +161,7 @@ span.ProseMirror-menuitem.edit-table[style=""] + .ProseMirror-menuitem {
155
161
span .ProseMirror-menuseparator {
156
162
height : 2px ;
157
163
display : block;
158
- background : # EFEFEF ;
164
+ background : var ( --editor-btn-bg-color ) ;
159
165
margin-bottom : 6px ;
160
166
border-radius : 1px ;
161
167
}
@@ -169,6 +175,12 @@ span.ProseMirror-menuseparator {
169
175
height : 44px ;
170
176
}
171
177
178
+ .ProseMirror-menu-dropdown : hover ,
179
+ .ProseMirror-menuitem > div : not (.ProseMirror-menu-dropdown-wrap , .ProseMirror-menu-disabled ): hover ,
180
+ .ProseMirror-menu-dropdown-item > div : not (.ProseMirror-menu-disabled ): hover {
181
+ background-color : var (--editor-btn-bg-color-hover ) !important ;
182
+ }
183
+
172
184
.ProseMirror-menuitem : has (.open-assets .ProseMirror-menu-disabled ),
173
185
.ProseMirror-menuitem : has (.img-alt-text .ProseMirror-menu-disabled )
174
186
{
@@ -180,7 +192,7 @@ span.ProseMirror-menuseparator {
180
192
}
181
193
182
194
.ProseMirror-menu-dropdown .edit-text {
183
- background : url ('/blocks/edit/img/Smock_Text_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
195
+ background : url ('/blocks/edit/img/Smock_Text_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
184
196
}
185
197
186
198
.ProseMirror-menu-dropdown-menu {
@@ -207,137 +219,137 @@ span.ProseMirror-menuseparator {
207
219
.ProseMirror-menu-dropdown-item > .separator {
208
220
height : 2px ;
209
221
display : block;
210
- background : # EFEFEF ;
222
+ background : var ( --editor-btn-bg-color ) ;
211
223
margin-bottom : 6px ;
212
224
border-radius : 1px ;
213
225
}
214
226
215
227
.menu-item-para {
216
- background : url ('/blocks/edit/img/Smock_TextParagraph_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
228
+ background : url ('/blocks/edit/img/Smock_TextParagraph_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
217
229
}
218
230
219
231
.menu-item-h1 {
220
- background : url ('/blocks/edit/img/Smock_Heading1_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
232
+ background : url ('/blocks/edit/img/Smock_Heading1_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
221
233
}
222
234
223
235
.menu-item-h2 {
224
- background : url ('/blocks/edit/img/Smock_Heading2_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
236
+ background : url ('/blocks/edit/img/Smock_Heading2_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
225
237
}
226
238
227
239
.menu-item-h3 {
228
- background : url ('/blocks/edit/img/Smock_Heading3_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
240
+ background : url ('/blocks/edit/img/Smock_Heading3_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
229
241
}
230
242
231
243
.menu-item-h4 {
232
- background : url ('/blocks/edit/img/Smock_Heading4_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
244
+ background : url ('/blocks/edit/img/Smock_Heading4_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
233
245
}
234
246
235
247
.menu-item-h5 {
236
- background : url ('/blocks/edit/img/Smock_Heading5_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
248
+ background : url ('/blocks/edit/img/Smock_Heading5_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
237
249
}
238
250
239
251
.menu-item-h6 {
240
- background : url ('/blocks/edit/img/Smock_Heading6_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
252
+ background : url ('/blocks/edit/img/Smock_Heading6_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
241
253
}
242
254
243
255
.edit-bold {
244
- background : url ('/blocks/edit/img/Smock_TextBold_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
256
+ background : url ('/blocks/edit/img/Smock_TextBold_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
245
257
}
246
258
247
259
.edit-italic {
248
- background : url ('/blocks/edit/img/Smock_TextItalic_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
260
+ background : url ('/blocks/edit/img/Smock_TextItalic_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
249
261
}
250
262
251
263
.edit-link {
252
- background : url ('/blocks/edit/img/Smock_Link_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
264
+ background : url ('/blocks/edit/img/Smock_Link_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
253
265
}
254
266
255
267
.edit-unlink {
256
- background : url ('/blocks/edit/img/Smock_Unlink_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
268
+ background : url ('/blocks/edit/img/Smock_Unlink_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
257
269
}
258
270
259
271
.bullet-list , .ProseMirror-menu-dropdown .list-menu {
260
- background : url ('/blocks/edit/img/Smock_TextBulleted_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
272
+ background : url ('/blocks/edit/img/Smock_TextBulleted_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
261
273
}
262
274
263
275
.ordered-list {
264
- background : url ('/blocks/edit/img/Smock_TextNumbered_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
276
+ background : url ('/blocks/edit/img/Smock_TextNumbered_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
265
277
}
266
278
267
279
.indent-list {
268
- background : url ('/blocks/edit/img/Smock_TextIndentIncrease_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
280
+ background : url ('/blocks/edit/img/Smock_TextIndentIncrease_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
269
281
}
270
282
271
283
.outdent-list {
272
- background : url ('/blocks/edit/img/Smock_TextIndentDecrease_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
284
+ background : url ('/blocks/edit/img/Smock_TextIndentDecrease_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
273
285
}
274
286
275
287
.insert-table {
276
- background : url ('/blocks/edit/img/Smock_TableAdd_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
288
+ background : url ('/blocks/edit/img/Smock_TableAdd_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
277
289
}
278
290
279
291
.ProseMirror-menu-dropdown .edit-table {
280
- background : url ('/blocks/edit/img/Smock_TableEdit_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
292
+ background : url ('/blocks/edit/img/Smock_TableEdit_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
281
293
}
282
294
283
295
.addColBefore {
284
- background : url ('/blocks/edit/img/Smock_TableColumnAddLeft_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
296
+ background : url ('/blocks/edit/img/Smock_TableColumnAddLeft_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
285
297
}
286
298
287
299
.addColumnAfter {
288
- background : url ('/blocks/edit/img/Smock_TableColumnAddRight_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
300
+ background : url ('/blocks/edit/img/Smock_TableColumnAddRight_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
289
301
}
290
302
291
303
.deleteColumn {
292
- background : url ('/blocks/edit/img/Smock_TableColumnRemoveCenter_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
304
+ background : url ('/blocks/edit/img/Smock_TableColumnRemoveCenter_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
293
305
}
294
306
295
307
.addRowBefore {
296
- background : url ('/blocks/edit/img/Smock_TableRowAddTop_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
308
+ background : url ('/blocks/edit/img/Smock_TableRowAddTop_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
297
309
}
298
310
299
311
.addRowAfter {
300
- background : url ('/blocks/edit/img/Smock_TableRowAddBottom_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
312
+ background : url ('/blocks/edit/img/Smock_TableRowAddBottom_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
301
313
}
302
314
303
315
.deleteRow {
304
- background : url ('/blocks/edit/img/Smock_TableRowRemoveCenter_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
316
+ background : url ('/blocks/edit/img/Smock_TableRowRemoveCenter_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
305
317
}
306
318
307
319
.deleteTable {
308
- background : url ('/blocks/edit/img/Smock_TableRemove_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
320
+ background : url ('/blocks/edit/img/Smock_TableRemove_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
309
321
}
310
322
311
323
.mergeCells {
312
- background : url ('/blocks/edit/img/Smock_TableMergeCells_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
324
+ background : url ('/blocks/edit/img/Smock_TableMergeCells_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
313
325
}
314
326
315
327
.splitCell {
316
- background : url ('/blocks/edit/img/Smock_TableRowSplit_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
328
+ background : url ('/blocks/edit/img/Smock_TableRowSplit_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
317
329
}
318
330
319
331
.edit-hr {
320
- background : url ('/blocks/edit/img/Smock_PageRule_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
332
+ background : url ('/blocks/edit/img/Smock_PageRule_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
321
333
}
322
334
323
335
.open-library {
324
- background : url ('/blocks/edit/img/Smock_CCLibrary_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
336
+ background : url ('/blocks/edit/img/Smock_CCLibrary_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
325
337
}
326
338
327
339
.open-assets {
328
- background : url ('/blocks/edit/img/Smock_Images_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
340
+ background : url ('/blocks/edit/img/Smock_Images_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
329
341
}
330
342
331
343
.edit-undo {
332
- background : url ('/blocks/edit/img/Smock_Undo_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
344
+ background : url ('/blocks/edit/img/Smock_Undo_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
333
345
}
334
346
335
347
.edit-redo {
336
- background : url ('/blocks/edit/img/Smock_Redo_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
348
+ background : url ('/blocks/edit/img/Smock_Redo_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
337
349
}
338
350
339
351
.img-alt-text {
340
- background : url ('/blocks/edit/img/Smock_ImageText_18_N.svg' ) center / 18px no-repeat # EFEFEF ;
352
+ background : url ('/blocks/edit/img/Smock_ImageText_18_N.svg' ) center / 18px no-repeat var ( --editor-btn-bg-color ) ;
341
353
}
342
354
343
355
/* Generic ProseMirror Styles */
@@ -584,6 +596,7 @@ da-library.hide {
584
596
word-break : normal;
585
597
pointer-events : none;
586
598
}
599
+
587
600
/* This renders the username above the caret */
588
601
.ProseMirror-yjs-cursor > div {
589
602
position : absolute;
@@ -601,3 +614,107 @@ da-library.hide {
601
614
padding : 0 3px ;
602
615
white-space : nowrap;
603
616
}
617
+
618
+ da-loc-deleted , da-loc-added {
619
+ display : block;
620
+ position : relative;
621
+ }
622
+
623
+ .loc-dialog {
624
+ /* position: relative; */
625
+ /* top: 50%;
626
+ transform: translateY(-50%); */
627
+ padding : 10px ;
628
+ border-radius : 4px ;
629
+ box-shadow : rgb (181 , 181 , 181 ) 0px 0px 5px 0px ;
630
+ background : rgb (255 , 255 , 255 );
631
+ box-sizing : border-box;
632
+ grid-area : toolbar;
633
+ z-index : 1002 ;
634
+ display : flex;
635
+ flex-direction : column;
636
+ }
637
+
638
+ .loc-dialog > span {
639
+ height : 40px ;
640
+ }
641
+
642
+ .loc-dialog > div {
643
+ display : flex;
644
+ justify-content : space-around;
645
+ }
646
+
647
+ .loc-dialog > div > span {
648
+ display : block;
649
+ width : 44px ;
650
+ height : 44px ;
651
+ text-indent : -1000px ;
652
+ overflow : hidden;
653
+ border-radius : 2px ;
654
+ margin-bottom : 6px ;
655
+ background-color : rgb (239 239 239 );
656
+ box-shadow : rgb (181 181 181 ) 0 0 5px 0 ;
657
+ }
658
+
659
+ .loc-keep {
660
+ width : 44px ;
661
+ height : 44px ;
662
+ background : url ('/blocks/edit/img/Smock_CheckmarkCircleOutline_18_N.svg' ) center / 18px no-repeat var (--editor-btn-bg-color );
663
+ }
664
+
665
+ .loc-keep : hover {
666
+ box-shadow : # 008000 0 0 5px 0 ;
667
+ }
668
+
669
+ .loc-delete {
670
+ width : 44px ;
671
+ height : 44px ;
672
+ background : url ('/blocks/edit/img/Smock_DeleteOutline_18_N.svg' ) center / 18px no-repeat var (--editor-btn-bg-color );
673
+ }
674
+
675
+ .loc-delete : hover {
676
+ box-shadow : # ff0000 0 0 5px 0 ;
677
+ }
678
+
679
+ .loc-color-overlay {
680
+ position : absolute;
681
+ top : 0 ;
682
+ left : 0 ;
683
+ width : 100% ;
684
+ height : 100% ;
685
+ }
686
+
687
+ .loc-color-overlay .loc-langstore ::after {
688
+ content : 'Langstore' ;
689
+ position : absolute;
690
+ bottom : 0 ;
691
+ right : 0 ;
692
+ padding : 5px ;
693
+ font-size : 10px ;
694
+ background-color : rgba (70 , 130 , 180 , 90% );
695
+ color : white;
696
+ }
697
+
698
+ .loc-color-overlay .loc-regional ::after {
699
+ content : 'Regional' ;
700
+ position : absolute;
701
+ bottom : 0 ;
702
+ right : 0 ;
703
+ padding : 5px ;
704
+ font-size : 10px ;
705
+ background-color : rgba (144 , 42 , 222 , 90% );
706
+ color : white;
707
+ }
708
+
709
+ .loc-lang-overlay {
710
+ position : absolute;
711
+ top : 0 ;
712
+ left : 0 ;
713
+ width : 100% ;
714
+ height : 100% ;
715
+ z-index : 1001 ;
716
+ display : none;
717
+ justify-content : center;
718
+ align-items : center;
719
+ flex-direction : column;
720
+ }
0 commit comments