@novely/solid-renderer 0.4.0 → 0.4.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/dist/index.jsx CHANGED
@@ -187,18 +187,29 @@ var collectTextNodes = (el) => {
187
187
  });
188
188
  return items;
189
189
  };
190
+ var map = (it, cb) => {
191
+ const result = [];
192
+ for (const value of [...it]) {
193
+ const val = cb(value, result[result.length - 1]);
194
+ if (val) {
195
+ result.push(val);
196
+ }
197
+ }
198
+ return result;
199
+ };
190
200
  var typewriter = ({ node, text, ended, speed = defaultSpeed }) => {
191
201
  node.innerHTML = text;
192
202
  const nodes = collectTextNodes(node).map((child) => {
193
- const letters = [...child.textContent].map((char) => {
194
- const text2 = document.createElement("span");
195
- if (char === " ") {
196
- text2.innerHTML = " ";
203
+ const letters = map(child.textContent, (char, prev) => {
204
+ if (char === " " && prev) {
205
+ prev.textContent += " ";
206
+ return void 0;
197
207
  } else {
208
+ const text2 = document.createElement("span");
198
209
  text2.textContent = char;
210
+ text2.style.opacity = "0";
211
+ return text2;
199
212
  }
200
- text2.style.opacity = "0";
201
- return text2;
202
213
  });
203
214
  child.replaceWith(...letters);
204
215
  return letters;
@@ -259,7 +270,7 @@ var typewriter = ({ node, text, ended, speed = defaultSpeed }) => {
259
270
  node.innerHTML = "";
260
271
  return end;
261
272
  }
262
- node.innerHTML = text.replace(/ /gm, " ");
273
+ node.innerHTML = text;
263
274
  end = true;
264
275
  return false;
265
276
  },
@@ -298,7 +309,7 @@ var createTypewriter = ({ resolve }) => {
298
309
  if (!node)
299
310
  return;
300
311
  if (PRM.matches) {
301
- node.innerHTML = text.replace(/ /gm, " ");
312
+ node.innerHTML = text;
302
313
  bypassed = true;
303
314
  setState("done");
304
315
  return;
@@ -434,7 +445,6 @@ var Game = (props) => {
434
445
  aria-disabled={!props.state.dialog.content}
435
446
  role="button"
436
447
  tabIndex={0}
437
- title={DialogWriter.state() === "idle" ? void 0 : data.t(DialogWriter.state() === "processing" ? "CompleteText" : "GoForward")}
438
448
  onClick={DialogWriter.clear}
439
449
  onKeyPress={onKey(DialogWriter.clear, "Enter")}
440
450
  onKeyDown={onKey(DialogWriter.clear, " ")}
@@ -453,6 +463,9 @@ var Game = (props) => {
453
463
  return canvas;
454
464
  }}</Show3></div>
455
465
  <div class="action-dialog-content"><DialogWriter.Typewriter
466
+ attributes={{
467
+ title: DialogWriter.state() === "idle" ? void 0 : data.t(DialogWriter.state() === "processing" ? "CompleteText" : "GoForward")
468
+ }}
456
469
  content={props.state.dialog.content}
457
470
  speed={speed()}
458
471
  ended={onWriterEnd(DialogWriter.clear)}
@@ -502,11 +515,13 @@ var Game = (props) => {
502
515
  aria-disabled={!props.state.text.content}
503
516
  role="button"
504
517
  tabIndex={0}
505
- title={TextWriter.state() === "idle" ? void 0 : data.t(TextWriter.state() === "processing" ? "CompleteText" : "GoForward")}
506
518
  onClick={TextWriter.clear}
507
519
  onKeyPress={onKey(TextWriter.clear, "Enter")}
508
520
  onKeyDown={onKey(TextWriter.clear, " ")}
509
521
  ><TextWriter.Typewriter
522
+ attributes={{
523
+ title: TextWriter.state() === "idle" ? void 0 : data.t(TextWriter.state() === "processing" ? "CompleteText" : "GoForward")
524
+ }}
510
525
  content={props.state.text.content}
511
526
  speed={speed()}
512
527
  ended={onWriterEnd(TextWriter.clear)}
@@ -1,20 +1,13 @@
1
- /* src/styles/global/global.css */
2
- canvas,
3
- img {
4
- -webkit-user-select: none;
5
- user-select: none;
6
- -webkit-tap-highlight-color: #0000;
7
- -webkit-tap-highlight-color: transparent;
8
- -webkit-touch-callout: none;
9
- }
10
-
11
- /* src/styles/global/index.css */
12
-
13
1
  /* src/styles/root/root.css */
14
2
  .root {
15
3
  background-repeat: var(--novely-root-background-repeat, no-repeat);
16
4
  background-position: var(--novely-root-background-position, center);
17
5
  background-size: var(--novely-root-background-size, cover);
6
+ -webkit-user-select: none;
7
+ user-select: none;
8
+ -webkit-tap-highlight-color: #0000;
9
+ -webkit-tap-highlight-color: transparent;
10
+ -webkit-touch-callout: none;
18
11
  width: 100vw;
19
12
  height: 100vh;
20
13
  font-family:
@@ -47,8 +40,6 @@ img {
47
40
  border: 4px solid var(--novely-button-border-color, #ffc7df);
48
41
  color: var(--novely-button-color, #000);
49
42
  cursor: pointer;
50
- -webkit-user-select: none;
51
- user-select: none;
52
43
  -webkit-tap-highlight-color: #0000;
53
44
  -webkit-tap-highlight-color: transparent;
54
45
  -webkit-touch-callout: none;
@@ -152,7 +143,7 @@ img {
152
143
  max-width: 100vw;
153
144
  font-size: 1.5rem;
154
145
  display: none;
155
- position: absolute;
146
+ position: fixed;
156
147
  top: 0;
157
148
  bottom: 0;
158
149
  left: 0;
@@ -168,8 +159,6 @@ img {
168
159
  }
169
160
  .action-text[data-shown=true] > span {
170
161
  cursor: pointer;
171
- -webkit-user-select: none;
172
- user-select: none;
173
162
  word-wrap: break-word;
174
163
  word-break: break-word;
175
164
  }
@@ -178,8 +167,6 @@ img {
178
167
  }
179
168
  .action-text,
180
169
  .action-text > span {
181
- -webkit-user-select: none;
182
- user-select: none;
183
170
  -webkit-tap-highlight-color: #0000;
184
171
  -webkit-tap-highlight-color: transparent;
185
172
  -webkit-touch-callout: none;
@@ -210,8 +197,6 @@ img {
210
197
  .select__label {
211
198
  background: var(--novely-select-label-background, #ffe9f3);
212
199
  color: var(--novely-select-color, #000);
213
- -webkit-user-select: none;
214
- user-select: none;
215
200
  border-radius: .25rem;
216
201
  padding: .25rem .5rem;
217
202
  font-size: 1.02rem;
@@ -224,8 +209,6 @@ img {
224
209
  z-index: 22;
225
210
  text-align: left;
226
211
  cursor: default;
227
- -webkit-user-select: none;
228
- user-select: none;
229
212
  flex-direction: column;
230
213
  justify-content: flex-end;
231
214
  width: 75%;
@@ -277,6 +260,8 @@ img {
277
260
  box-shadow: 1px 1px 3px #00000042;
278
261
  }
279
262
  .action-dialog-content {
263
+ word-wrap: break-word;
264
+ word-break: break-word;
280
265
  text-shadow:
281
266
  1px 1px #000,
282
267
  -1px -1px #000,
@@ -355,8 +340,6 @@ img {
355
340
  display: flex;
356
341
  }
357
342
  .dialog-panel-label {
358
- -webkit-user-select: none;
359
- user-select: none;
360
343
  border-radius: .25rem;
361
344
  padding: .25rem .5rem;
362
345
  font-size: 1.2375rem;
@@ -384,8 +367,6 @@ img {
384
367
  }
385
368
  .input-dialog-label > span {
386
369
  min-height: 1rem;
387
- -webkit-user-select: none;
388
- user-select: none;
389
370
  -webkit-tap-highlight-color: #0000;
390
371
  -webkit-tap-highlight-color: transparent;
391
372
  -webkit-touch-callout: none;
@@ -622,8 +603,6 @@ img {
622
603
  scrollbar-color: var(--novely-scrollbar-thumb-hover-bg-color, #ffc6d8);
623
604
  }
624
605
  .saves__list--empty {
625
- -webkit-user-select: none;
626
- user-select: none;
627
606
  color: var(--novely-saves-list-empty-color, black);
628
607
  align-items: center;
629
608
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/dist/index.css DELETED
@@ -1,658 +0,0 @@
1
- /* src/styles/global/global.css */
2
- canvas,
3
- img {
4
- -webkit-user-select: none;
5
- user-select: none;
6
- -webkit-tap-highlight-color: #0000;
7
- -webkit-tap-highlight-color: transparent;
8
- -webkit-touch-callout: none;
9
- }
10
-
11
- /* src/styles/global/index.css */
12
-
13
- /* src/styles/root/root.css */
14
- .root {
15
- background-repeat: var(--novely-root-background-repeat, no-repeat);
16
- background-position: var(--novely-root-background-position, center);
17
- background-size: var(--novely-root-background-size, cover);
18
- width: 100vw;
19
- height: 100vh;
20
- font-family:
21
- ui-sans-serif,
22
- system-ui,
23
- -apple-system,
24
- BlinkMacSystemFont,
25
- Segoe UI,
26
- Roboto,
27
- Helvetica Neue,
28
- Arial,
29
- Noto Sans,
30
- sans-serif,
31
- Apple Color Emoji,
32
- Segoe UI Emoji,
33
- Segoe UI Symbol,
34
- Noto Color Emoji;
35
- font-size: 1rem;
36
- }
37
- .root,
38
- .root * {
39
- box-sizing: border-box;
40
- }
41
-
42
- /* src/styles/root/index.css */
43
-
44
- /* src/styles/button/button.css */
45
- .button {
46
- background-color: var(--novely-button-background-color, #ffe9f3);
47
- border: 4px solid var(--novely-button-border-color, #ffc7df);
48
- color: var(--novely-button-color, #000);
49
- cursor: pointer;
50
- -webkit-user-select: none;
51
- user-select: none;
52
- -webkit-tap-highlight-color: #0000;
53
- -webkit-tap-highlight-color: transparent;
54
- -webkit-touch-callout: none;
55
- margin: .4rem 0;
56
- padding: .4rem;
57
- font-size: 1.02rem;
58
- line-height: 1.2;
59
- }
60
- .button:hover {
61
- background-color: var(--novely-button-hover-background-color, #fff);
62
- border-color: var(--novely-button-hover-border-color, #ffc6d8);
63
- color: var(--novely-button-hover-color, #ffb7a2);
64
- }
65
- .button[aria-disabled=true] {
66
- cursor: not-allowed;
67
- opacity: .9;
68
- }
69
-
70
- /* src/styles/button/index.css */
71
-
72
- /* src/styles/characters/characters.css */
73
- .characters {
74
- justify-content: center;
75
- align-items: flex-end;
76
- width: 100vw;
77
- height: 100vh;
78
- display: flex;
79
- overflow: hidden;
80
- }
81
- .characters > canvas {
82
- min-width: unset;
83
- max-width: 50vw;
84
- max-height: 85vh;
85
- position: relative;
86
- }
87
-
88
- /* src/styles/characters/index.css */
89
-
90
- /* src/styles/control-panel/control-panel.css */
91
- .control-panel {
92
- z-index: 23;
93
- justify-content: end;
94
- display: flex;
95
- position: fixed;
96
- bottom: .4rem;
97
- right: .4rem;
98
- }
99
- .control-panel--center {
100
- bottom: calc(var(--novely-dialog-border-width, 3px) + .4rem);
101
- justify-content: center;
102
- width: 75%;
103
- left: 50%;
104
- right: 50%;
105
- transform: translateX(-50%);
106
- }
107
- @media (orientation: portrait) {
108
- .control-panel--center {
109
- width: 75%;
110
- }
111
- }
112
-
113
- /* src/styles/control-panel/button/button.css */
114
- .control-panel__button {
115
- border: 2px solid var(--novely-button-border-color, #ffc7df);
116
- height: 2rem;
117
- margin: 0;
118
- padding: .2rem .4rem;
119
- font-size: 1rem;
120
- line-height: 1;
121
- }
122
- .control-panel__button__icon,
123
- .control-panel__button--auto-mode {
124
- display: none;
125
- }
126
- @media (orientation: portrait) {
127
- .control-panel__button__icon {
128
- display: block;
129
- }
130
- .control-panel__button__content {
131
- clip: rect(0 0 0 0);
132
- clip-path: inset(50%);
133
- white-space: nowrap;
134
- width: 1px;
135
- height: 1px;
136
- position: absolute;
137
- overflow: hidden;
138
- }
139
- }
140
- @media (prefers-reduced-motion: no-preference) {
141
- .control-panel__button--auto-mode {
142
- display: initial;
143
- }
144
- }
145
-
146
- /* src/styles/control-panel/index.css */
147
-
148
- /* src/styles/action-text/action-text.css */
149
- .action-text {
150
- z-index: 2;
151
- text-align: center;
152
- max-width: 100vw;
153
- font-size: 1.5rem;
154
- display: none;
155
- position: absolute;
156
- top: 0;
157
- bottom: 0;
158
- left: 0;
159
- right: 0;
160
- }
161
- .action-text[data-shown=true] {
162
- background: var(--novely-fullscreen-background-color, #0000004d);
163
- text-shadow: var(--novely-fullscreen-text-shadow, 2px 2px 4px #00000080);
164
- color: var(--novely-fullscreen-text-color, white);
165
- justify-content: center;
166
- align-items: center;
167
- display: flex;
168
- }
169
- .action-text[data-shown=true] > span {
170
- cursor: pointer;
171
- -webkit-user-select: none;
172
- user-select: none;
173
- word-wrap: break-word;
174
- word-break: break-word;
175
- }
176
- .action-text[data-shown=true]:focus-visible > span {
177
- text-decoration: underline;
178
- }
179
- .action-text,
180
- .action-text > span {
181
- -webkit-user-select: none;
182
- user-select: none;
183
- -webkit-tap-highlight-color: #0000;
184
- -webkit-tap-highlight-color: transparent;
185
- -webkit-touch-callout: none;
186
- touch-action: none;
187
- }
188
-
189
- /* src/styles/action-text/index.css */
190
-
191
- /* src/styles/select/select.css */
192
- .select {
193
- flex-direction: column;
194
- align-items: start;
195
- width: 100%;
196
- display: flex;
197
- }
198
-
199
- /* src/styles/select/select/select.css */
200
- .select__select {
201
- background-color: var(--novely-select-background-color, #ffe9f3);
202
- border: 4px solid var(--novely-select-border-color, #ffc7df);
203
- color: var(--novely-select-color, #000);
204
- margin: .4rem 0;
205
- padding: .4rem;
206
- font-size: 1.02rem;
207
- }
208
-
209
- /* src/styles/select/label/label.css */
210
- .select__label {
211
- background: var(--novely-select-label-background, #ffe9f3);
212
- color: var(--novely-select-color, #000);
213
- -webkit-user-select: none;
214
- user-select: none;
215
- border-radius: .25rem;
216
- padding: .25rem .5rem;
217
- font-size: 1.02rem;
218
- }
219
-
220
- /* src/styles/select/index.css */
221
-
222
- /* src/styles/action-dialog/action-dialog.css */
223
- .action-dialog {
224
- z-index: 22;
225
- text-align: left;
226
- cursor: default;
227
- -webkit-user-select: none;
228
- user-select: none;
229
- flex-direction: column;
230
- justify-content: flex-end;
231
- width: 75%;
232
- min-height: 26vh;
233
- position: fixed;
234
- bottom: .4rem;
235
- left: 50%;
236
- transform: translateX(-50%);
237
- }
238
- .action-dialog--visible {
239
- display: flex;
240
- }
241
- .action-dialog--hidden {
242
- display: none;
243
- }
244
- .action-dialog-container {
245
- color: var(--novely-dialog-color, #fff);
246
- border: var(--novely-dialog-border-width, 3px) solid var(--novely-dialog-border-color, #fff);
247
- border-radius: var(--novely-dialog-border-radius, 14px);
248
- box-shadow: 1px 1px 4px var(--novely-dialog-box-shadow-color, #00000072);
249
- background-image: var(--novely-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
250
- background-color: var(--novely-dialog-background-color, #f092b4d8);
251
- background-position: var(--novely-dialog-background-position, 0 0, 50px 50px);
252
- background-size: var(--novely-dialog-background-size, 100px 100px);
253
- flex-wrap: nowrap;
254
- flex-grow: 1;
255
- height: 100%;
256
- min-height: 18vh;
257
- padding-bottom: 2.8rem;
258
- display: flex;
259
- }
260
- .action-dialog-person {
261
- max-width: 25vw;
262
- max-height: 25vh;
263
- }
264
- .action-dialog-name,
265
- .action-dialog-content {
266
- margin: 0;
267
- padding: 1vmin;
268
- display: block;
269
- }
270
- .action-dialog-name {
271
- background: #fff;
272
- border-radius: 7px 7px 0 0;
273
- width: fit-content;
274
- margin-left: 5vmin;
275
- font-size: 1.4375rem;
276
- line-height: 1.2;
277
- box-shadow: 1px 1px 3px #00000042;
278
- }
279
- .action-dialog-content {
280
- text-shadow:
281
- 1px 1px #000,
282
- -1px -1px #000,
283
- 1px -1px #000,
284
- -1px 1px #000;
285
- width: 100%;
286
- font-size: 2.2375rem;
287
- line-height: 1.2;
288
- }
289
- .action-dialog-person > canvas,
290
- .action-dialog-person > img {
291
- object-fit: contain;
292
- max-width: 100%;
293
- max-height: 100%;
294
- }
295
- @media (orientation: portrait) {
296
- .action-dialog {
297
- bottom: 0;
298
- left: unset;
299
- transform: unset;
300
- width: 100%;
301
- }
302
- .action-dialog-name {
303
- font-size: 1.02rem;
304
- }
305
- .action-dialog-content {
306
- font-size: 1.32rem;
307
- }
308
- .action-dialog-container {
309
- border-radius: 14px 14px 0 0;
310
- }
311
- .action-dialog-content {
312
- text-shadow: none;
313
- }
314
- }
315
- @media only screen and (orientation: landscape) and (pointer: coarse) {
316
- .action-dialog-content {
317
- text-shadow: none;
318
- font-size: 1.32rem;
319
- line-height: 1.15;
320
- }
321
- }
322
-
323
- /* src/styles/action-dialog/index.css */
324
-
325
- /* src/styles/dialog/dialog.css */
326
- .dialog {
327
- z-index: 20;
328
- position: absolute;
329
- top: 0;
330
- bottom: 0;
331
- left: 0;
332
- right: 0;
333
- }
334
- .dialog-container {
335
- justify-content: center;
336
- align-items: center;
337
- min-height: 100vh;
338
- display: flex;
339
- }
340
- .dialog-fix {
341
- vertical-align: middle;
342
- height: 100vh;
343
- display: inline-block;
344
- }
345
- .dialog-panel {
346
- text-align: left;
347
- z-index: 21;
348
- flex-direction: column;
349
- align-items: stretch;
350
- min-width: 50vw;
351
- max-width: 100vw;
352
- min-height: 40vh;
353
- padding-left: .25rem;
354
- padding-right: .25rem;
355
- display: flex;
356
- }
357
- .dialog-panel-label {
358
- -webkit-user-select: none;
359
- user-select: none;
360
- border-radius: .25rem;
361
- padding: .25rem .5rem;
362
- font-size: 1.2375rem;
363
- }
364
- .dialog-panel-label[data-used=true] {
365
- background: var(--novely-dialog-panel-label-background, #ffe9f3);
366
- color: var(--novely-dialog-panel-label-color, #000);
367
- }
368
- @media (orientation: portrait) {
369
- .dialog-panel {
370
- width: calc(100vw - .5rem);
371
- }
372
- }
373
-
374
- /* src/styles/dialog/index.css */
375
-
376
- /* src/styles/input-dialog/input-dialog.css */
377
- .input-dialog-label {
378
- flex-direction: column;
379
- justify-content: center;
380
- align-items: center;
381
- width: 100%;
382
- font-size: 1.2375rem;
383
- display: flex;
384
- }
385
- .input-dialog-label > span {
386
- min-height: 1rem;
387
- -webkit-user-select: none;
388
- user-select: none;
389
- -webkit-tap-highlight-color: #0000;
390
- -webkit-tap-highlight-color: transparent;
391
- -webkit-touch-callout: none;
392
- min-height: 1lh;
393
- margin: .4rem 0;
394
- }
395
- .input-dialog-label > input {
396
- min-width: 10rem;
397
- max-width: 100%;
398
- }
399
- .input-dialog-panel {
400
- color: #fff;
401
- background-color: #f092b4d8;
402
- background-image: radial-gradient(#d6608998 20%, #0000 20%), radial-gradient(#d6608998 20%, #0000 20%);
403
- background-position: 0 0, 50px 50px;
404
- background-size: 100px 100px;
405
- border: 3px solid #fff;
406
- border-radius: 14px;
407
- justify-content: center;
408
- align-items: center;
409
- box-shadow: 1px 1px 4px #00000072;
410
- }
411
-
412
- /* src/styles/input-dialog/button/button.css */
413
- .dialog-input__button {
414
- width: fit-content;
415
- padding: .4rem .6rem;
416
- font-size: 1.2375rem;
417
- }
418
-
419
- /* src/styles/input-dialog/index.css */
420
-
421
- /* src/styles/main-menu/main-menu.css */
422
- .main-menu {
423
- background-image: var(--novely-main-menu-background-image);
424
- align-content: center;
425
- padding: 0 1rem;
426
- display: grid;
427
- overflow: hidden;
428
- }
429
- @media (orientation: landscape) {
430
- .main-menu {
431
- justify-content: start;
432
- }
433
- }
434
-
435
- /* src/styles/main-menu/button/button.css */
436
- .main-menu__button {
437
- min-width: 30vw;
438
- }
439
-
440
- /* src/styles/main-menu/index.css */
441
-
442
- /* src/styles/loading/loading.css */
443
- .loading {
444
- background: #000;
445
- justify-content: center;
446
- align-items: center;
447
- display: flex;
448
- overflow: hidden;
449
- }
450
-
451
- /* src/styles/loading/animation/animation.css */
452
- .loading__animation {
453
- width: 80px;
454
- height: 80px;
455
- display: inline-block;
456
- position: relative;
457
- }
458
- .loading__animation div {
459
- background: #fff;
460
- border-radius: 50%;
461
- width: 13px;
462
- height: 13px;
463
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
464
- position: absolute;
465
- top: 33px;
466
- }
467
- .loading__animation div:first-child {
468
- animation: .6s infinite lds-ellipsis1;
469
- left: 8px;
470
- }
471
- .loading__animation div:nth-child(2) {
472
- animation: .6s infinite lds-ellipsis2;
473
- left: 8px;
474
- }
475
- .loading__animation div:nth-child(3) {
476
- animation: .6s infinite lds-ellipsis2;
477
- left: 32px;
478
- }
479
- .loading__animation div:nth-child(4) {
480
- animation: .6s infinite lds-ellipsis3;
481
- left: 56px;
482
- }
483
- @keyframes lds-ellipsis1 {
484
- 0% {
485
- transform: scale(0);
486
- }
487
- 100% {
488
- transform: scale(1);
489
- }
490
- }
491
- @keyframes lds-ellipsis3 {
492
- 0% {
493
- transform: scale(1);
494
- }
495
- 100% {
496
- transform: scale(0);
497
- }
498
- }
499
- @keyframes lds-ellipsis2 {
500
- 0% {
501
- transform: translate(0);
502
- }
503
- 100% {
504
- transform: translate(24px);
505
- }
506
- }
507
-
508
- /* src/styles/loading/index.css */
509
-
510
- /* src/styles/settings/settings.css */
511
- .settings {
512
- background-image: var(--novely-settings-background-image);
513
- gap: 1rem;
514
- padding: 0 1rem;
515
- display: flex;
516
- overflow: hidden;
517
- }
518
- @media (orientation: portrait) {
519
- .settings {
520
- flex-direction: column-reverse;
521
- }
522
- }
523
-
524
- /* src/styles/settings/button/button.css */
525
- .settings__button {
526
- min-width: 30vw;
527
- }
528
- @media (orientation: portrait) {
529
- .settings__button {
530
- min-width: 80%;
531
- }
532
- }
533
-
534
- /* src/styles/settings/column/column.css */
535
- .settings__column {
536
- flex-flow: column wrap;
537
- justify-content: center;
538
- align-items: center;
539
- display: flex;
540
- }
541
-
542
- /* src/styles/settings/index.css */
543
-
544
- /* src/styles/saves/saves.css */
545
- .saves {
546
- background-image: var(--novely-saves-background-image);
547
- gap: 1rem;
548
- padding: 0 1rem;
549
- display: flex;
550
- overflow: hidden;
551
- }
552
- @media (orientation: portrait) {
553
- .saves {
554
- flex-direction: column-reverse;
555
- }
556
- }
557
-
558
- /* src/styles/saves/button/button.css */
559
- .saves__button {
560
- min-width: 30vw;
561
- }
562
- .saves__button-load {
563
- width: 100%;
564
- touch-action: auto !important;
565
- }
566
- .saves__button-load__type {
567
- margin-left: 1rem;
568
- }
569
- @media (orientation: portrait) {
570
- .saves__button {
571
- min-width: 80%;
572
- }
573
- .saves__button-load {
574
- margin-bottom: 0;
575
- }
576
- .saves__button-reset {
577
- margin-top: 4px;
578
- }
579
- }
580
-
581
- /* src/styles/saves/list/list.css */
582
- .saves__list-container {
583
- justify-content: center;
584
- align-items: center;
585
- width: 100%;
586
- height: 100%;
587
- display: flex;
588
- overflow: hidden;
589
- }
590
- .saves__list {
591
- padding: 0 1rem;
592
- border-radius: var(--novely-saves-list-border-radius, 14px);
593
- background-color: var(--novely-saves-list-background-color, #ffffff57);
594
- place-content: flex-start center;
595
- justify-items: stretch;
596
- width: 100%;
597
- height: 80%;
598
- margin-top: 0;
599
- margin-bottom: 0;
600
- padding-left: 0;
601
- padding-right: 0;
602
- list-style: none;
603
- display: grid;
604
- overflow-y: scroll;
605
- touch-action: auto !important;
606
- }
607
- .saves__list::-webkit-scrollbar {
608
- width: 14px;
609
- }
610
- .saves__list::-webkit-scrollbar-track {
611
- background-color: var(--novely-scrollbar-track-bg-color, #ffe9f3);
612
- border-radius: var(--novely-scrollbar-track-border-radius, 7px);
613
- }
614
- .saves__list::-webkit-scrollbar-thumb {
615
- background-color: var(--novely-scrollbar-thumb-bg-color, #ffc7df);
616
- border-radius: var(--novely-scrollbar-thumb-border-radius, 7px);
617
- }
618
- .saves__list::-webkit-scrollbar-thumb:hover {
619
- background-color: var(--novely-scrollbar-thumb-hover-bg-color, #ffc6d8);
620
- }
621
- .saves__list:hover {
622
- scrollbar-color: var(--novely-scrollbar-thumb-hover-bg-color, #ffc6d8);
623
- }
624
- .saves__list--empty {
625
- -webkit-user-select: none;
626
- user-select: none;
627
- color: var(--novely-saves-list-empty-color, black);
628
- align-items: center;
629
- display: flex;
630
- }
631
- .saves__list-item {
632
- display: flex;
633
- }
634
- @media (orientation: portrait) {
635
- .saves__list {
636
- height: 100%;
637
- }
638
- .saves__list-container {
639
- margin-top: 1rem;
640
- }
641
- .saves__list-item {
642
- flex-direction: column;
643
- }
644
- }
645
-
646
- /* src/styles/saves/column/column.css */
647
- @media (orientation: portrait) {
648
- .saves__column {
649
- flex-flow: column wrap;
650
- justify-content: center;
651
- align-items: center;
652
- display: flex;
653
- }
654
- }
655
-
656
- /* src/styles/saves/index.css */
657
-
658
- /* src/styles/index.css */