@novely/solid-renderer 0.27.1 → 0.28.0
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/components/Root.d.ts +3 -3
- package/dist/context/index.d.ts +3 -3
- package/dist/index.jsx +45 -40
- package/dist/screens/game.d.ts +2 -2
- package/dist/styles/index.css +113 -39
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Component } from 'solid-js';
|
|
2
2
|
import type { Emitter } from '../emitter';
|
|
3
|
-
import type { RendererStateStore, ContextStateStore,
|
|
3
|
+
import type { RendererStateStore, ContextStateStore, DeepAtom } from '@novely/renderer-toolkit';
|
|
4
4
|
import type { EmitterEventsMap, RendererStoreExtension, SettingsIcons } from '../types';
|
|
5
5
|
import type { Context } from '@novely/core';
|
|
6
6
|
import type { Character, Renderer, RendererInit } from '@novely/core';
|
|
@@ -15,8 +15,8 @@ type CreateRootComponentOpts = {
|
|
|
15
15
|
settingsIcons: SettingsIcons;
|
|
16
16
|
rendererContext: Context;
|
|
17
17
|
coreOptions: RendererInit<any, any>;
|
|
18
|
-
$contextState:
|
|
19
|
-
$rendererState:
|
|
18
|
+
$contextState: DeepAtom<ContextStateStore<Record<PropertyKey, unknown>>>;
|
|
19
|
+
$rendererState: DeepAtom<RendererStateStore<RendererStoreExtension>>;
|
|
20
20
|
};
|
|
21
21
|
declare const createRootComponent: ({ $rendererState, $contextState, coreOptions, setRoot, characters, renderer, fullscreen, emitter, controls, skipTypewriterWhenGoingBack, settingsIcons, rendererContext }: CreateRootComponentOpts) => Component;
|
|
22
22
|
export { createRootComponent };
|
package/dist/context/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import type { Accessor, FlowComponent } from 'solid-js';
|
|
|
2
2
|
import type { Renderer, RendererInit, StorageData, Stored, BaseTranslationStrings, CoreData, Character, Context } from '@novely/core';
|
|
3
3
|
import type { EmitterEventsMap, RendererStoreExtension } from '../types';
|
|
4
4
|
import type { Emitter } from '../emitter';
|
|
5
|
-
import type {
|
|
5
|
+
import type { DeepAtom, RendererStateStore } from '@novely/renderer-toolkit';
|
|
6
6
|
interface DataContext {
|
|
7
|
-
$rendererState:
|
|
7
|
+
$rendererState: DeepAtom<RendererStateStore<RendererStoreExtension>>;
|
|
8
8
|
storageData: Accessor<StorageData>;
|
|
9
9
|
storageDataUpdate: (fn: (prev: StorageData) => StorageData) => void;
|
|
10
10
|
coreData: Accessor<CoreData>;
|
|
@@ -22,7 +22,7 @@ interface DataContext {
|
|
|
22
22
|
}
|
|
23
23
|
declare const Context: import("solid-js").Context<DataContext | undefined>;
|
|
24
24
|
interface ProviderProps {
|
|
25
|
-
$rendererState:
|
|
25
|
+
$rendererState: DeepAtom<RendererStateStore<RendererStoreExtension>>;
|
|
26
26
|
storageData: Stored<StorageData>;
|
|
27
27
|
coreData: Stored<CoreData>;
|
|
28
28
|
options: RendererInit<any, any>;
|
package/dist/index.jsx
CHANGED
|
@@ -5078,7 +5078,7 @@ var createRetrieved = (fn) => {
|
|
|
5078
5078
|
};
|
|
5079
5079
|
|
|
5080
5080
|
// src/components/Save.tsx
|
|
5081
|
-
var _tmpl$17 = /* @__PURE__ */ template(`<li class="saves__list-item"><iframe loading="lazy" role="button" tabindex="-1" class="saves__list-item__iframe"></iframe><div class="saves__list-item__description"><div></div><div></div></div><button type="reset" class="button saves__button-reset"><span>`);
|
|
5081
|
+
var _tmpl$17 = /* @__PURE__ */ template(`<li class="saves__list-item"><div class="saves__list-item__load" role="button" tabindex="0"><iframe loading="lazy" role="button" tabindex="-1" class="saves__list-item__iframe"></iframe></div><div class="saves__list-item__description"><div></div><div></div></div><button type="reset" class="button saves__button-reset"><span>`);
|
|
5082
5082
|
var CURRENT_DATE = /* @__PURE__ */ new Date();
|
|
5083
5083
|
var CURRENT_YEAR = CURRENT_DATE.getFullYear();
|
|
5084
5084
|
var stylesheet = createRetrieved(getDocumentStyles);
|
|
@@ -5117,7 +5117,7 @@ var Save = (props) => {
|
|
|
5117
5117
|
},
|
|
5118
5118
|
isPreview: true
|
|
5119
5119
|
});
|
|
5120
|
-
const
|
|
5120
|
+
const loadSave = () => {
|
|
5121
5121
|
options.set(props.save);
|
|
5122
5122
|
};
|
|
5123
5123
|
const onIframeLoaded = () => {
|
|
@@ -5126,8 +5126,7 @@ var Save = (props) => {
|
|
|
5126
5126
|
} = iframe();
|
|
5127
5127
|
if (!contentDocument)
|
|
5128
5128
|
return;
|
|
5129
|
-
contentDocument.head.insertAdjacentHTML("beforeend", `<style>:root { font-size: 30%; background: black; cursor: pointer; }
|
|
5130
|
-
contentDocument.body.addEventListener("click", onIframeClick);
|
|
5129
|
+
contentDocument.head.insertAdjacentHTML("beforeend", `<style>:root { font-size: 30%; background: black; cursor: pointer; } * { pointer-events: none; } *, *::before, *::after { animation-play-state: paused !important; }</style><style>${stylesheet()}</style>`);
|
|
5131
5130
|
context.root = contentDocument.body;
|
|
5132
5131
|
contentDocument.body.appendChild(game);
|
|
5133
5132
|
options.preview(props.save, KEY);
|
|
@@ -5143,12 +5142,6 @@ var Save = (props) => {
|
|
|
5143
5142
|
const iframeElement = iframe();
|
|
5144
5143
|
if (iframeElement) {
|
|
5145
5144
|
iframeElement.removeEventListener("load", onIframeLoaded);
|
|
5146
|
-
const {
|
|
5147
|
-
contentDocument
|
|
5148
|
-
} = iframeElement;
|
|
5149
|
-
if (contentDocument) {
|
|
5150
|
-
contentDocument.body.removeEventListener("click", onIframeClick);
|
|
5151
|
-
}
|
|
5152
5145
|
}
|
|
5153
5146
|
const state = useContextState(KEY);
|
|
5154
5147
|
for (const custom of Object.values(state.get().custom)) {
|
|
@@ -5171,17 +5164,29 @@ var Save = (props) => {
|
|
|
5171
5164
|
});
|
|
5172
5165
|
};
|
|
5173
5166
|
return (() => {
|
|
5174
|
-
const _el$ = _tmpl$17(), _el$2 = _el$.firstChild, _el$3 = _el$2.
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5167
|
+
const _el$ = _tmpl$17(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling, _el$8 = _el$7.firstChild;
|
|
5168
|
+
_el$2.$$keyup = (event) => {
|
|
5169
|
+
if (event.code === "Space") {
|
|
5170
|
+
loadSave();
|
|
5171
|
+
}
|
|
5172
|
+
};
|
|
5173
|
+
_el$2.$$keydown = (event) => {
|
|
5174
|
+
if (event.code === "Enter") {
|
|
5175
|
+
loadSave();
|
|
5176
|
+
}
|
|
5177
|
+
};
|
|
5178
|
+
_el$2.$$click = loadSave;
|
|
5179
|
+
use(setIframe, _el$3);
|
|
5180
|
+
setAttribute(_el$5, "aria-hidden", true);
|
|
5181
|
+
insert(_el$5, stringDate);
|
|
5182
|
+
insert(_el$6, stringType);
|
|
5183
|
+
_el$7.$$click = removeSave;
|
|
5184
|
+
_el$7.$$clickData = timestamp;
|
|
5185
|
+
insert(_el$8, () => t("Remove"));
|
|
5181
5186
|
createRenderEffect((_p$) => {
|
|
5182
5187
|
const _v$ = t("LoadASaveFrom") + " " + stringDate(), _v$2 = t("DeleteASaveFrom") + " " + stringDate();
|
|
5183
5188
|
_v$ !== _p$._v$ && setAttribute(_el$2, "aria-label", _p$._v$ = _v$);
|
|
5184
|
-
_v$2 !== _p$._v$2 && setAttribute(_el$
|
|
5189
|
+
_v$2 !== _p$._v$2 && setAttribute(_el$7, "aria-label", _p$._v$2 = _v$2);
|
|
5185
5190
|
return _p$;
|
|
5186
5191
|
}, {
|
|
5187
5192
|
_v$: void 0,
|
|
@@ -5190,7 +5195,7 @@ var Save = (props) => {
|
|
|
5190
5195
|
return _el$;
|
|
5191
5196
|
})();
|
|
5192
5197
|
};
|
|
5193
|
-
delegateEvents(["click"]);
|
|
5198
|
+
delegateEvents(["click", "keydown", "keyup"]);
|
|
5194
5199
|
|
|
5195
5200
|
// ../typewriter/dist/index.js
|
|
5196
5201
|
var defaultSpeed = () => {
|
|
@@ -5791,7 +5796,7 @@ var Loading = (props) => {
|
|
|
5791
5796
|
};
|
|
5792
5797
|
|
|
5793
5798
|
// src/screens/mainmenu.tsx
|
|
5794
|
-
var _tmpl$21 = /* @__PURE__ */ template(`<div class="root main-menu"><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text">`);
|
|
5799
|
+
var _tmpl$21 = /* @__PURE__ */ template(`<div class="root main-menu"><div class="main-menu__controls"><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text">`);
|
|
5795
5800
|
var _tmpl$25 = /* @__PURE__ */ template(`<button>`);
|
|
5796
5801
|
var MainMenu = () => {
|
|
5797
5802
|
const {
|
|
@@ -5806,31 +5811,31 @@ var MainMenu = () => {
|
|
|
5806
5811
|
const goto = simple((screen) => {
|
|
5807
5812
|
if (!coreData().dataLoaded)
|
|
5808
5813
|
return;
|
|
5809
|
-
$rendererState.
|
|
5814
|
+
$rendererState.mutate((s) => s.screen, screen);
|
|
5810
5815
|
});
|
|
5811
5816
|
return (() => {
|
|
5812
|
-
const _el$ = _tmpl$21(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$
|
|
5813
|
-
addEventListener2(_el$
|
|
5814
|
-
insert(_el$
|
|
5815
|
-
insert(_el$
|
|
5817
|
+
const _el$ = _tmpl$21(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.firstChild;
|
|
5818
|
+
addEventListener2(_el$3, "click", options.newGame, true);
|
|
5819
|
+
insert(_el$4, () => t("NewGame"));
|
|
5820
|
+
insert(_el$3, createComponent(Icon, {
|
|
5816
5821
|
children: Icon.FilePlus()
|
|
5817
5822
|
}), null);
|
|
5818
|
-
_el$
|
|
5819
|
-
insert(_el$
|
|
5820
|
-
insert(_el$
|
|
5823
|
+
_el$5.$$click = () => options.restore();
|
|
5824
|
+
insert(_el$6, () => t("LoadSave"));
|
|
5825
|
+
insert(_el$5, createComponent(Icon, {
|
|
5821
5826
|
children: Icon.Play()
|
|
5822
5827
|
}), null);
|
|
5823
|
-
_el$
|
|
5824
|
-
insert(_el$
|
|
5825
|
-
insert(_el$
|
|
5828
|
+
_el$7.$$click = () => goto("saves");
|
|
5829
|
+
insert(_el$8, () => t("Saves"));
|
|
5830
|
+
insert(_el$7, createComponent(Icon, {
|
|
5826
5831
|
children: Icon.Files()
|
|
5827
5832
|
}), null);
|
|
5828
|
-
_el$
|
|
5829
|
-
insert(_el$
|
|
5830
|
-
insert(_el$
|
|
5833
|
+
_el$9.$$click = () => goto("settings");
|
|
5834
|
+
insert(_el$10, () => t("Settings"));
|
|
5835
|
+
insert(_el$9, createComponent(Icon, {
|
|
5831
5836
|
children: Icon.Settings()
|
|
5832
5837
|
}), null);
|
|
5833
|
-
insert(_el
|
|
5838
|
+
insert(_el$2, createComponent(Show, {
|
|
5834
5839
|
get when() {
|
|
5835
5840
|
return language();
|
|
5836
5841
|
},
|
|
@@ -5840,9 +5845,9 @@ var MainMenu = () => {
|
|
|
5840
5845
|
return rendererStore().mainmenu;
|
|
5841
5846
|
},
|
|
5842
5847
|
children: (item) => (() => {
|
|
5843
|
-
const _el$
|
|
5844
|
-
spread(_el$
|
|
5845
|
-
return _el$
|
|
5848
|
+
const _el$11 = _tmpl$25();
|
|
5849
|
+
spread(_el$11, mergeProps(() => item(goto)), false, false);
|
|
5850
|
+
return _el$11;
|
|
5846
5851
|
})()
|
|
5847
5852
|
})
|
|
5848
5853
|
}), null);
|
|
@@ -5853,7 +5858,7 @@ delegateEvents(["click"]);
|
|
|
5853
5858
|
|
|
5854
5859
|
// src/screens/saves.tsx
|
|
5855
5860
|
var _tmpl$26 = /* @__PURE__ */ template(`<ol class="saves__list">`);
|
|
5856
|
-
var _tmpl$27 = /* @__PURE__ */ template(`<div class="root saves"><div class="
|
|
5861
|
+
var _tmpl$27 = /* @__PURE__ */ template(`<div class="root saves"><div class="saves__controls"><button type="button" class="button saves__button"></button></div><div class="saves__list-container">`);
|
|
5857
5862
|
var _tmpl$34 = /* @__PURE__ */ template(`<div class="saves__list saves__list--empty">`);
|
|
5858
5863
|
var Saves = () => {
|
|
5859
5864
|
const {
|
|
@@ -5900,7 +5905,7 @@ var Saves = () => {
|
|
|
5900
5905
|
delegateEvents(["click"]);
|
|
5901
5906
|
|
|
5902
5907
|
// src/screens/settings.tsx
|
|
5903
|
-
var _tmpl$28 = /* @__PURE__ */ template(`<div class="root settings"><div class="
|
|
5908
|
+
var _tmpl$28 = /* @__PURE__ */ template(`<div class="root settings"><div class="settings__controls"><button type="button" class="button settings__button"></button><button type="button" class="button settings__button"></button></div><div class="settings__options"><div><div class="select"><label class="select__label"><span class="select__label__icon"></span> </label><select class="select__select"></select></div><div class="select"><label class="select__label"><span class="select__label__icon"></span> </label><select class="select__select"></select></div></div><div><div class="range"><label class="range__label"><span class="range__label__icon"></span> </label><input class="range__range" type="range" min="0" max="1" step="0.01"></div><div class="range"><label class="range__label"><span class="range__label__icon"></span> </label><input class="range__range" type="range" min="0" max="1" step="0.01"></div><div class="range"><label class="range__label"><span class="range__label__icon"></span> </label><input class="range__range" type="range" min="0" max="1" step="0.01">`);
|
|
5904
5909
|
var _tmpl$29 = /* @__PURE__ */ template(`<option>`);
|
|
5905
5910
|
var Settings = (props) => {
|
|
5906
5911
|
const data = useData();
|
package/dist/screens/game.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Context } from '@novely/core';
|
|
2
2
|
import type { VoidComponent } from 'solid-js';
|
|
3
3
|
import type { SolidRendererStore } from '../renderer';
|
|
4
|
-
import type { ContextStateStore,
|
|
4
|
+
import type { ContextStateStore, DeepAtom } from '@novely/renderer-toolkit';
|
|
5
5
|
interface GameProps {
|
|
6
6
|
context: Context;
|
|
7
|
-
$contextState:
|
|
7
|
+
$contextState: DeepAtom<ContextStateStore<Record<PropertyKey, unknown>>>;
|
|
8
8
|
store: SolidRendererStore;
|
|
9
9
|
controls: 'inside' | 'outside';
|
|
10
10
|
skipTypewriterWhenGoingBack: boolean;
|
package/dist/styles/index.css
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
-webkit-tap-highlight-color: #0000;
|
|
9
9
|
-webkit-tap-highlight-color: transparent;
|
|
10
10
|
-webkit-touch-callout: none;
|
|
11
|
+
--novely-px: .0625rem;
|
|
11
12
|
width: 100vw;
|
|
12
13
|
height: 100vh;
|
|
13
14
|
font-family:
|
|
@@ -37,16 +38,19 @@
|
|
|
37
38
|
/* src/styles/button/button.css */
|
|
38
39
|
.button {
|
|
39
40
|
background-color: var(--novely-button-background-color, #ffe9f3);
|
|
40
|
-
border: .25rem solid var(--novely-button-border-color, #ffc7df);
|
|
41
41
|
color: var(--novely-button-color, #000);
|
|
42
|
+
box-shadow: 0 0 0 var(--button-box-shadow-spread-radius, .25rem) var(--novely-button-border-color, #ffc7df);
|
|
43
|
+
margin: .4rem var(--button-box-shadow-spread-radius, .25rem);
|
|
42
44
|
cursor: pointer;
|
|
43
45
|
-webkit-tap-highlight-color: #0000;
|
|
44
46
|
-webkit-tap-highlight-color: transparent;
|
|
45
47
|
-webkit-touch-callout: none;
|
|
46
|
-
|
|
48
|
+
border: none;
|
|
49
|
+
border-radius: .25rem;
|
|
47
50
|
padding: .4rem;
|
|
48
|
-
font-size:
|
|
51
|
+
font-size: 1rem;
|
|
49
52
|
line-height: 1.2;
|
|
53
|
+
position: relative;
|
|
50
54
|
}
|
|
51
55
|
.button:hover {
|
|
52
56
|
background-color: var(--novely-button-hover-background-color, #fff);
|
|
@@ -57,6 +61,15 @@
|
|
|
57
61
|
cursor: not-allowed;
|
|
58
62
|
opacity: .9;
|
|
59
63
|
}
|
|
64
|
+
.button:after {
|
|
65
|
+
content: "";
|
|
66
|
+
border-radius: .25rem;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: -.15rem;
|
|
69
|
+
bottom: -.15rem;
|
|
70
|
+
left: -.15rem;
|
|
71
|
+
right: -.15rem;
|
|
72
|
+
}
|
|
60
73
|
|
|
61
74
|
/* src/styles/button/index.css */
|
|
62
75
|
|
|
@@ -89,11 +102,12 @@
|
|
|
89
102
|
.control-panel {
|
|
90
103
|
z-index: 30;
|
|
91
104
|
position: fixed;
|
|
92
|
-
bottom: .
|
|
105
|
+
bottom: .45rem;
|
|
93
106
|
right: .4rem;
|
|
94
107
|
}
|
|
95
108
|
.control-panel-container {
|
|
96
109
|
justify-content: end;
|
|
110
|
+
gap: calc(var(--novely-px) * 3);
|
|
97
111
|
width: 100%;
|
|
98
112
|
display: flex;
|
|
99
113
|
}
|
|
@@ -133,12 +147,14 @@
|
|
|
133
147
|
}
|
|
134
148
|
@media (max-aspect-ratio: .8) and ((min-aspect-ratio: .26) or (max-aspect-ratio: .1)) {
|
|
135
149
|
.control-panel {
|
|
150
|
+
bottom: .4rem;
|
|
136
151
|
left: .4rem;
|
|
137
152
|
}
|
|
138
153
|
}
|
|
139
154
|
|
|
140
155
|
/* src/styles/control-panel/button/button.css */
|
|
141
156
|
.control-panel__button {
|
|
157
|
+
--button-box-shadow-spread-radius: var(--novely-px);
|
|
142
158
|
border: .125rem solid var(--novely-button-border-color, #ffc7df);
|
|
143
159
|
justify-content: center;
|
|
144
160
|
align-items: center;
|
|
@@ -163,9 +179,9 @@
|
|
|
163
179
|
.control-panel__button__content {
|
|
164
180
|
clip: rect(0 0 0 0);
|
|
165
181
|
clip-path: inset(50%);
|
|
182
|
+
height: var(--novely-px);
|
|
166
183
|
white-space: nowrap;
|
|
167
|
-
width:
|
|
168
|
-
height: .063rem;
|
|
184
|
+
width: var(--novely-px);
|
|
169
185
|
position: absolute;
|
|
170
186
|
overflow: hidden;
|
|
171
187
|
}
|
|
@@ -228,16 +244,18 @@
|
|
|
228
244
|
/* src/styles/select/select/select.css */
|
|
229
245
|
.select__select {
|
|
230
246
|
background-color: var(--novely-select-background-color, #ffe9f3);
|
|
231
|
-
border: .25rem solid var(--novely-select-border-color, #ffc7df);
|
|
232
247
|
color: var(--novely-select-color, #000);
|
|
248
|
+
box-shadow: 0 0 0 var(--select-box-shadow-spread-radius, .25rem) var(--novely-select-border-color, #ffc7df);
|
|
249
|
+
margin: calc(var(--select-box-shadow-spread-radius, .25rem) + .4rem) var(--select-box-shadow-spread-radius, .25rem);
|
|
250
|
+
border: none;
|
|
251
|
+
border-radius: .25rem;
|
|
233
252
|
max-width: 100%;
|
|
234
|
-
margin: .4rem 0;
|
|
235
253
|
padding: .4rem;
|
|
236
|
-
font-size:
|
|
254
|
+
font-size: 1rem;
|
|
237
255
|
}
|
|
238
256
|
@media (max-aspect-ratio: .8) {
|
|
239
257
|
.select__select {
|
|
240
|
-
min-width: 70
|
|
258
|
+
min-width: calc(70% - var(--select-box-shadow-spread-radius, .25rem) * 2);
|
|
241
259
|
}
|
|
242
260
|
}
|
|
243
261
|
@media (max-aspect-ratio: .26) {
|
|
@@ -251,8 +269,16 @@
|
|
|
251
269
|
background: var(--novely-select-label-background, #ffe9f3);
|
|
252
270
|
color: var(--novely-select-color, #000);
|
|
253
271
|
border-radius: .25rem;
|
|
272
|
+
align-items: center;
|
|
273
|
+
gap: .25rem;
|
|
254
274
|
padding: .25rem .5rem;
|
|
255
|
-
font-size:
|
|
275
|
+
font-size: 1rem;
|
|
276
|
+
display: flex;
|
|
277
|
+
}
|
|
278
|
+
.select__label__icon {
|
|
279
|
+
justify-content: center;
|
|
280
|
+
align-items: center;
|
|
281
|
+
display: flex;
|
|
256
282
|
}
|
|
257
283
|
@media (max-aspect-ratio: .8) {
|
|
258
284
|
.select__label {
|
|
@@ -280,8 +306,16 @@
|
|
|
280
306
|
background: var(--novely-range-label-background, #ffe9f3);
|
|
281
307
|
color: var(--novely-range-color, #000);
|
|
282
308
|
border-radius: .25rem;
|
|
309
|
+
align-items: center;
|
|
310
|
+
gap: .25rem;
|
|
283
311
|
padding: .25rem .5rem;
|
|
284
312
|
font-size: 1.02rem;
|
|
313
|
+
display: flex;
|
|
314
|
+
}
|
|
315
|
+
.range__label__icon {
|
|
316
|
+
justify-content: center;
|
|
317
|
+
align-items: center;
|
|
318
|
+
display: flex;
|
|
285
319
|
}
|
|
286
320
|
@media (max-aspect-ratio: .8) {
|
|
287
321
|
.range__label {
|
|
@@ -382,7 +416,7 @@
|
|
|
382
416
|
color: var(--novely-dialog-color, #fff);
|
|
383
417
|
border: var(--novely-dialog-border-width, .18rem) solid var(--novely-dialog-border-color, #fff);
|
|
384
418
|
border-radius: var(--novely-dialog-border-radius, .875rem);
|
|
385
|
-
box-shadow:
|
|
419
|
+
box-shadow: var(--novely-px) var(--novely-px) .25rem var(--novely-dialog-box-shadow-color, #00000072);
|
|
386
420
|
background-image: var(--novely-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
|
|
387
421
|
background-color: var(--novely-dialog-background-color, #f092b4d8);
|
|
388
422
|
background-position: var(--novely-dialog-background-position, 0 0, 3.125rem 3.125rem);
|
|
@@ -405,24 +439,24 @@
|
|
|
405
439
|
display: block;
|
|
406
440
|
}
|
|
407
441
|
.action-dialog-name {
|
|
442
|
+
box-shadow: var(--novely-px) var(--novely-px) .18rem #00000042;
|
|
408
443
|
background: #fff;
|
|
409
444
|
border-radius: .438rem .438rem 0 0;
|
|
410
445
|
width: fit-content;
|
|
411
446
|
margin-left: 5vmin;
|
|
412
447
|
font-size: 1.4375rem;
|
|
413
448
|
line-height: 1.2;
|
|
414
|
-
box-shadow: .063rem .063rem .18rem #00000042;
|
|
415
449
|
}
|
|
416
450
|
.action-dialog-content {
|
|
417
451
|
word-wrap: break-word;
|
|
418
452
|
word-break: break-word;
|
|
419
453
|
text-shadow:
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
454
|
+
var(--novely-px) var(--novely-px) 0 black,
|
|
455
|
+
calc(var(--novely-px) * -1) calc(var(--novely-px) * -1) 0 black,
|
|
456
|
+
var(--novely-px) calc(var(--novely-px) * -1) 0 black,
|
|
457
|
+
calc(var(--novely-px) * -1) var(--novely-px) 0 black;
|
|
424
458
|
width: 100%;
|
|
425
|
-
font-size:
|
|
459
|
+
font-size: 2rem;
|
|
426
460
|
line-height: 1.2;
|
|
427
461
|
}
|
|
428
462
|
.action-dialog-content--disable-shadow {
|
|
@@ -441,11 +475,9 @@
|
|
|
441
475
|
transform: unset;
|
|
442
476
|
width: 100%;
|
|
443
477
|
}
|
|
444
|
-
.action-dialog-name
|
|
445
|
-
font-size: 1.02rem;
|
|
446
|
-
}
|
|
478
|
+
.action-dialog-name,
|
|
447
479
|
.action-dialog-content {
|
|
448
|
-
font-size: 1.
|
|
480
|
+
font-size: 1.2rem;
|
|
449
481
|
}
|
|
450
482
|
.action-dialog-container {
|
|
451
483
|
border-radius: var(--novely-dialog-border-radius, .875rem .875rem 0 0);
|
|
@@ -465,7 +497,7 @@
|
|
|
465
497
|
@media only screen and (min-aspect-ratio: .8) and (pointer: coarse) {
|
|
466
498
|
.action-dialog-content {
|
|
467
499
|
text-shadow: none;
|
|
468
|
-
font-size: 1.
|
|
500
|
+
font-size: 1.2rem;
|
|
469
501
|
line-height: 1.15;
|
|
470
502
|
}
|
|
471
503
|
}
|
|
@@ -556,7 +588,7 @@
|
|
|
556
588
|
color: var(--novely-input-dialog-color, #fff);
|
|
557
589
|
border: var(--novely-input-dialog-border-width, .18rem) solid var(--novely-input-dialog-border-color, #fff);
|
|
558
590
|
border-radius: var(--novely-input-dialog-border-radius, .875rem);
|
|
559
|
-
box-shadow:
|
|
591
|
+
box-shadow: var(--novely-px) var(--novely-px) .25rem var(--novely-input-dialog-box-shadow-color, #00000072);
|
|
560
592
|
background-image: var(--novely-input-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
|
|
561
593
|
background-color: var(--novely-input-dialog-background-color, #f092b4d8);
|
|
562
594
|
background-position: var(--novely-input-dialog-background-position, 0 0, 3.125rem 3.125rem);
|
|
@@ -579,7 +611,7 @@
|
|
|
579
611
|
color: var(--novely-exit-dialog-color, #fff);
|
|
580
612
|
border: var(--novely-exit-dialog-border-width, .18rem) solid var(--novely-exit-dialog-border-color, #fff);
|
|
581
613
|
border-radius: var(--novely-exit-dialog-border-radius, .875rem);
|
|
582
|
-
box-shadow:
|
|
614
|
+
box-shadow: var(--novely-px) var(--novely-px) .25rem var(--novely-exit-dialog-box-shadow-color, #00000072);
|
|
583
615
|
background-image: var(--novely-exit-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
|
|
584
616
|
background-color: var(--novely-exit-dialog-background-color, #f092b4d8);
|
|
585
617
|
background-position: var(--novely-exit-dialog-background-position, 0 0, 3.125rem 3.125rem);
|
|
@@ -602,17 +634,25 @@
|
|
|
602
634
|
/* src/styles/main-menu/main-menu.css */
|
|
603
635
|
.main-menu {
|
|
604
636
|
background-image: var(--novely-main-menu-background-image);
|
|
605
|
-
align-content: center;
|
|
606
637
|
padding: 0 1rem;
|
|
607
|
-
display:
|
|
638
|
+
display: flex;
|
|
608
639
|
overflow: hidden;
|
|
609
640
|
}
|
|
610
|
-
@media (
|
|
641
|
+
@media (max-aspect-ratio: .8) {
|
|
611
642
|
.main-menu {
|
|
612
|
-
|
|
643
|
+
flex-direction: column;
|
|
644
|
+
justify-content: center;
|
|
613
645
|
}
|
|
614
646
|
}
|
|
615
647
|
|
|
648
|
+
/* src/styles/main-menu/controls/controls.css */
|
|
649
|
+
.main-menu__controls {
|
|
650
|
+
flex-direction: column;
|
|
651
|
+
justify-content: center;
|
|
652
|
+
align-items: center;
|
|
653
|
+
display: flex;
|
|
654
|
+
}
|
|
655
|
+
|
|
616
656
|
/* src/styles/main-menu/button/button.css */
|
|
617
657
|
.main-menu__button {
|
|
618
658
|
grid-template-rows: 1fr;
|
|
@@ -625,6 +665,11 @@
|
|
|
625
665
|
.main-menu__button__text {
|
|
626
666
|
align-self: center;
|
|
627
667
|
}
|
|
668
|
+
@media (max-aspect-ratio: .8) {
|
|
669
|
+
.main-menu__button {
|
|
670
|
+
min-width: 100%;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
628
673
|
@media (max-aspect-ratio: .26) {
|
|
629
674
|
.main-menu__button {
|
|
630
675
|
grid-template-columns: 1fr;
|
|
@@ -735,14 +780,17 @@
|
|
|
735
780
|
}
|
|
736
781
|
}
|
|
737
782
|
|
|
738
|
-
/* src/styles/settings/
|
|
739
|
-
.
|
|
783
|
+
/* src/styles/settings/controls/controls.css */
|
|
784
|
+
.settings__controls {
|
|
740
785
|
flex-flow: column wrap;
|
|
741
|
-
justify-content:
|
|
786
|
+
justify-content: flex-start;
|
|
742
787
|
align-items: center;
|
|
788
|
+
padding-top: 1rem;
|
|
743
789
|
display: flex;
|
|
744
790
|
}
|
|
745
|
-
|
|
791
|
+
|
|
792
|
+
/* src/styles/settings/options/options.css */
|
|
793
|
+
.settings__options {
|
|
746
794
|
grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
|
|
747
795
|
justify-content: center;
|
|
748
796
|
align-items: center;
|
|
@@ -750,7 +798,7 @@
|
|
|
750
798
|
display: grid;
|
|
751
799
|
}
|
|
752
800
|
@media (max-aspect-ratio: .8) {
|
|
753
|
-
.
|
|
801
|
+
.settings__options {
|
|
754
802
|
grid-template-columns: 1fr;
|
|
755
803
|
}
|
|
756
804
|
}
|
|
@@ -784,6 +832,11 @@
|
|
|
784
832
|
width: 100%;
|
|
785
833
|
touch-action: auto !important;
|
|
786
834
|
}
|
|
835
|
+
.saves__button-reset {
|
|
836
|
+
--button-box-shadow-spread-radius: .15rem;
|
|
837
|
+
border-radius: .4rem;
|
|
838
|
+
margin: 0;
|
|
839
|
+
}
|
|
787
840
|
@media (max-aspect-ratio: .8) {
|
|
788
841
|
.saves__button {
|
|
789
842
|
min-width: 80%;
|
|
@@ -851,12 +904,14 @@
|
|
|
851
904
|
align-items: center;
|
|
852
905
|
}
|
|
853
906
|
.saves__list-item {
|
|
907
|
+
--saves-list-iframe-border-radius: .4rem;
|
|
854
908
|
background-color: var(--novely-saves-list-item-background-color, #ffe9f3);
|
|
909
|
+
border-radius: calc(.4rem + var(--saves-list-iframe-border-radius));
|
|
855
910
|
flex-wrap: wrap;
|
|
856
911
|
align-self: flex-start;
|
|
857
912
|
gap: .375rem;
|
|
858
913
|
width: max(22vmin, 33% - 1rem);
|
|
859
|
-
padding: .
|
|
914
|
+
padding: .4rem;
|
|
860
915
|
display: flex;
|
|
861
916
|
}
|
|
862
917
|
.saves__list-item__description {
|
|
@@ -866,14 +921,30 @@
|
|
|
866
921
|
display: flex;
|
|
867
922
|
}
|
|
868
923
|
.saves__list-item__iframe {
|
|
869
|
-
|
|
924
|
+
border-radius: var(--saves-list-iframe-border-radius);
|
|
925
|
+
aspect-ratio: 8 / 5;
|
|
870
926
|
border: none;
|
|
871
927
|
width: 100%;
|
|
872
928
|
}
|
|
929
|
+
.saves__list-item__load {
|
|
930
|
+
width: 100%;
|
|
931
|
+
position: relative;
|
|
932
|
+
}
|
|
933
|
+
.saves__list-item__load:after {
|
|
934
|
+
content: "";
|
|
935
|
+
z-index: 2;
|
|
936
|
+
cursor: pointer;
|
|
937
|
+
position: absolute;
|
|
938
|
+
top: 0;
|
|
939
|
+
bottom: 0;
|
|
940
|
+
left: 0;
|
|
941
|
+
right: 0;
|
|
942
|
+
}
|
|
873
943
|
@media (max-aspect-ratio: .8) {
|
|
874
944
|
.saves__list {
|
|
875
|
-
grid-template-columns: 1fr;
|
|
876
945
|
height: 100%;
|
|
946
|
+
padding-left: .2rem;
|
|
947
|
+
padding-right: .2rem;
|
|
877
948
|
}
|
|
878
949
|
.saves__list-container {
|
|
879
950
|
margin-top: 1rem;
|
|
@@ -901,9 +972,12 @@
|
|
|
901
972
|
}
|
|
902
973
|
}
|
|
903
974
|
|
|
904
|
-
/* src/styles/saves/
|
|
975
|
+
/* src/styles/saves/controls/controls.css */
|
|
976
|
+
.saves__controls {
|
|
977
|
+
padding-top: 1rem;
|
|
978
|
+
}
|
|
905
979
|
@media (max-aspect-ratio: .8) {
|
|
906
|
-
.
|
|
980
|
+
.saves__controls {
|
|
907
981
|
flex-flow: column wrap;
|
|
908
982
|
justify-content: center;
|
|
909
983
|
align-items: center;
|