@richhtmleditor/themes 1.1.1 → 1.1.2
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 +2 -2
- package/package.json +1 -1
- package/src/richhtmleditor.css +109 -8
package/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Shared CSS for Rich HTML Editor — toolbar, content area, outline panel, selection mini-toolbar, tables, and dark mode tokens. Pair with [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core) or any framework wrapper.
|
|
4
4
|
|
|
5
|
-
**Current release: 1.1.
|
|
5
|
+
**Current release: 1.1.2**
|
|
6
6
|
|
|
7
7
|
**Repository:** [github.com/rajkishorsahu89/richhtmleditor](https://github.com/rajkishorsahu89/richhtmleditor)
|
|
8
8
|
|
|
9
9
|
**Demo:** [richhtmleditor.vercel.app](https://richhtmleditor.vercel.app/) — [demo](https://richhtmleditor.vercel.app/demo) · [guide](https://richhtmleditor.vercel.app/guide) · [API](https://richhtmleditor.vercel.app/api). Doc Preview joint demo: [doc-preview-app.vercel.app/demo/enterprise](https://doc-preview-app.vercel.app/demo/enterprise)
|
|
10
10
|
|
|
11
|
-
### What's in 1.1.
|
|
11
|
+
### What's in 1.1.2
|
|
12
12
|
|
|
13
13
|
- **`richhtmleditor.css`** — complete editor chrome (toolbar rows, buttons, dropdowns, content area)
|
|
14
14
|
- **Dark mode** — `.de-root--dark` class toggled when `dark: true` is passed to `createEditor`
|
package/package.json
CHANGED
package/src/richhtmleditor.css
CHANGED
|
@@ -584,6 +584,48 @@
|
|
|
584
584
|
text-decoration: none;
|
|
585
585
|
color: inherit;
|
|
586
586
|
}
|
|
587
|
+
#richhtmleditor-root .de-content nav.de-toc .de-toc__list li[data-level="2"] { padding-left: 1rem; }
|
|
588
|
+
#richhtmleditor-root .de-content nav.de-toc .de-toc__list li[data-level="3"] { padding-left: 2rem; }
|
|
589
|
+
|
|
590
|
+
/* ── Spellcheck ──────────────────────────────────────── */
|
|
591
|
+
.de-spell-error {
|
|
592
|
+
border-bottom: 2px solid #dc2626;
|
|
593
|
+
cursor: pointer;
|
|
594
|
+
border-radius: 1px;
|
|
595
|
+
}
|
|
596
|
+
.de-spell-popover {
|
|
597
|
+
background: var(--de-toolbar-bg, #fff);
|
|
598
|
+
border: 1px solid var(--de-border, #e2e8f0);
|
|
599
|
+
border-radius: 8px;
|
|
600
|
+
box-shadow: 0 4px 16px rgba(0,0,0,.12);
|
|
601
|
+
padding: 4px;
|
|
602
|
+
min-width: 130px;
|
|
603
|
+
display: flex;
|
|
604
|
+
flex-direction: column;
|
|
605
|
+
gap: 2px;
|
|
606
|
+
font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
|
607
|
+
font-size: 0.875rem;
|
|
608
|
+
}
|
|
609
|
+
.de-spell-popover__item {
|
|
610
|
+
text-align: left;
|
|
611
|
+
padding: 6px 10px;
|
|
612
|
+
border: none;
|
|
613
|
+
background: none;
|
|
614
|
+
cursor: pointer;
|
|
615
|
+
border-radius: 6px;
|
|
616
|
+
font-size: inherit;
|
|
617
|
+
font-family: inherit;
|
|
618
|
+
color: var(--de-text-primary, #0f172a);
|
|
619
|
+
white-space: nowrap;
|
|
620
|
+
}
|
|
621
|
+
.de-spell-popover__item:hover { background: var(--de-primary-hover, #eff6ff); }
|
|
622
|
+
.de-spell-popover__item--muted {
|
|
623
|
+
color: var(--de-text-muted, #64748b);
|
|
624
|
+
font-style: italic;
|
|
625
|
+
border-top: 1px solid var(--de-border, #e2e8f0);
|
|
626
|
+
margin-top: 2px;
|
|
627
|
+
padding-top: 8px;
|
|
628
|
+
}
|
|
587
629
|
|
|
588
630
|
#richhtmleditor-root .de-content details {
|
|
589
631
|
--de-acc-pad-x: 0.75rem;
|
|
@@ -1776,6 +1818,8 @@ del.de-track-delete,
|
|
|
1776
1818
|
min-width: 188px;
|
|
1777
1819
|
max-height: 70vh;
|
|
1778
1820
|
overflow-y: auto;
|
|
1821
|
+
scrollbar-width: thin;
|
|
1822
|
+
scrollbar-color: color-mix(in srgb, var(--de-text-muted) 30%, transparent) transparent;
|
|
1779
1823
|
padding: 8px;
|
|
1780
1824
|
background: var(--de-toolbar-bg);
|
|
1781
1825
|
border: 1px solid var(--de-border);
|
|
@@ -1789,6 +1833,16 @@ del.de-track-delete,
|
|
|
1789
1833
|
font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
|
1790
1834
|
color: var(--de-text-primary);
|
|
1791
1835
|
}
|
|
1836
|
+
.de-toolbar__overflow-menu::-webkit-scrollbar {
|
|
1837
|
+
width: 4px;
|
|
1838
|
+
}
|
|
1839
|
+
.de-toolbar__overflow-menu::-webkit-scrollbar-thumb {
|
|
1840
|
+
background: color-mix(in srgb, var(--de-text-muted) 30%, transparent);
|
|
1841
|
+
border-radius: 4px;
|
|
1842
|
+
}
|
|
1843
|
+
.de-toolbar__overflow-menu::-webkit-scrollbar-track {
|
|
1844
|
+
background: transparent;
|
|
1845
|
+
}
|
|
1792
1846
|
|
|
1793
1847
|
.de-toolbar__overflow-menu--dark {
|
|
1794
1848
|
--de-toolbar-bg: #1e293b;
|
|
@@ -3537,10 +3591,16 @@ del.de-track-delete,
|
|
|
3537
3591
|
#richhtmleditor-root .de-section[data-style-id^="columns-"] > .de-section__title {
|
|
3538
3592
|
display: none;
|
|
3539
3593
|
}
|
|
3594
|
+
#richhtmleditor-root .de-section[data-style-id^="columns-"] {
|
|
3595
|
+
overflow-wrap: break-word;
|
|
3596
|
+
word-break: break-word;
|
|
3597
|
+
}
|
|
3540
3598
|
|
|
3541
3599
|
#richhtmleditor-root .de-section[data-style-id="columns-2"] { column-count: 2; column-gap: 2em; }
|
|
3542
3600
|
#richhtmleditor-root .de-section[data-style-id="columns-3"] { column-count: 3; column-gap: 1.5em; }
|
|
3543
3601
|
|
|
3602
|
+
.de-section[data-style-id^="columns-"] > .de-section__title { display: none; }
|
|
3603
|
+
.de-section[data-style-id^="columns-"] { overflow-wrap: break-word; word-break: break-word; }
|
|
3544
3604
|
.de-section[data-style-id="columns-2"] { column-count: 2; column-gap: 2em; }
|
|
3545
3605
|
.de-section[data-style-id="columns-3"] { column-count: 3; column-gap: 1.5em; }
|
|
3546
3606
|
|
|
@@ -3980,9 +4040,11 @@ del.de-track-delete,
|
|
|
3980
4040
|
/* ── Slash command menu ──────────────────────────────── */
|
|
3981
4041
|
.de-slash-menu {
|
|
3982
4042
|
z-index: 10001;
|
|
3983
|
-
width:
|
|
3984
|
-
max-height:
|
|
4043
|
+
width: 270px;
|
|
4044
|
+
max-height: 380px;
|
|
3985
4045
|
overflow-y: auto;
|
|
4046
|
+
scrollbar-width: thin;
|
|
4047
|
+
scrollbar-color: rgba(0,0,0,.15) transparent;
|
|
3986
4048
|
padding: 6px;
|
|
3987
4049
|
background: var(--de-toolbar-bg, #fff);
|
|
3988
4050
|
border: 1px solid var(--de-border, #e2e8f0);
|
|
@@ -3996,11 +4058,9 @@ del.de-track-delete,
|
|
|
3996
4058
|
display: flex;
|
|
3997
4059
|
align-items: center;
|
|
3998
4060
|
gap: 10px;
|
|
3999
|
-
padding:
|
|
4061
|
+
padding: 7px 10px;
|
|
4000
4062
|
border-radius: 7px;
|
|
4001
4063
|
cursor: pointer;
|
|
4002
|
-
font-size: 0.8125rem;
|
|
4003
|
-
font-weight: 500;
|
|
4004
4064
|
color: var(--de-text-primary, #0f172a);
|
|
4005
4065
|
transition: background 0.12s;
|
|
4006
4066
|
}
|
|
@@ -4012,8 +4072,8 @@ del.de-track-delete,
|
|
|
4012
4072
|
display: inline-flex;
|
|
4013
4073
|
align-items: center;
|
|
4014
4074
|
justify-content: center;
|
|
4015
|
-
width:
|
|
4016
|
-
height:
|
|
4075
|
+
width: 30px;
|
|
4076
|
+
height: 30px;
|
|
4017
4077
|
border-radius: 6px;
|
|
4018
4078
|
background: var(--de-secondary, #f1f5f9);
|
|
4019
4079
|
font-size: 0.75rem;
|
|
@@ -4021,8 +4081,27 @@ del.de-track-delete,
|
|
|
4021
4081
|
color: var(--de-text-muted, #64748b);
|
|
4022
4082
|
flex-shrink: 0;
|
|
4023
4083
|
}
|
|
4024
|
-
.de-slash-
|
|
4084
|
+
.de-slash-menu__icon svg { display: block; }
|
|
4085
|
+
.de-slash-menu__text {
|
|
4086
|
+
display: flex;
|
|
4087
|
+
flex-direction: column;
|
|
4088
|
+
gap: 1px;
|
|
4025
4089
|
flex: 1;
|
|
4090
|
+
min-width: 0;
|
|
4091
|
+
}
|
|
4092
|
+
.de-slash-menu__label {
|
|
4093
|
+
font-size: 0.8125rem;
|
|
4094
|
+
font-weight: 500;
|
|
4095
|
+
line-height: 1.3;
|
|
4096
|
+
}
|
|
4097
|
+
.de-slash-menu__desc {
|
|
4098
|
+
font-size: 0.6875rem;
|
|
4099
|
+
font-weight: 400;
|
|
4100
|
+
color: var(--de-text-muted, #64748b);
|
|
4101
|
+
line-height: 1.3;
|
|
4102
|
+
white-space: nowrap;
|
|
4103
|
+
overflow: hidden;
|
|
4104
|
+
text-overflow: ellipsis;
|
|
4026
4105
|
}
|
|
4027
4106
|
.de-slash-menu__empty {
|
|
4028
4107
|
padding: 16px 10px;
|
|
@@ -4040,6 +4119,16 @@ del.de-track-delete,
|
|
|
4040
4119
|
background: #334155;
|
|
4041
4120
|
color: #94a3b8;
|
|
4042
4121
|
}
|
|
4122
|
+
.de-root--dark .de-slash-menu {
|
|
4123
|
+
scrollbar-color: rgba(255,255,255,.15) transparent;
|
|
4124
|
+
}
|
|
4125
|
+
.de-slash-menu::-webkit-scrollbar { width: 5px; }
|
|
4126
|
+
.de-slash-menu::-webkit-scrollbar-track { background: transparent; }
|
|
4127
|
+
.de-slash-menu::-webkit-scrollbar-thumb {
|
|
4128
|
+
background: rgba(0,0,0,.15);
|
|
4129
|
+
border-radius: 99px;
|
|
4130
|
+
}
|
|
4131
|
+
.de-root--dark .de-slash-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }
|
|
4043
4132
|
|
|
4044
4133
|
/* ── Fields / mail-merge placeholders ── */
|
|
4045
4134
|
#richhtmleditor-root .de-content .de-field {
|
|
@@ -4309,6 +4398,18 @@ del.de-track-delete,
|
|
|
4309
4398
|
padding: 12px;
|
|
4310
4399
|
max-height: 280px;
|
|
4311
4400
|
overflow-y: auto;
|
|
4401
|
+
scrollbar-width: thin;
|
|
4402
|
+
scrollbar-color: color-mix(in srgb, var(--de-text-muted) 30%, transparent) transparent;
|
|
4403
|
+
}
|
|
4404
|
+
.de-shape-picker__body::-webkit-scrollbar {
|
|
4405
|
+
width: 4px;
|
|
4406
|
+
}
|
|
4407
|
+
.de-shape-picker__body::-webkit-scrollbar-thumb {
|
|
4408
|
+
background: color-mix(in srgb, var(--de-text-muted) 30%, transparent);
|
|
4409
|
+
border-radius: 4px;
|
|
4410
|
+
}
|
|
4411
|
+
.de-shape-picker__body::-webkit-scrollbar-track {
|
|
4412
|
+
background: transparent;
|
|
4312
4413
|
}
|
|
4313
4414
|
.de-shape-picker__grid {
|
|
4314
4415
|
display: grid;
|