@novely/solid-renderer 0.0.4 → 0.0.6

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
@@ -256,6 +256,7 @@ var Game = (props) => {
256
256
  <div class="dialog-panel">
257
257
  <span
258
258
  class="dialog-panel-label"
259
+ data-used={Boolean(props.state.choices.question)}
259
260
  aria-hidden={!props.state.choices.question}
260
261
  >{props.state.choices.question || <>ᅠ</>}</span>
261
262
  <For each={props.state.choices.choices}>{([text, _, active], i) => {
@@ -363,7 +364,7 @@ var Saves = (props) => {
363
364
  };
364
365
  return <div class="root saves">
365
366
  <div class="saves__column"><button type="button" class="button saves__button" onClick={() => props.setState("screen", "mainmenu")}>{data.t("GoBack")}</button></div>
366
- <Show3 when={saves()} fallback={data.t("NoSaves")}><ol class="saves__column saves__list"><For2 each={saves()}>{(save) => {
367
+ <div class="saves__list-container"><Show3 when={saves()} fallback={data.t("NoSaves")}><ol class="saves__list"><For2 each={saves()}>{(save) => {
367
368
  const [date, type] = save[2];
368
369
  const stringDate = capitalize(new Date(date).toLocaleDateString(language(), { weekday: "long", year: "numeric", month: "long", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" }));
369
370
  const stringType = data.t(type === "auto" ? "Automatic" : "Manual");
@@ -379,7 +380,7 @@ var Saves = (props) => {
379
380
  </button>
380
381
  <button type="reset" class="button" aria-label={data.t("DeleteASaveFrom") + " " + stringDate} onClick={[removeSave, date]}><span>{data.t("Remove")}</span></button>
381
382
  </li>;
382
- }}</For2></ol></Show3>
383
+ }}</For2></ol></Show3></div>
383
384
  </div>;
384
385
  };
385
386
 
@@ -175,6 +175,7 @@
175
175
  }
176
176
  .saves__button-load {
177
177
  width: 100%;
178
+ touch-action: auto !important;
178
179
  }
179
180
  @media (orientation: portrait) {
180
181
  .saves__button {
@@ -183,9 +184,17 @@
183
184
  }
184
185
 
185
186
  /* src/styles/saves/list/list.css */
186
- .saves__list {
187
+ .saves__list-container {
187
188
  width: 100%;
188
189
  height: 100%;
190
+ display: flex;
191
+ align-items: center;
192
+ justify-content: center;
193
+ overflow: hidden;
194
+ }
195
+ .saves__list {
196
+ width: 100%;
197
+ height: 80%;
189
198
  padding: 0 1em;
190
199
  display: grid;
191
200
  align-content: flex-start;
@@ -195,10 +204,49 @@
195
204
  overflow-y: scroll;
196
205
  margin-block-start: 0;
197
206
  margin-block-end: 0;
207
+ touch-action: auto !important;
208
+ border-radius: var(--saves-list-border-radius, 14px);
209
+ background-color: var(--saves-list-background-color, #ffffff57);
210
+ }
211
+ .saves__list::-webkit-scrollbar {
212
+ width: 14px;
213
+ }
214
+ .saves__list::-webkit-scrollbar-track {
215
+ background-color: #ffe9f3;
216
+ border-radius: 7px;
217
+ }
218
+ .saves__list::-webkit-scrollbar-thumb {
219
+ background-color: #ffc7df;
220
+ border-radius: 7px;
221
+ }
222
+ .saves__list::-webkit-scrollbar-thumb:hover {
223
+ background-color: #ffc6d8;
224
+ }
225
+ .saves__list:hover {
226
+ scrollbar-color: #ffc6d8;
198
227
  }
199
228
  .saves__list-item {
200
229
  display: flex;
201
230
  }
231
+ @media (orientation: portrait) {
232
+ .saves__list {
233
+ height: 100%;
234
+ }
235
+ .saves__list-container {
236
+ margin-top: 1em;
237
+ }
238
+ }
239
+
240
+ /* src/styles/saves/column/column.css */
241
+ @media (orientation: portrait) {
242
+ .saves__column {
243
+ display: flex;
244
+ align-items: center;
245
+ justify-content: center;
246
+ flex-direction: column;
247
+ flex-wrap: wrap;
248
+ }
249
+ }
202
250
 
203
251
  /* src/styles/saves/index.css */
204
252
 
@@ -406,6 +454,18 @@
406
454
  border-radius: 14px 14px 0 0;
407
455
  }
408
456
  }
457
+ @media only screen and (orientation: landscape) and (hover: none) and (pointer: coarse) {
458
+ .action-dialog-content {
459
+ font-size: 1.32em;
460
+ line-height: 1.15;
461
+ }
462
+ }
463
+ @media only screen and (orientation: landscape) and (hover: hover) and (pointer: coarse) {
464
+ .action-dialog-content {
465
+ font-size: 1.32em;
466
+ line-height: 1.15;
467
+ }
468
+ }
409
469
 
410
470
  /* src/styles/action-dialog/index.css */
411
471
 
@@ -430,9 +490,11 @@
430
490
  .dialog-panel {
431
491
  text-align: left;
432
492
  z-index: 21;
433
- width: 100%;
434
- max-width: 40vw;
435
493
  min-height: 40vh;
494
+ min-width: 50vw;
495
+ max-width: 100vw;
496
+ padding-left: 0.25em;
497
+ padding-right: 0.25em;
436
498
  display: flex;
437
499
  flex-direction: column;
438
500
  align-items: stretch;
@@ -441,6 +503,12 @@
441
503
  user-select: none;
442
504
  font-size: 1.2375em;
443
505
  }
506
+ .dialog-panel-label[data-used=true] {
507
+ background: var(--novely-dialog-panel-label-background, #ffe9f3);
508
+ color: var(--novely-dialog-panel-label-color, #000);
509
+ padding: 0.25em 0.5em;
510
+ border-radius: 0.25em;
511
+ }
444
512
  @media (orientation: portrait) {
445
513
  .dialog-panel {
446
514
  max-width: 95vw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"