@novely/solid-renderer 0.0.5 → 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__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,38 @@
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
+ }
202
239
 
203
240
  /* src/styles/saves/column/column.css */
204
241
  @media (orientation: portrait) {
@@ -417,6 +454,18 @@
417
454
  border-radius: 14px 14px 0 0;
418
455
  }
419
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
+ }
420
469
 
421
470
  /* src/styles/action-dialog/index.css */
422
471
 
@@ -441,9 +490,11 @@
441
490
  .dialog-panel {
442
491
  text-align: left;
443
492
  z-index: 21;
444
- width: 100%;
445
- max-width: 40vw;
446
493
  min-height: 40vh;
494
+ min-width: 50vw;
495
+ max-width: 100vw;
496
+ padding-left: 0.25em;
497
+ padding-right: 0.25em;
447
498
  display: flex;
448
499
  flex-direction: column;
449
500
  align-items: stretch;
@@ -452,6 +503,12 @@
452
503
  user-select: none;
453
504
  font-size: 1.2375em;
454
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
+ }
455
512
  @media (orientation: portrait) {
456
513
  .dialog-panel {
457
514
  max-width: 95vw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"