@mdaemon/html-editor 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +37 -27
- package/dist/index.mjs +37 -27
- package/dist/styles.css +44 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -524,7 +524,7 @@ const editor = new HTMLEditor(container, {
|
|
|
524
524
|
The confab skins expect the following CSS custom properties to be defined by the host application:
|
|
525
525
|
|
|
526
526
|
| Variable | Purpose |
|
|
527
|
-
|
|
527
|
+
|----------|---------|
|
|
528
528
|
| `--theme-primary` | Primary brand color (buttons, active states) |
|
|
529
529
|
| `--theme-primary-hover` | Hover state for primary color |
|
|
530
530
|
| `--color-confab-gray-50` to `--color-confab-gray-900` | Gray scale for backgrounds, text, borders |
|
package/dist/index.d.ts
CHANGED
|
@@ -480,13 +480,15 @@ export declare class Toolbar {
|
|
|
480
480
|
private updateInterval;
|
|
481
481
|
private boundClickHandler;
|
|
482
482
|
private boundKeydownHandler;
|
|
483
|
-
private
|
|
483
|
+
private buttonsEl;
|
|
484
484
|
private toggleBtn;
|
|
485
|
+
private resizeObserver;
|
|
485
486
|
constructor(container: HTMLElement, options: ToolbarOptions);
|
|
486
487
|
private get tiptap();
|
|
487
488
|
private get trans();
|
|
488
489
|
private icon;
|
|
489
490
|
private render;
|
|
491
|
+
private observeOverflow;
|
|
490
492
|
private renderGroups;
|
|
491
493
|
private createToggleButton;
|
|
492
494
|
private toggleOverflow;
|
package/dist/index.js
CHANGED
|
@@ -42797,8 +42797,9 @@ class Toolbar {
|
|
|
42797
42797
|
updateInterval = null;
|
|
42798
42798
|
boundClickHandler = null;
|
|
42799
42799
|
boundKeydownHandler = null;
|
|
42800
|
-
|
|
42800
|
+
buttonsEl = null;
|
|
42801
42801
|
toggleBtn = null;
|
|
42802
|
+
resizeObserver = null;
|
|
42802
42803
|
constructor(container, options) {
|
|
42803
42804
|
this.container = container;
|
|
42804
42805
|
this.options = options;
|
|
@@ -42822,27 +42823,29 @@ class Toolbar {
|
|
|
42822
42823
|
render() {
|
|
42823
42824
|
this.container.innerHTML = "";
|
|
42824
42825
|
this.container.className = `md-toolbar md-toolbar-${this.options.mode}${this.options.sticky ? " md-toolbar-sticky" : ""}`;
|
|
42825
|
-
|
|
42826
|
-
|
|
42827
|
-
|
|
42828
|
-
|
|
42829
|
-
|
|
42830
|
-
|
|
42831
|
-
|
|
42832
|
-
|
|
42833
|
-
this.
|
|
42834
|
-
this.
|
|
42835
|
-
|
|
42836
|
-
|
|
42837
|
-
|
|
42838
|
-
|
|
42839
|
-
|
|
42840
|
-
|
|
42841
|
-
|
|
42842
|
-
|
|
42843
|
-
|
|
42844
|
-
this.
|
|
42845
|
-
|
|
42826
|
+
this.buttonsEl = document.createElement("div");
|
|
42827
|
+
this.buttonsEl.className = "md-toolbar-buttons";
|
|
42828
|
+
const buttonsStr = this.options.buttons.replace(/\|\|/g, "|");
|
|
42829
|
+
this.renderGroups(buttonsStr, this.buttonsEl);
|
|
42830
|
+
this.container.appendChild(this.buttonsEl);
|
|
42831
|
+
this.toggleBtn = this.createToggleButton();
|
|
42832
|
+
this.container.appendChild(this.toggleBtn);
|
|
42833
|
+
if (this.state.showMoreButtons) {
|
|
42834
|
+
this.buttonsEl.classList.add("md-toolbar-expanded");
|
|
42835
|
+
this.toggleBtn.classList.add("md-toolbar-btn-active");
|
|
42836
|
+
}
|
|
42837
|
+
this.observeOverflow();
|
|
42838
|
+
}
|
|
42839
|
+
observeOverflow() {
|
|
42840
|
+
if (this.resizeObserver) {
|
|
42841
|
+
this.resizeObserver.disconnect();
|
|
42842
|
+
}
|
|
42843
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
42844
|
+
if (!this.buttonsEl || !this.toggleBtn) return;
|
|
42845
|
+
const hasOverflow = this.buttonsEl.scrollHeight > this.buttonsEl.clientHeight;
|
|
42846
|
+
this.toggleBtn.style.display = hasOverflow || this.state.showMoreButtons ? "" : "none";
|
|
42847
|
+
});
|
|
42848
|
+
this.resizeObserver.observe(this.buttonsEl);
|
|
42846
42849
|
}
|
|
42847
42850
|
renderGroups(buttonsStr, parent) {
|
|
42848
42851
|
const groups = buttonsStr.split("|").map((g) => g.trim()).filter(Boolean);
|
|
@@ -42880,11 +42883,14 @@ class Toolbar {
|
|
|
42880
42883
|
}
|
|
42881
42884
|
toggleOverflow() {
|
|
42882
42885
|
this.state.showMoreButtons = !this.state.showMoreButtons;
|
|
42883
|
-
if (this.
|
|
42884
|
-
this.
|
|
42886
|
+
if (this.buttonsEl) {
|
|
42887
|
+
this.buttonsEl.classList.toggle("md-toolbar-expanded", this.state.showMoreButtons);
|
|
42885
42888
|
}
|
|
42886
42889
|
if (this.toggleBtn) {
|
|
42887
42890
|
this.toggleBtn.classList.toggle("md-toolbar-btn-active", this.state.showMoreButtons);
|
|
42891
|
+
if (this.state.showMoreButtons) {
|
|
42892
|
+
this.toggleBtn.style.display = "";
|
|
42893
|
+
}
|
|
42888
42894
|
}
|
|
42889
42895
|
}
|
|
42890
42896
|
createButton(name) {
|
|
@@ -43486,7 +43492,7 @@ class Toolbar {
|
|
|
43486
43492
|
this.searchReplace = null;
|
|
43487
43493
|
this.buttonElements.clear();
|
|
43488
43494
|
this.dropdowns.clear();
|
|
43489
|
-
this.
|
|
43495
|
+
this.buttonsEl = null;
|
|
43490
43496
|
this.toggleBtn = null;
|
|
43491
43497
|
this.render();
|
|
43492
43498
|
this.bindEvents();
|
|
@@ -43495,6 +43501,10 @@ class Toolbar {
|
|
|
43495
43501
|
if (this.updateInterval) {
|
|
43496
43502
|
clearInterval(this.updateInterval);
|
|
43497
43503
|
}
|
|
43504
|
+
if (this.resizeObserver) {
|
|
43505
|
+
this.resizeObserver.disconnect();
|
|
43506
|
+
this.resizeObserver = null;
|
|
43507
|
+
}
|
|
43498
43508
|
this.unbindEvents();
|
|
43499
43509
|
this.charMap?.destroy();
|
|
43500
43510
|
this.emojiPicker?.destroy();
|
|
@@ -46004,8 +46014,8 @@ const availableLocales = Object.keys(locales);
|
|
|
46004
46014
|
const TRANSLATION_KEYS = Object.keys(en);
|
|
46005
46015
|
const lowlight = createLowlight(grammars);
|
|
46006
46016
|
const fontNames = "Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva";
|
|
46007
|
-
const FULL_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent blockquote | fontfamily fontsize
|
|
46008
|
-
const BASIC_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent | fontfamily fontsize blockquote
|
|
46017
|
+
const FULL_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent blockquote | fontfamily fontsize | lineheight alignleft aligncenter alignright alignjustify | forecolor backcolor | removeformat copy cut paste | undo redo | image charmap emoticons | fullscreen preview | code link codesample | ltr rtl | searchreplace";
|
|
46018
|
+
const BASIC_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent | fontfamily fontsize blockquote | lineheight alignleft aligncenter alignright alignjustify | forecolor backcolor | removeformat copy cut paste | undo redo | charmap emoticons | link | ltr rtl | searchreplace";
|
|
46009
46019
|
const DEFAULT_FONT_SIZES = "8pt 9pt 10pt 12pt 14pt 18pt 24pt 36pt";
|
|
46010
46020
|
let editorIdCounter = 0;
|
|
46011
46021
|
let globalTranslate = (key) => key;
|
package/dist/index.mjs
CHANGED
|
@@ -42795,8 +42795,9 @@ class Toolbar {
|
|
|
42795
42795
|
updateInterval = null;
|
|
42796
42796
|
boundClickHandler = null;
|
|
42797
42797
|
boundKeydownHandler = null;
|
|
42798
|
-
|
|
42798
|
+
buttonsEl = null;
|
|
42799
42799
|
toggleBtn = null;
|
|
42800
|
+
resizeObserver = null;
|
|
42800
42801
|
constructor(container, options) {
|
|
42801
42802
|
this.container = container;
|
|
42802
42803
|
this.options = options;
|
|
@@ -42820,27 +42821,29 @@ class Toolbar {
|
|
|
42820
42821
|
render() {
|
|
42821
42822
|
this.container.innerHTML = "";
|
|
42822
42823
|
this.container.className = `md-toolbar md-toolbar-${this.options.mode}${this.options.sticky ? " md-toolbar-sticky" : ""}`;
|
|
42823
|
-
|
|
42824
|
-
|
|
42825
|
-
|
|
42826
|
-
|
|
42827
|
-
|
|
42828
|
-
|
|
42829
|
-
|
|
42830
|
-
|
|
42831
|
-
this.
|
|
42832
|
-
this.
|
|
42833
|
-
|
|
42834
|
-
|
|
42835
|
-
|
|
42836
|
-
|
|
42837
|
-
|
|
42838
|
-
|
|
42839
|
-
|
|
42840
|
-
|
|
42841
|
-
|
|
42842
|
-
this.
|
|
42843
|
-
|
|
42824
|
+
this.buttonsEl = document.createElement("div");
|
|
42825
|
+
this.buttonsEl.className = "md-toolbar-buttons";
|
|
42826
|
+
const buttonsStr = this.options.buttons.replace(/\|\|/g, "|");
|
|
42827
|
+
this.renderGroups(buttonsStr, this.buttonsEl);
|
|
42828
|
+
this.container.appendChild(this.buttonsEl);
|
|
42829
|
+
this.toggleBtn = this.createToggleButton();
|
|
42830
|
+
this.container.appendChild(this.toggleBtn);
|
|
42831
|
+
if (this.state.showMoreButtons) {
|
|
42832
|
+
this.buttonsEl.classList.add("md-toolbar-expanded");
|
|
42833
|
+
this.toggleBtn.classList.add("md-toolbar-btn-active");
|
|
42834
|
+
}
|
|
42835
|
+
this.observeOverflow();
|
|
42836
|
+
}
|
|
42837
|
+
observeOverflow() {
|
|
42838
|
+
if (this.resizeObserver) {
|
|
42839
|
+
this.resizeObserver.disconnect();
|
|
42840
|
+
}
|
|
42841
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
42842
|
+
if (!this.buttonsEl || !this.toggleBtn) return;
|
|
42843
|
+
const hasOverflow = this.buttonsEl.scrollHeight > this.buttonsEl.clientHeight;
|
|
42844
|
+
this.toggleBtn.style.display = hasOverflow || this.state.showMoreButtons ? "" : "none";
|
|
42845
|
+
});
|
|
42846
|
+
this.resizeObserver.observe(this.buttonsEl);
|
|
42844
42847
|
}
|
|
42845
42848
|
renderGroups(buttonsStr, parent) {
|
|
42846
42849
|
const groups = buttonsStr.split("|").map((g) => g.trim()).filter(Boolean);
|
|
@@ -42878,11 +42881,14 @@ class Toolbar {
|
|
|
42878
42881
|
}
|
|
42879
42882
|
toggleOverflow() {
|
|
42880
42883
|
this.state.showMoreButtons = !this.state.showMoreButtons;
|
|
42881
|
-
if (this.
|
|
42882
|
-
this.
|
|
42884
|
+
if (this.buttonsEl) {
|
|
42885
|
+
this.buttonsEl.classList.toggle("md-toolbar-expanded", this.state.showMoreButtons);
|
|
42883
42886
|
}
|
|
42884
42887
|
if (this.toggleBtn) {
|
|
42885
42888
|
this.toggleBtn.classList.toggle("md-toolbar-btn-active", this.state.showMoreButtons);
|
|
42889
|
+
if (this.state.showMoreButtons) {
|
|
42890
|
+
this.toggleBtn.style.display = "";
|
|
42891
|
+
}
|
|
42886
42892
|
}
|
|
42887
42893
|
}
|
|
42888
42894
|
createButton(name) {
|
|
@@ -43484,7 +43490,7 @@ class Toolbar {
|
|
|
43484
43490
|
this.searchReplace = null;
|
|
43485
43491
|
this.buttonElements.clear();
|
|
43486
43492
|
this.dropdowns.clear();
|
|
43487
|
-
this.
|
|
43493
|
+
this.buttonsEl = null;
|
|
43488
43494
|
this.toggleBtn = null;
|
|
43489
43495
|
this.render();
|
|
43490
43496
|
this.bindEvents();
|
|
@@ -43493,6 +43499,10 @@ class Toolbar {
|
|
|
43493
43499
|
if (this.updateInterval) {
|
|
43494
43500
|
clearInterval(this.updateInterval);
|
|
43495
43501
|
}
|
|
43502
|
+
if (this.resizeObserver) {
|
|
43503
|
+
this.resizeObserver.disconnect();
|
|
43504
|
+
this.resizeObserver = null;
|
|
43505
|
+
}
|
|
43496
43506
|
this.unbindEvents();
|
|
43497
43507
|
this.charMap?.destroy();
|
|
43498
43508
|
this.emojiPicker?.destroy();
|
|
@@ -46002,8 +46012,8 @@ const availableLocales = Object.keys(locales);
|
|
|
46002
46012
|
const TRANSLATION_KEYS = Object.keys(en);
|
|
46003
46013
|
const lowlight = createLowlight(grammars);
|
|
46004
46014
|
const fontNames = "Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva";
|
|
46005
|
-
const FULL_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent blockquote | fontfamily fontsize
|
|
46006
|
-
const BASIC_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent | fontfamily fontsize blockquote
|
|
46015
|
+
const FULL_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent blockquote | fontfamily fontsize | lineheight alignleft aligncenter alignright alignjustify | forecolor backcolor | removeformat copy cut paste | undo redo | image charmap emoticons | fullscreen preview | code link codesample | ltr rtl | searchreplace";
|
|
46016
|
+
const BASIC_TOOLBAR = "bold italic underline strikethrough | bullist numlist outdent indent | fontfamily fontsize blockquote | lineheight alignleft aligncenter alignright alignjustify | forecolor backcolor | removeformat copy cut paste | undo redo | charmap emoticons | link | ltr rtl | searchreplace";
|
|
46007
46017
|
const DEFAULT_FONT_SIZES = "8pt 9pt 10pt 12pt 14pt 18pt 24pt 36pt";
|
|
46008
46018
|
let editorIdCounter = 0;
|
|
46009
46019
|
let globalTranslate = (key) => key;
|
package/dist/styles.css
CHANGED
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
.md-toolbar {
|
|
28
28
|
display: flex;
|
|
29
|
-
|
|
30
|
-
align-items: center;
|
|
29
|
+
align-items: flex-start;
|
|
31
30
|
padding: 4px;
|
|
32
31
|
background: #f0f0f0;
|
|
33
32
|
border-bottom: 1px solid #ccc;
|
|
@@ -39,9 +38,6 @@
|
|
|
39
38
|
top: 0;
|
|
40
39
|
z-index: 10;
|
|
41
40
|
}
|
|
42
|
-
.md-toolbar.md-toolbar-sliding {
|
|
43
|
-
flex-wrap: wrap;
|
|
44
|
-
}
|
|
45
41
|
|
|
46
42
|
.md-toolbar-group {
|
|
47
43
|
display: flex;
|
|
@@ -56,28 +52,24 @@
|
|
|
56
52
|
margin: 0 4px;
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
.md-toolbar-
|
|
55
|
+
.md-toolbar-buttons {
|
|
60
56
|
display: flex;
|
|
61
57
|
flex-wrap: wrap;
|
|
62
58
|
align-items: center;
|
|
63
59
|
gap: 2px;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
flex-wrap: wrap;
|
|
70
|
-
align-items: center;
|
|
71
|
-
gap: 2px;
|
|
72
|
-
width: 100%;
|
|
60
|
+
flex: 1;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
max-height: 31px;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
transition: max-height 0.2s ease;
|
|
73
65
|
}
|
|
74
|
-
.md-toolbar-
|
|
75
|
-
|
|
66
|
+
.md-toolbar-buttons.md-toolbar-expanded {
|
|
67
|
+
max-height: none;
|
|
76
68
|
}
|
|
77
69
|
|
|
78
70
|
.md-toolbar-toggle-btn {
|
|
79
|
-
margin-left: auto;
|
|
80
71
|
flex-shrink: 0;
|
|
72
|
+
align-self: flex-start;
|
|
81
73
|
}
|
|
82
74
|
|
|
83
75
|
.md-toolbar-btn {
|
|
@@ -102,7 +94,7 @@
|
|
|
102
94
|
background: #d0d0d0;
|
|
103
95
|
}
|
|
104
96
|
.md-toolbar-btn.md-toolbar-btn-active {
|
|
105
|
-
background: #
|
|
97
|
+
background: #2271b2;
|
|
106
98
|
color: #fff;
|
|
107
99
|
}
|
|
108
100
|
.md-toolbar-btn:disabled {
|
|
@@ -197,7 +189,7 @@
|
|
|
197
189
|
background: #f0f0f0;
|
|
198
190
|
}
|
|
199
191
|
.md-toolbar-dropdown-item.md-toolbar-dropdown-item-selected {
|
|
200
|
-
background: #
|
|
192
|
+
background: #2271b2;
|
|
201
193
|
color: #fff;
|
|
202
194
|
}
|
|
203
195
|
|
|
@@ -286,13 +278,13 @@
|
|
|
286
278
|
padding: 4px 12px;
|
|
287
279
|
border: none;
|
|
288
280
|
border-radius: 3px;
|
|
289
|
-
background: #
|
|
281
|
+
background: #2271b2;
|
|
290
282
|
color: #fff;
|
|
291
283
|
cursor: pointer;
|
|
292
284
|
font-size: 12px;
|
|
293
285
|
}
|
|
294
286
|
.md-toolbar-colorpicker-apply:hover {
|
|
295
|
-
background: #
|
|
287
|
+
background: #2761c4;
|
|
296
288
|
}
|
|
297
289
|
|
|
298
290
|
.md-editor-content {
|
|
@@ -340,7 +332,7 @@
|
|
|
340
332
|
font-size: 13px;
|
|
341
333
|
}
|
|
342
334
|
.md-editor-body a {
|
|
343
|
-
color: #
|
|
335
|
+
color: #2271b2;
|
|
344
336
|
text-decoration: underline;
|
|
345
337
|
}
|
|
346
338
|
.md-editor-body img {
|
|
@@ -452,9 +444,9 @@
|
|
|
452
444
|
background: #f0f0f0;
|
|
453
445
|
}
|
|
454
446
|
.md-charmap-tab.md-charmap-tab-active {
|
|
455
|
-
background: #
|
|
447
|
+
background: #2271b2;
|
|
456
448
|
color: #fff;
|
|
457
|
-
border-color: #
|
|
449
|
+
border-color: #2271b2;
|
|
458
450
|
}
|
|
459
451
|
|
|
460
452
|
.md-charmap-grid {
|
|
@@ -477,7 +469,7 @@
|
|
|
477
469
|
}
|
|
478
470
|
.md-charmap-char:hover {
|
|
479
471
|
background: #f0f0f0;
|
|
480
|
-
border-color: #
|
|
472
|
+
border-color: #2271b2;
|
|
481
473
|
}
|
|
482
474
|
|
|
483
475
|
.md-charmap-preview {
|
|
@@ -527,8 +519,8 @@
|
|
|
527
519
|
background: #f0f0f0;
|
|
528
520
|
}
|
|
529
521
|
.md-emoji-tab.md-emoji-tab-active {
|
|
530
|
-
border-color: #
|
|
531
|
-
background: rgba(
|
|
522
|
+
border-color: #2271b2;
|
|
523
|
+
background: rgba(34, 113, 178, 0.1);
|
|
532
524
|
}
|
|
533
525
|
|
|
534
526
|
.md-emoji-search {
|
|
@@ -544,7 +536,7 @@
|
|
|
544
536
|
}
|
|
545
537
|
.md-emoji-search-input:focus {
|
|
546
538
|
outline: none;
|
|
547
|
-
border-color: #
|
|
539
|
+
border-color: #2271b2;
|
|
548
540
|
}
|
|
549
541
|
|
|
550
542
|
.md-emoji-grid {
|
|
@@ -599,7 +591,7 @@
|
|
|
599
591
|
}
|
|
600
592
|
.md-searchreplace-input:focus {
|
|
601
593
|
outline: none;
|
|
602
|
-
border-color: #
|
|
594
|
+
border-color: #2271b2;
|
|
603
595
|
}
|
|
604
596
|
|
|
605
597
|
.md-searchreplace-count {
|
|
@@ -643,12 +635,12 @@
|
|
|
643
635
|
background: #f0f0f0;
|
|
644
636
|
}
|
|
645
637
|
.md-btn.md-btn-primary {
|
|
646
|
-
background: #
|
|
647
|
-
border-color: #
|
|
638
|
+
background: #2271b2;
|
|
639
|
+
border-color: #2271b2;
|
|
648
640
|
color: #fff;
|
|
649
641
|
}
|
|
650
642
|
.md-btn.md-btn-primary:hover {
|
|
651
|
-
background: #
|
|
643
|
+
background: #2761c4;
|
|
652
644
|
}
|
|
653
645
|
|
|
654
646
|
.md-image-upload-dialog {
|
|
@@ -675,9 +667,9 @@
|
|
|
675
667
|
background: #f0f0f0;
|
|
676
668
|
}
|
|
677
669
|
.md-image-upload-tab.md-image-upload-tab-active {
|
|
678
|
-
background: #
|
|
670
|
+
background: #2271b2;
|
|
679
671
|
color: #fff;
|
|
680
|
-
border-color: #
|
|
672
|
+
border-color: #2271b2;
|
|
681
673
|
}
|
|
682
674
|
|
|
683
675
|
.md-image-upload-dropzone {
|
|
@@ -694,12 +686,12 @@
|
|
|
694
686
|
text-align: center;
|
|
695
687
|
}
|
|
696
688
|
.md-image-upload-dropzone:hover {
|
|
697
|
-
border-color: #
|
|
698
|
-
background: rgba(
|
|
689
|
+
border-color: #2271b2;
|
|
690
|
+
background: rgba(34, 113, 178, 0.03);
|
|
699
691
|
}
|
|
700
692
|
.md-image-upload-dropzone.md-image-upload-dropzone-active {
|
|
701
|
-
border-color: #
|
|
702
|
-
background: rgba(
|
|
693
|
+
border-color: #2271b2;
|
|
694
|
+
background: rgba(34, 113, 178, 0.08);
|
|
703
695
|
}
|
|
704
696
|
|
|
705
697
|
.md-image-upload-dropzone-icon {
|
|
@@ -736,7 +728,7 @@
|
|
|
736
728
|
}
|
|
737
729
|
.md-image-upload-row input:focus {
|
|
738
730
|
outline: none;
|
|
739
|
-
border-color: #
|
|
731
|
+
border-color: #2271b2;
|
|
740
732
|
}
|
|
741
733
|
|
|
742
734
|
.md-image-upload-preview {
|
|
@@ -781,7 +773,7 @@
|
|
|
781
773
|
.md-image-upload-progress-fill {
|
|
782
774
|
height: 100%;
|
|
783
775
|
width: 0%;
|
|
784
|
-
background: #
|
|
776
|
+
background: #2271b2;
|
|
785
777
|
border-radius: 4px;
|
|
786
778
|
transition: width 0.2s;
|
|
787
779
|
}
|
|
@@ -821,7 +813,7 @@
|
|
|
821
813
|
}
|
|
822
814
|
.md-source-editor-textarea:focus {
|
|
823
815
|
outline: none;
|
|
824
|
-
border-color: #
|
|
816
|
+
border-color: #2271b2;
|
|
825
817
|
}
|
|
826
818
|
|
|
827
819
|
.md-source-editor-footer {
|
|
@@ -859,7 +851,7 @@
|
|
|
859
851
|
.md-link-editor-input:focus,
|
|
860
852
|
.md-link-editor-select:focus {
|
|
861
853
|
outline: none;
|
|
862
|
-
border-color: #
|
|
854
|
+
border-color: #2271b2;
|
|
863
855
|
}
|
|
864
856
|
|
|
865
857
|
.md-link-editor-select {
|
|
@@ -874,7 +866,7 @@
|
|
|
874
866
|
}
|
|
875
867
|
|
|
876
868
|
.md-editor-dragover .md-editor-content {
|
|
877
|
-
box-shadow: 0 0 10px 1px rgba(
|
|
869
|
+
box-shadow: 0 0 10px 1px rgba(34, 113, 178, 0.5) inset;
|
|
878
870
|
}
|
|
879
871
|
|
|
880
872
|
.md-editor-oxide-dark {
|
|
@@ -892,7 +884,7 @@
|
|
|
892
884
|
background: #2d3e50;
|
|
893
885
|
}
|
|
894
886
|
.md-editor-oxide-dark .md-toolbar-btn.md-toolbar-btn-active {
|
|
895
|
-
background: #
|
|
887
|
+
background: #2271b2;
|
|
896
888
|
}
|
|
897
889
|
.md-editor-oxide-dark .md-toolbar-dropdown-btn {
|
|
898
890
|
color: #fff;
|
|
@@ -946,8 +938,8 @@
|
|
|
946
938
|
border-color: #364049;
|
|
947
939
|
}
|
|
948
940
|
.md-editor-oxide-dark .md-image-upload-dropzone:hover, .md-editor-oxide-dark .md-image-upload-dropzone.md-image-upload-dropzone-active {
|
|
949
|
-
border-color: #
|
|
950
|
-
background: rgba(
|
|
941
|
+
border-color: #2271b2;
|
|
942
|
+
background: rgba(34, 113, 178, 0.1);
|
|
951
943
|
}
|
|
952
944
|
.md-editor-oxide-dark .md-image-upload-dropzone-icon {
|
|
953
945
|
color: #666;
|
|
@@ -992,12 +984,12 @@
|
|
|
992
984
|
background: #2d3e50;
|
|
993
985
|
}
|
|
994
986
|
.md-editor-oxide-dark .md-btn.md-btn-primary {
|
|
995
|
-
background: #
|
|
996
|
-
border-color: #
|
|
987
|
+
background: #2271b2;
|
|
988
|
+
border-color: #2271b2;
|
|
997
989
|
color: #fff;
|
|
998
990
|
}
|
|
999
991
|
.md-editor-oxide-dark .md-btn.md-btn-primary:hover {
|
|
1000
|
-
background: #
|
|
992
|
+
background: #2761c4;
|
|
1001
993
|
}
|
|
1002
994
|
.md-editor-oxide-dark .md-source-editor-textarea {
|
|
1003
995
|
background: #1a252f;
|
|
@@ -1005,7 +997,7 @@
|
|
|
1005
997
|
color: #fff;
|
|
1006
998
|
}
|
|
1007
999
|
.md-editor-oxide-dark .md-source-editor-textarea:focus {
|
|
1008
|
-
border-color: #
|
|
1000
|
+
border-color: #2271b2;
|
|
1009
1001
|
}
|
|
1010
1002
|
.md-editor-oxide-dark .md-link-editor-input,
|
|
1011
1003
|
.md-editor-oxide-dark .md-link-editor-select {
|
|
@@ -1015,7 +1007,7 @@
|
|
|
1015
1007
|
}
|
|
1016
1008
|
.md-editor-oxide-dark .md-link-editor-input:focus,
|
|
1017
1009
|
.md-editor-oxide-dark .md-link-editor-select:focus {
|
|
1018
|
-
border-color: #
|
|
1010
|
+
border-color: #2271b2;
|
|
1019
1011
|
}
|
|
1020
1012
|
.md-editor-oxide-dark .md-link-editor-row label {
|
|
1021
1013
|
color: #aaa;
|