@flexiui/svelte-rich-text 0.0.70 → 0.0.72
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/dist/RichText.svelte +8 -1
- package/dist/styles.css +55 -55
- package/package.json +1 -1
package/dist/RichText.svelte
CHANGED
|
@@ -953,6 +953,7 @@ function onOpenChangeHighlight(open: boolean) {
|
|
|
953
953
|
{/if}
|
|
954
954
|
</div>
|
|
955
955
|
{/if}
|
|
956
|
+
|
|
956
957
|
<div
|
|
957
958
|
class="fl-toolbar-dropdown-panel"
|
|
958
959
|
bind:this={tooltip}
|
|
@@ -1308,7 +1309,13 @@ function onOpenChangeHighlight(open: boolean) {
|
|
|
1308
1309
|
}}
|
|
1309
1310
|
appendTo={document.body}
|
|
1310
1311
|
>
|
|
1311
|
-
<div
|
|
1312
|
+
<div
|
|
1313
|
+
data-test-id="bubble-menu"
|
|
1314
|
+
class="fl-bubble-menu flex"
|
|
1315
|
+
style="
|
|
1316
|
+
--fl-editor-accent-color: {editorConfig.editorAccentColor};
|
|
1317
|
+
"
|
|
1318
|
+
>
|
|
1312
1319
|
{#each bubbleMenuGroups as bubbleMenuGroup}
|
|
1313
1320
|
{#if bubbleMenuGroup.length > 0}
|
|
1314
1321
|
<div role="group" class="fl-rich-text-toolbar-group">
|
package/dist/styles.css
CHANGED
|
@@ -123,66 +123,66 @@
|
|
|
123
123
|
background: transparent;
|
|
124
124
|
line-height: 1.6;
|
|
125
125
|
}
|
|
126
|
+
}
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
.fl-bubble-menu {
|
|
129
|
+
padding: 6px;
|
|
130
|
+
background: #242424b0;
|
|
131
|
+
border: 1px solid #ffffff12;
|
|
132
|
+
backdrop-filter: blur(16px);
|
|
133
|
+
border-radius: 14px;
|
|
134
|
+
display: flex;
|
|
135
|
+
gap: 5px;
|
|
136
|
+
position: relative;
|
|
137
|
+
z-index: var(--fl-toolbar-z-index, 10);
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
.fl-bubble-menu-mark-button {
|
|
141
|
+
border-radius: 9px;
|
|
142
|
+
border: none;
|
|
133
143
|
display: flex;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
padding-inline: 6px;
|
|
154
|
-
|
|
155
|
-
svg {
|
|
156
|
-
width: 16px;
|
|
157
|
-
height: 16px;
|
|
158
|
-
|
|
159
|
-
&.toogle-dropdown-button-icon {
|
|
160
|
-
width: 8px;
|
|
161
|
-
margin: 0 2px 0 6px;
|
|
162
|
-
}
|
|
144
|
+
align-items: center;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
padding: 6px 11px;
|
|
147
|
+
min-width: 30px;
|
|
148
|
+
min-height: 30px;
|
|
149
|
+
background: rgba(255, 255, 255, 0.1);
|
|
150
|
+
transition: background 0.3s ease;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
|
|
153
|
+
&.fl-bubble-menu-mark-button {
|
|
154
|
+
padding-inline: 6px;
|
|
155
|
+
|
|
156
|
+
svg {
|
|
157
|
+
width: 16px;
|
|
158
|
+
height: 16px;
|
|
159
|
+
|
|
160
|
+
&.toogle-dropdown-button-icon {
|
|
161
|
+
width: 8px;
|
|
162
|
+
margin: 0 2px 0 6px;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
+
}
|
|
165
166
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
167
|
+
&.is-active {
|
|
168
|
+
background: var(--fl-editor-accent-color);
|
|
169
|
+
color: white;
|
|
170
|
+
|
|
171
|
+
&.accent-soft {
|
|
172
|
+
background: transparent;
|
|
173
|
+
color: var(--fl-editor-accent-color);
|
|
174
|
+
position: relative;
|
|
175
|
+
|
|
176
|
+
&::after {
|
|
177
|
+
content: "";
|
|
178
|
+
position: absolute;
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
left: 0;
|
|
182
|
+
top: 0;
|
|
183
|
+
background: var(--fl-editor-accent-color);
|
|
184
|
+
opacity: 0.15;
|
|
185
|
+
border-radius: inherit;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
}
|