@examind/block-editor 0.1.23 → 0.1.25
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/index.css +59 -79
- package/dist/index.js +954 -850
- package/dist/index.mjs +1115 -1017
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -321,6 +321,19 @@
|
|
|
321
321
|
overflow: hidden;
|
|
322
322
|
text-overflow: ellipsis;
|
|
323
323
|
}
|
|
324
|
+
[data-editor-placeholder]::before {
|
|
325
|
+
content: attr(data-editor-placeholder);
|
|
326
|
+
color: var(--sl-color-neutral-400);
|
|
327
|
+
position: absolute;
|
|
328
|
+
display: block;
|
|
329
|
+
width: 100%;
|
|
330
|
+
height: 100%;
|
|
331
|
+
display: -webkit-box;
|
|
332
|
+
-webkit-line-clamp: 1;
|
|
333
|
+
-webkit-box-orient: vertical;
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
text-overflow: ellipsis;
|
|
336
|
+
}
|
|
324
337
|
[data-highlighted] {
|
|
325
338
|
outline: 1px dashed var(--sl-color-neutral-300);
|
|
326
339
|
outline-offset: 3px;
|
|
@@ -2012,11 +2025,7 @@ sl-progress-bar {
|
|
|
2012
2025
|
display: flex;
|
|
2013
2026
|
flex-direction: row;
|
|
2014
2027
|
align-items: center;
|
|
2015
|
-
gap:
|
|
2016
|
-
padding-top: 2px;
|
|
2017
|
-
padding-left: 0;
|
|
2018
|
-
padding-right: 2px;
|
|
2019
|
-
padding-bottom: 2px;
|
|
2028
|
+
gap: 6px;
|
|
2020
2029
|
.none-of-the-above-item {
|
|
2021
2030
|
width: 100%;
|
|
2022
2031
|
border-radius: 4px;
|
|
@@ -2154,7 +2163,7 @@ sl-progress-bar {
|
|
|
2154
2163
|
position: relative;
|
|
2155
2164
|
margin-top: var(--sl-spacing-large);
|
|
2156
2165
|
margin-bottom: var(--sl-spacing-large);
|
|
2157
|
-
&[data-settings-node-selected] {
|
|
2166
|
+
&[data-settings-node-selected]:not(:focus-within) {
|
|
2158
2167
|
outline: 1px solid var(--td-settings-node-selected-border-color) !important;
|
|
2159
2168
|
outline-offset: 3px !important;
|
|
2160
2169
|
border-radius: var(--sl-border-radius-small) !important;
|
|
@@ -2174,92 +2183,57 @@ sl-progress-bar {
|
|
|
2174
2183
|
}
|
|
2175
2184
|
.matching-question-prompt-title {
|
|
2176
2185
|
font-size: var(--sl-font-size-medium);
|
|
2177
|
-
font-weight: var(--sl-font-weight-
|
|
2186
|
+
font-weight: var(--sl-font-weight-normal);
|
|
2178
2187
|
color: var(--sl-color-neutral-600);
|
|
2188
|
+
text-transform: uppercase;
|
|
2179
2189
|
}
|
|
2180
2190
|
.matching-question-prompt-items {
|
|
2181
|
-
flex-grow: 1;
|
|
2182
|
-
display: flex;
|
|
2183
|
-
flex-direction: column;
|
|
2184
|
-
gap: var(--sl-spacing-x-small);
|
|
2185
|
-
}
|
|
2186
|
-
.matching-question-prompt-question-item-wrapper {
|
|
2187
2191
|
display: grid;
|
|
2188
|
-
grid-template-columns: 1fr 1fr;
|
|
2189
|
-
gap:
|
|
2192
|
+
grid-template-columns: auto 1fr 1fr;
|
|
2193
|
+
column-gap: 6px;
|
|
2194
|
+
row-gap: 6px;
|
|
2195
|
+
width: 100%;
|
|
2190
2196
|
}
|
|
2191
|
-
.matching-question-
|
|
2197
|
+
.matching-question-prompt-question-item-controls {
|
|
2192
2198
|
display: flex;
|
|
2193
|
-
flex-
|
|
2199
|
+
flex-direction: row;
|
|
2200
|
+
align-items: center;
|
|
2201
|
+
gap: 8px;
|
|
2194
2202
|
justify-content: end;
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2203
|
+
.sl-icon {
|
|
2204
|
+
width: 20px;
|
|
2205
|
+
height: 20px;
|
|
2198
2206
|
}
|
|
2199
|
-
sl-button::part(base)
|
|
2207
|
+
sl-button[size=small].button_icon::part(base),
|
|
2208
|
+
sl-button[size=medium].button_icon::part(base),
|
|
2209
|
+
sl-button[size=large].button_icon::part(base) {
|
|
2210
|
+
padding-inline: 0;
|
|
2211
|
+
padding: 2px;
|
|
2212
|
+
}
|
|
2213
|
+
sl-button.button_icon::part(base) {
|
|
2214
|
+
border: 0;
|
|
2215
|
+
min-height: auto;
|
|
2216
|
+
align-items: center;
|
|
2217
|
+
}
|
|
2218
|
+
sl-button.neutral::part(base) {
|
|
2219
|
+
color: var(--sl-color-neutral-700);
|
|
2220
|
+
}
|
|
2221
|
+
sl-button.success::part(base) {
|
|
2222
|
+
color: var(--sl-color-success-500);
|
|
2223
|
+
}
|
|
2224
|
+
sl-button.danger::part(base) {
|
|
2200
2225
|
color: var(--sl-color-danger-500);
|
|
2201
2226
|
}
|
|
2202
2227
|
}
|
|
2203
2228
|
.matching-question-prompt-question-item {
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
padding-top: var(--sl-spacing-2x-small);
|
|
2210
|
-
padding-left: var(--sl-spacing-small);
|
|
2211
|
-
padding-right: var(--sl-spacing-small);
|
|
2212
|
-
padding-bottom: var(--sl-spacing-small);
|
|
2213
|
-
border: 1px solid var(--sl-color-neutral-300);
|
|
2214
|
-
border-radius: var(--sl-border-radius-medium);
|
|
2215
|
-
color: var(--sl-color-neutral-500);
|
|
2216
|
-
.controls {
|
|
2217
|
-
position: absolute;
|
|
2218
|
-
top: calc(50% - 20px);
|
|
2219
|
-
right: -32px;
|
|
2220
|
-
display: flex;
|
|
2221
|
-
flex-direction: row;
|
|
2222
|
-
z-index: 10;
|
|
2223
|
-
sl-button::part(base) {
|
|
2224
|
-
padding-inline: var(--sl-spacing-x-small);
|
|
2225
|
-
}
|
|
2226
|
-
}
|
|
2227
|
-
&.correct {
|
|
2228
|
-
border-color: var(--sl-color-success-300);
|
|
2229
|
-
background-color: var(--sl-color-success-50);
|
|
2230
|
-
padding-right: var(--sl-spacing-3x-large);
|
|
2231
|
-
.title,
|
|
2232
|
-
.controls {
|
|
2233
|
-
color: var(--sl-color-success-500);
|
|
2234
|
-
sl-button::part(base) {
|
|
2235
|
-
color: var(--sl-color-success-400);
|
|
2236
|
-
}
|
|
2237
|
-
sl-button::part(base):hover {
|
|
2238
|
-
color: var(--sl-color-success-500);
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
&.incorrect {
|
|
2243
|
-
border-color: var(--sl-color-danger-300);
|
|
2244
|
-
background-color: var(--sl-color-danger-50);
|
|
2245
|
-
padding-right: var(--sl-spacing-3x-large);
|
|
2246
|
-
.title,
|
|
2247
|
-
.controls {
|
|
2248
|
-
color: var(--sl-color-danger-500);
|
|
2249
|
-
sl-button::part(base) {
|
|
2250
|
-
color: var(--sl-color-danger-400);
|
|
2251
|
-
}
|
|
2252
|
-
sl-button::part(base):hover {
|
|
2253
|
-
color: var(--sl-color-danger-500);
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2229
|
+
.nested-content {
|
|
2230
|
+
width: 100%;
|
|
2231
|
+
border-radius: 4px;
|
|
2232
|
+
padding: 8px;
|
|
2233
|
+
outline: 1px solid var(--sl-color-neutral-1000);
|
|
2256
2234
|
}
|
|
2257
|
-
.
|
|
2258
|
-
|
|
2259
|
-
flex-direction: row;
|
|
2260
|
-
align-items: center;
|
|
2261
|
-
gap: var(--sl-spacing-x-small);
|
|
2262
|
-
font-size: var(--sl-font-size-x-small);
|
|
2235
|
+
.nested-content:focus {
|
|
2236
|
+
outline: 1px solid #7b00ff;
|
|
2263
2237
|
}
|
|
2264
2238
|
p,
|
|
2265
2239
|
h1,
|
|
@@ -2271,6 +2245,12 @@ sl-progress-bar {
|
|
|
2271
2245
|
line-height: var(--sl-line-height-normal);
|
|
2272
2246
|
}
|
|
2273
2247
|
}
|
|
2248
|
+
.matching-question-prompt-footer {
|
|
2249
|
+
display: flex;
|
|
2250
|
+
flex-direction: row;
|
|
2251
|
+
justify-items: center;
|
|
2252
|
+
justify-content: end;
|
|
2253
|
+
}
|
|
2274
2254
|
}
|
|
2275
2255
|
|
|
2276
2256
|
/* src/styles/article-fill-in-the-blank-question.css */
|