@textadventures/quest-viva-wasmplayer 6.0.0-beta.59 → 6.0.0-beta.61
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/WasmPlayer.runtimeconfig.json +1 -1
- package/_framework/Common.wasm +0 -0
- package/_framework/Engine.wasm +0 -0
- package/_framework/Legacy.wasm +0 -0
- package/_framework/Microsoft.CSharp.wasm +0 -0
- package/_framework/Microsoft.VisualBasic.Core.wasm +0 -0
- package/_framework/Microsoft.VisualBasic.wasm +0 -0
- package/_framework/Microsoft.Win32.Primitives.wasm +0 -0
- package/_framework/Microsoft.Win32.Registry.wasm +0 -0
- package/_framework/PlayerCore.wasm +0 -0
- package/_framework/System.AppContext.wasm +0 -0
- package/_framework/System.Buffers.wasm +0 -0
- package/_framework/System.Collections.Concurrent.wasm +0 -0
- package/_framework/System.Collections.Immutable.wasm +0 -0
- package/_framework/System.Collections.NonGeneric.wasm +0 -0
- package/_framework/System.Collections.Specialized.wasm +0 -0
- package/_framework/System.Collections.wasm +0 -0
- package/_framework/System.ComponentModel.Annotations.wasm +0 -0
- package/_framework/System.ComponentModel.DataAnnotations.wasm +0 -0
- package/_framework/System.ComponentModel.EventBasedAsync.wasm +0 -0
- package/_framework/System.ComponentModel.Primitives.wasm +0 -0
- package/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
- package/_framework/System.ComponentModel.wasm +0 -0
- package/_framework/System.Configuration.wasm +0 -0
- package/_framework/System.Console.wasm +0 -0
- package/_framework/System.Core.wasm +0 -0
- package/_framework/System.Data.Common.wasm +0 -0
- package/_framework/System.Data.DataSetExtensions.wasm +0 -0
- package/_framework/System.Data.wasm +0 -0
- package/_framework/System.Diagnostics.Contracts.wasm +0 -0
- package/_framework/System.Diagnostics.Debug.wasm +0 -0
- package/_framework/System.Diagnostics.DiagnosticSource.wasm +0 -0
- package/_framework/System.Diagnostics.FileVersionInfo.wasm +0 -0
- package/_framework/System.Diagnostics.Process.wasm +0 -0
- package/_framework/System.Diagnostics.StackTrace.wasm +0 -0
- package/_framework/System.Diagnostics.TextWriterTraceListener.wasm +0 -0
- package/_framework/System.Diagnostics.Tools.wasm +0 -0
- package/_framework/System.Diagnostics.TraceSource.wasm +0 -0
- package/_framework/System.Diagnostics.Tracing.wasm +0 -0
- package/_framework/System.Drawing.Primitives.wasm +0 -0
- package/_framework/System.Drawing.wasm +0 -0
- package/_framework/System.Dynamic.Runtime.wasm +0 -0
- package/_framework/System.Formats.Asn1.wasm +0 -0
- package/_framework/System.Formats.Tar.wasm +0 -0
- package/_framework/System.Globalization.Calendars.wasm +0 -0
- package/_framework/System.Globalization.Extensions.wasm +0 -0
- package/_framework/System.Globalization.wasm +0 -0
- package/_framework/System.IO.Compression.Brotli.wasm +0 -0
- package/_framework/System.IO.Compression.FileSystem.wasm +0 -0
- package/_framework/System.IO.Compression.ZipFile.wasm +0 -0
- package/_framework/System.IO.Compression.wasm +0 -0
- package/_framework/System.IO.FileSystem.AccessControl.wasm +0 -0
- package/_framework/System.IO.FileSystem.DriveInfo.wasm +0 -0
- package/_framework/System.IO.FileSystem.Primitives.wasm +0 -0
- package/_framework/System.IO.FileSystem.Watcher.wasm +0 -0
- package/_framework/System.IO.FileSystem.wasm +0 -0
- package/_framework/System.IO.IsolatedStorage.wasm +0 -0
- package/_framework/System.IO.MemoryMappedFiles.wasm +0 -0
- package/_framework/System.IO.Pipelines.wasm +0 -0
- package/_framework/System.IO.Pipes.AccessControl.wasm +0 -0
- package/_framework/System.IO.Pipes.wasm +0 -0
- package/_framework/System.IO.UnmanagedMemoryStream.wasm +0 -0
- package/_framework/System.IO.wasm +0 -0
- package/_framework/System.Linq.AsyncEnumerable.wasm +0 -0
- package/_framework/System.Linq.Expressions.wasm +0 -0
- package/_framework/System.Linq.Parallel.wasm +0 -0
- package/_framework/System.Linq.Queryable.wasm +0 -0
- package/_framework/System.Linq.wasm +0 -0
- package/_framework/System.Memory.wasm +0 -0
- package/_framework/System.Net.Http.Json.wasm +0 -0
- package/_framework/System.Net.Http.wasm +0 -0
- package/_framework/System.Net.HttpListener.wasm +0 -0
- package/_framework/System.Net.Mail.wasm +0 -0
- package/_framework/System.Net.NameResolution.wasm +0 -0
- package/_framework/System.Net.NetworkInformation.wasm +0 -0
- package/_framework/System.Net.Ping.wasm +0 -0
- package/_framework/System.Net.Primitives.wasm +0 -0
- package/_framework/System.Net.Quic.wasm +0 -0
- package/_framework/System.Net.Requests.wasm +0 -0
- package/_framework/System.Net.Security.wasm +0 -0
- package/_framework/System.Net.ServerSentEvents.wasm +0 -0
- package/_framework/System.Net.ServicePoint.wasm +0 -0
- package/_framework/System.Net.Sockets.wasm +0 -0
- package/_framework/System.Net.WebClient.wasm +0 -0
- package/_framework/System.Net.WebHeaderCollection.wasm +0 -0
- package/_framework/System.Net.WebProxy.wasm +0 -0
- package/_framework/System.Net.WebSockets.Client.wasm +0 -0
- package/_framework/System.Net.WebSockets.wasm +0 -0
- package/_framework/System.Net.wasm +0 -0
- package/_framework/System.Numerics.Vectors.wasm +0 -0
- package/_framework/System.Numerics.wasm +0 -0
- package/_framework/System.ObjectModel.wasm +0 -0
- package/_framework/System.Private.CoreLib.wasm +0 -0
- package/_framework/System.Private.DataContractSerialization.wasm +0 -0
- package/_framework/System.Private.Uri.wasm +0 -0
- package/_framework/System.Private.Xml.Linq.wasm +0 -0
- package/_framework/System.Private.Xml.wasm +0 -0
- package/_framework/System.Reflection.DispatchProxy.wasm +0 -0
- package/_framework/System.Reflection.Emit.ILGeneration.wasm +0 -0
- package/_framework/System.Reflection.Emit.Lightweight.wasm +0 -0
- package/_framework/System.Reflection.Emit.wasm +0 -0
- package/_framework/System.Reflection.Extensions.wasm +0 -0
- package/_framework/System.Reflection.Metadata.wasm +0 -0
- package/_framework/System.Reflection.Primitives.wasm +0 -0
- package/_framework/System.Reflection.TypeExtensions.wasm +0 -0
- package/_framework/System.Reflection.wasm +0 -0
- package/_framework/System.Resources.Reader.wasm +0 -0
- package/_framework/System.Resources.ResourceManager.wasm +0 -0
- package/_framework/System.Resources.Writer.wasm +0 -0
- package/_framework/System.Runtime.CompilerServices.Unsafe.wasm +0 -0
- package/_framework/System.Runtime.CompilerServices.VisualC.wasm +0 -0
- package/_framework/System.Runtime.Extensions.wasm +0 -0
- package/_framework/System.Runtime.Handles.wasm +0 -0
- package/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm +0 -0
- package/_framework/System.Runtime.InteropServices.wasm +0 -0
- package/_framework/System.Runtime.Intrinsics.wasm +0 -0
- package/_framework/System.Runtime.Loader.wasm +0 -0
- package/_framework/System.Runtime.Numerics.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Formatters.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Json.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Primitives.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Xml.wasm +0 -0
- package/_framework/System.Runtime.Serialization.wasm +0 -0
- package/_framework/System.Runtime.wasm +0 -0
- package/_framework/System.Security.AccessControl.wasm +0 -0
- package/_framework/System.Security.Claims.wasm +0 -0
- package/_framework/System.Security.Cryptography.Algorithms.wasm +0 -0
- package/_framework/System.Security.Cryptography.Cng.wasm +0 -0
- package/_framework/System.Security.Cryptography.Csp.wasm +0 -0
- package/_framework/System.Security.Cryptography.Encoding.wasm +0 -0
- package/_framework/System.Security.Cryptography.OpenSsl.wasm +0 -0
- package/_framework/System.Security.Cryptography.Primitives.wasm +0 -0
- package/_framework/System.Security.Cryptography.X509Certificates.wasm +0 -0
- package/_framework/System.Security.Cryptography.wasm +0 -0
- package/_framework/System.Security.Principal.Windows.wasm +0 -0
- package/_framework/System.Security.Principal.wasm +0 -0
- package/_framework/System.Security.SecureString.wasm +0 -0
- package/_framework/System.Security.wasm +0 -0
- package/_framework/System.ServiceModel.Web.wasm +0 -0
- package/_framework/System.ServiceProcess.wasm +0 -0
- package/_framework/System.Text.Encoding.CodePages.wasm +0 -0
- package/_framework/System.Text.Encoding.Extensions.wasm +0 -0
- package/_framework/System.Text.Encoding.wasm +0 -0
- package/_framework/System.Text.Encodings.Web.wasm +0 -0
- package/_framework/System.Text.Json.wasm +0 -0
- package/_framework/System.Text.RegularExpressions.wasm +0 -0
- package/_framework/System.Threading.AccessControl.wasm +0 -0
- package/_framework/System.Threading.Channels.wasm +0 -0
- package/_framework/System.Threading.Overlapped.wasm +0 -0
- package/_framework/System.Threading.Tasks.Dataflow.wasm +0 -0
- package/_framework/System.Threading.Tasks.Extensions.wasm +0 -0
- package/_framework/System.Threading.Tasks.Parallel.wasm +0 -0
- package/_framework/System.Threading.Tasks.wasm +0 -0
- package/_framework/System.Threading.Thread.wasm +0 -0
- package/_framework/System.Threading.ThreadPool.wasm +0 -0
- package/_framework/System.Threading.Timer.wasm +0 -0
- package/_framework/System.Threading.wasm +0 -0
- package/_framework/System.Transactions.Local.wasm +0 -0
- package/_framework/System.Transactions.wasm +0 -0
- package/_framework/System.ValueTuple.wasm +0 -0
- package/_framework/System.Web.HttpUtility.wasm +0 -0
- package/_framework/System.Web.wasm +0 -0
- package/_framework/System.Windows.wasm +0 -0
- package/_framework/System.Xml.Linq.wasm +0 -0
- package/_framework/System.Xml.ReaderWriter.wasm +0 -0
- package/_framework/System.Xml.Serialization.wasm +0 -0
- package/_framework/System.Xml.XDocument.wasm +0 -0
- package/_framework/System.Xml.XPath.XDocument.wasm +0 -0
- package/_framework/System.Xml.XPath.wasm +0 -0
- package/_framework/System.Xml.XmlDocument.wasm +0 -0
- package/_framework/System.Xml.XmlSerializer.wasm +0 -0
- package/_framework/System.Xml.wasm +0 -0
- package/_framework/System.wasm +0 -0
- package/_framework/WasmPlayer.wasm +0 -0
- package/_framework/WindowsBase.wasm +0 -0
- package/_framework/dotnet.boot.js +179 -179
- package/_framework/dotnet.js +1 -1
- package/_framework/dotnet.native.js +3 -3
- package/_framework/dotnet.native.wasm +0 -0
- package/_framework/dotnet.runtime.js +1 -1
- package/_framework/mscorlib.wasm +0 -0
- package/_framework/netstandard.wasm +0 -0
- package/export-manifest.json +1 -0
- package/grid.js +446 -446
- package/index.html +15 -15
- package/lib/jquery.multi-open-accordion-1.5.3.js +261 -261
- package/package.json +1 -1
- package/playercore.css +505 -505
- package/playercore.htm +212 -212
- package/playercore.js +2973 -2962
package/playercore.css
CHANGED
|
@@ -1,505 +1,505 @@
|
|
|
1
|
-
|
|
2
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
3
|
-
overflow-y: scroll;
|
|
4
|
-
background-attachment: fixed;
|
|
5
|
-
/* playercore.js explicitly recomputes and sets scroll position itself on
|
|
6
|
-
every relevant DOM change (new turn, picture frame resizing — see
|
|
7
|
-
scrollToTurnStart()/setPanelHeight() in playercore.js), including
|
|
8
|
-
content inserted above the current scroll position (the sticky
|
|
9
|
-
picture frame growing once its image loads). Chrome's default scroll
|
|
10
|
-
anchoring tries to do the same job automatically to avoid a visual
|
|
11
|
-
jump, but its guess and playercore.js's own (more informed) target
|
|
12
|
-
can disagree — and since anchoring applies *before* playercore.js's
|
|
13
|
-
own correction runs, its adjustment becomes the new "current scroll
|
|
14
|
-
position" that scrollToTurnStart()'s never-scroll-backward guard then
|
|
15
|
-
treats as intentional, silently defeating the real correction.
|
|
16
|
-
Disabling it leaves scroll positioning entirely to our own logic. */
|
|
17
|
-
overflow-anchor: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
html,
|
|
21
|
-
body {
|
|
22
|
-
margin: 0px;
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
a.cmdlink {
|
|
27
|
-
text-decoration: underline;
|
|
28
|
-
color: Blue;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
a.cmdlink.disabled {
|
|
33
|
-
text-decoration: inherit;
|
|
34
|
-
color: inherit !important;
|
|
35
|
-
cursor: inherit;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
div#gameBorder {
|
|
39
|
-
max-width: 950px;
|
|
40
|
-
margin-left: auto;
|
|
41
|
-
margin-right: auto;
|
|
42
|
-
border-left: 1px solid silver;
|
|
43
|
-
border-right: 1px solid silver;
|
|
44
|
-
margin-top: 0;
|
|
45
|
-
min-height: 100%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
div#gamePanel {
|
|
49
|
-
position: sticky;
|
|
50
|
-
top: 32px;
|
|
51
|
-
padding-top: 2px;
|
|
52
|
-
text-align: center;
|
|
53
|
-
display: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
div#gridPanel {
|
|
57
|
-
position: sticky;
|
|
58
|
-
top: 32px;
|
|
59
|
-
padding: 0;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
display: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
div#gameContent {
|
|
65
|
-
padding: 30px 20px 0px 20px;
|
|
66
|
-
min-height: 100%;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
div#gamePanes {
|
|
70
|
-
position: fixed;
|
|
71
|
-
float: right;
|
|
72
|
-
width: 216px;
|
|
73
|
-
top: 24px;
|
|
74
|
-
padding: 2px;
|
|
75
|
-
background: #F9F9FF;
|
|
76
|
-
min-height: 100%;
|
|
77
|
-
display: none;
|
|
78
|
-
left: 50%;
|
|
79
|
-
margin-left: 255px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
div#qv-status {
|
|
83
|
-
/* A border-box total (box-sizing below): 30px of bar plus
|
|
84
|
-
.ui-widget-header's 1px border top and bottom. */
|
|
85
|
-
height: 32px;
|
|
86
|
-
position: fixed;
|
|
87
|
-
top: 0px;
|
|
88
|
-
z-index: 100;
|
|
89
|
-
/* Anchored to the viewport rather than left to its static position inside
|
|
90
|
-
#gameBorder. It's position: fixed, so a plain "width: 100%" resolved
|
|
91
|
-
against the viewport while the bar still started at #gameBorder's 1px
|
|
92
|
-
left border - and with .ui-widget-header's own 1px borders sitting
|
|
93
|
-
outside a content-box width, the bar overran the window by 3px and
|
|
94
|
-
clipped its rightmost button on a phone. left/right/margin: auto centres
|
|
95
|
-
it on the viewport instead, which is where #gameBorder centres too, so
|
|
96
|
-
the wide layout is unchanged. */
|
|
97
|
-
left: 0;
|
|
98
|
-
right: 0;
|
|
99
|
-
width: auto;
|
|
100
|
-
/* A border-box total, matching #gameBorder's content width - see
|
|
101
|
-
setGameWidth() in playercore.js, which caps this at runtime. */
|
|
102
|
-
box-sizing: border-box;
|
|
103
|
-
max-width: 950px;
|
|
104
|
-
margin-left: auto;
|
|
105
|
-
margin-right: auto;
|
|
106
|
-
font-size: 14pt;
|
|
107
|
-
padding: 0;
|
|
108
|
-
display: none;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
div#location {
|
|
112
|
-
display: none;
|
|
113
|
-
padding-left: 4px;
|
|
114
|
-
padding-top: 4px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
div#controlButtons {
|
|
118
|
-
float: right;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.hiddenbutton {
|
|
122
|
-
display: none;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
#dialog {
|
|
126
|
-
display: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* showMenu() opens the menu dialog with width: "auto" so that long options
|
|
130
|
-
aren't clipped, so it's the options themselves that decide how wide the
|
|
131
|
-
dialog gets. Keep that within the window, keep a long caption wrapping
|
|
132
|
-
instead of stretching the dialog out on its own, and let the options list
|
|
133
|
-
shrink rather than overflow once the cap is reached. */
|
|
134
|
-
.ui-dialog {
|
|
135
|
-
max-width: 95vw;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
#dialogCaption {
|
|
139
|
-
max-width: 60ch;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
#dialogOptions {
|
|
143
|
-
min-width: 100%;
|
|
144
|
-
max-width: 100%;
|
|
145
|
-
box-sizing: border-box;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
#msgbox {
|
|
149
|
-
display: none;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.compassbutton {
|
|
153
|
-
margin-right: 0;
|
|
154
|
-
height: 35px;
|
|
155
|
-
width: 35px;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
#statusVars {
|
|
159
|
-
padding: 4px;
|
|
160
|
-
max-height: 140px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
#gamePanesFinished {
|
|
164
|
-
display: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
#cmdSave {
|
|
168
|
-
margin-top: 0px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
div#divOutput {
|
|
172
|
-
margin-top: 20px;
|
|
173
|
-
min-height: 100%;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
div#txtCommandDiv {
|
|
177
|
-
height: 40px;
|
|
178
|
-
display: none;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
div#txtCommandContainer {
|
|
182
|
-
display: flex;
|
|
183
|
-
flex-direction: row;
|
|
184
|
-
align-items: center;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
#txtCommand {
|
|
188
|
-
font-size: 20px;
|
|
189
|
-
vertical-align: bottom;
|
|
190
|
-
padding: 6px;
|
|
191
|
-
flex-grow: 1;
|
|
192
|
-
/* Reset the browser's native inset/bevel text-field chrome (most visible
|
|
193
|
-
as a chunky border in Safari, but present — just subtler — everywhere)
|
|
194
|
-
with a flat, single-tone border instead. */
|
|
195
|
-
-webkit-appearance: none;
|
|
196
|
-
appearance: none;
|
|
197
|
-
border: 1px solid #999;
|
|
198
|
-
border-radius: 3px;
|
|
199
|
-
outline: none;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
#txtCommand:focus {
|
|
203
|
-
border-color: #4a90d9;
|
|
204
|
-
box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.25);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
#txtCommandSpacer {
|
|
208
|
-
height: 10px;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
div#controlButtons .ui-button {
|
|
212
|
-
font-size: 10px !important;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.verbButtons {
|
|
216
|
-
text-align: center;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.verbButtons .ui-button {
|
|
220
|
-
font-size: 10px !important;
|
|
221
|
-
margin: 5px;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
#compassTable .ui-button {
|
|
225
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
226
|
-
font-size: 10px !important;
|
|
227
|
-
border: 2px solid #C5DBEC;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
#compassTable .ui-button-disabled {
|
|
231
|
-
border: 1px solid #C5DBEC;
|
|
232
|
-
background: inherit;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.ui-accordion .ui-accordion-content {
|
|
236
|
-
padding: 0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.ui-accordion-header {
|
|
240
|
-
font-size: 12px;
|
|
241
|
-
margin-top: 10px !important;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
h3 .ui-icon {
|
|
245
|
-
position: absolute;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
h3 .accordion-header-text {
|
|
249
|
-
padding-left: 1.8em;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
button.accordion-header-text {
|
|
253
|
-
display: block;
|
|
254
|
-
width: 100%;
|
|
255
|
-
text-align: left;
|
|
256
|
-
-webkit-appearance: none;
|
|
257
|
-
appearance: none;
|
|
258
|
-
border: none;
|
|
259
|
-
background: transparent;
|
|
260
|
-
font: inherit;
|
|
261
|
-
color: inherit;
|
|
262
|
-
cursor: pointer;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
#gamePanes .ui-widget {
|
|
266
|
-
font-size: 12px;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
#endWaitLink {
|
|
270
|
-
font-size: 16px;
|
|
271
|
-
font-weight: bold;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.ui-selecting {
|
|
275
|
-
background: #FECA40;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.ui-selected {
|
|
279
|
-
background: #F39814;
|
|
280
|
-
color: white;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.elementListWrapper {
|
|
284
|
-
max-height: 200px;
|
|
285
|
-
overflow-y: scroll;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.elementList {
|
|
289
|
-
list-style-type: none;
|
|
290
|
-
margin: 0;
|
|
291
|
-
padding: 0;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.elementList li {
|
|
295
|
-
padding: 3px;
|
|
296
|
-
cursor: default;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
div#gamePanel img {
|
|
300
|
-
max-width: 100%;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
div#divOutput img {
|
|
304
|
-
max-width: 100%;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
div.jjmenu {
|
|
308
|
-
font-size: 12px;
|
|
309
|
-
position: absolute;
|
|
310
|
-
background: #fffef0;
|
|
311
|
-
border-bottom: 2px solid gray;
|
|
312
|
-
border-right: 1px solid gray;
|
|
313
|
-
padding: 0px;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
div.jj_menu_item {
|
|
317
|
-
color: black;
|
|
318
|
-
border: 1px solid gray;
|
|
319
|
-
border-bottom: none;
|
|
320
|
-
background: white;
|
|
321
|
-
cursor: pointer;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
div.jj_menu_item span {
|
|
325
|
-
display: block;
|
|
326
|
-
padding: 4px;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
div.jj_menu_item_hover {
|
|
330
|
-
background: #e4e4e4;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
#cmdShowPanes {
|
|
334
|
-
display: none;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
#sidebar {
|
|
338
|
-
display: none;
|
|
339
|
-
position: fixed; /* fixed position to overlay content */
|
|
340
|
-
top: 32px;
|
|
341
|
-
right: 0;
|
|
342
|
-
width: 220px;
|
|
343
|
-
height: 100%;
|
|
344
|
-
/*background: #fff;*/
|
|
345
|
-
z-index: 1000;
|
|
346
|
-
overflow-y: auto;
|
|
347
|
-
/*box-shadow: -2px 0 5px rgba(0,0,0,0.5);*/
|
|
348
|
-
padding: 10px;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
#cmdShowPanes {
|
|
352
|
-
display: none;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
/* ---------------------------------------------------------------------------
|
|
356
|
-
Narrow-window (phone/tablet) sizing - see issue #2181.
|
|
357
|
-
|
|
358
|
-
doLayout() in playercore.js owns the single narrow/wide threshold (the
|
|
359
|
-
window is narrower than the game width, so the panes have collapsed behind
|
|
360
|
-
the hamburger button) and publishes it as body.qv-narrow. Keying these rules
|
|
361
|
-
off that class rather than a media query of their own keeps one source of
|
|
362
|
-
truth: setGameWidth() can move the threshold at runtime, which a media query
|
|
363
|
-
couldn't follow.
|
|
364
|
-
|
|
365
|
-
The sizes here target WCAG 2.2's 44x44 CSS px pointer target (2.5.5 Target
|
|
366
|
-
Size (Enhanced)) and lift chrome text to 16px, matching the 12pt default
|
|
367
|
-
body text rather than sitting well below it.
|
|
368
|
-
--------------------------------------------------------------------------- */
|
|
369
|
-
|
|
370
|
-
.qv-narrow {
|
|
371
|
-
--qv-sidebar-width: min(320px, 85vw);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/* The status bar is a fixed 32px when wide, which can't hold a 44px button.
|
|
375
|
-
updateStatusVisibility() measures whatever height this ends up being rather
|
|
376
|
-
than assuming, so #gamePanel/#gridPanel/#gamePanes stay directly below it. */
|
|
377
|
-
.qv-narrow div#qv-status {
|
|
378
|
-
height: auto;
|
|
379
|
-
min-height: 50px;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.qv-narrow div#controlButtons {
|
|
383
|
-
padding-top: 2px;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.qv-narrow div#controlButtons .ui-button {
|
|
387
|
-
font-size: 16px !important;
|
|
388
|
-
min-height: 44px;
|
|
389
|
-
min-width: 44px;
|
|
390
|
-
/* jQuery UI puts the padding on the inner .ui-button-text span, so the
|
|
391
|
-
label sits at the top of a min-height-stretched button unless the button
|
|
392
|
-
itself centres it. */
|
|
393
|
-
display: inline-flex;
|
|
394
|
-
align-items: center;
|
|
395
|
-
justify-content: center;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.qv-narrow div#location {
|
|
399
|
-
padding-top: 12px;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/* Side pane: 12px text in 15px rows, inside a 220px overlay.
|
|
403
|
-
|
|
404
|
-
The overlay is anchored between the status bar (updateStatusVisibility()
|
|
405
|
-
sets its top from the bar's measured height, so it can't end up underneath
|
|
406
|
-
it) and the bottom of the window. "height: 100%" would instead run the
|
|
407
|
-
overlay's bottom edge off the screen by however far down its top starts,
|
|
408
|
-
putting the end of a long pane out of reach. */
|
|
409
|
-
.qv-narrow #sidebar {
|
|
410
|
-
width: var(--qv-sidebar-width);
|
|
411
|
-
box-sizing: border-box;
|
|
412
|
-
height: auto;
|
|
413
|
-
bottom: 0;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* In the wide layout #gamePanes is a fixed, floated column positioned against
|
|
417
|
-
the viewport. Inside the narrow overlay it should simply be the overlay's
|
|
418
|
-
content: laying it out in flow is what lets #sidebar's own overflow-y scroll
|
|
419
|
-
it, which a fixed (out-of-flow) child left it unable to do - so a pane taller
|
|
420
|
-
than the screen had nothing to scroll and its lower half was unreachable.
|
|
421
|
-
float: none because a float would shrink-wrap instead of filling the width,
|
|
422
|
-
and min-height: 0 because a 100% of the overlay plus its padding is always
|
|
423
|
-
fractionally too tall, leaving the overlay permanently scrollable by a few
|
|
424
|
-
pixels. */
|
|
425
|
-
.qv-narrow div#gamePanes {
|
|
426
|
-
position: static;
|
|
427
|
-
float: none;
|
|
428
|
-
width: auto;
|
|
429
|
-
min-height: 0;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.qv-narrow #gamePanes .ui-widget {
|
|
433
|
-
font-size: 16px;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.qv-narrow .ui-accordion-header {
|
|
437
|
-
font-size: 16px;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.qv-narrow button.accordion-header-text {
|
|
441
|
-
min-height: 44px;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.qv-narrow .elementList li {
|
|
445
|
-
display: flex;
|
|
446
|
-
align-items: center;
|
|
447
|
-
min-height: 44px;
|
|
448
|
-
padding: 0 6px;
|
|
449
|
-
box-sizing: border-box;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/* Six 44px rows rather than the ten 15px ones the 200px cap used to hold. */
|
|
453
|
-
.qv-narrow .elementListWrapper {
|
|
454
|
-
max-height: 264px;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
/* The multi-open accordion's expand/collapse arrow is a bare .ui-icon, not the
|
|
458
|
-
.ui-accordion-header-icon that jQuery UI's own centring rule targets, so it
|
|
459
|
-
keeps its static position at the top-left of the header's padding box - which
|
|
460
|
-
left it stranded against the top of a header now 44px tall. Centre it on the
|
|
461
|
-
header and scale the 16px sprite up to match the rest of the touch chrome
|
|
462
|
-
(transform rather than background-size, so the sprite's per-icon background
|
|
463
|
-
position doesn't have to be recomputed). */
|
|
464
|
-
.qv-narrow .ui-accordion-header > .ui-icon {
|
|
465
|
-
top: 50%;
|
|
466
|
-
margin-top: -8px;
|
|
467
|
-
transform: scale(1.5);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/* The compass lives in the same pane, and its buttons are 35px. */
|
|
471
|
-
.qv-narrow .compassbutton {
|
|
472
|
-
height: 44px;
|
|
473
|
-
width: 44px;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
/* playercore.js pins the direction icon at an inline left: 0.8em, which centres
|
|
477
|
-
it in a 35px button but not a 44px one - hand centring back to jQuery UI's
|
|
478
|
-
own rule for it. */
|
|
479
|
-
.qv-narrow .compassbutton span.ui-icon {
|
|
480
|
-
left: 50% !important;
|
|
481
|
-
margin-left: -8px;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.qv-narrow #compassTable .ui-button {
|
|
485
|
-
font-size: 14px !important;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.qv-narrow .verbButtons .ui-button {
|
|
489
|
-
font-size: 14px !important;
|
|
490
|
-
min-height: 44px;
|
|
491
|
-
display: inline-flex;
|
|
492
|
-
align-items: center;
|
|
493
|
-
justify-content: center;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/* Hyperlink pop-up menu. The font size itself is the game's to choose (see
|
|
497
|
-
SetMenuFontSize in playercore.js, which applies a floor here rather than
|
|
498
|
-
overriding it outright), so only the row height is set from CSS. */
|
|
499
|
-
.qv-narrow div.jj_menu_item span {
|
|
500
|
-
display: flex;
|
|
501
|
-
align-items: center;
|
|
502
|
-
min-height: 44px;
|
|
503
|
-
padding: 4px 10px;
|
|
504
|
-
box-sizing: border-box;
|
|
505
|
-
}
|
|
1
|
+
body {
|
|
2
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
3
|
+
overflow-y: scroll;
|
|
4
|
+
background-attachment: fixed;
|
|
5
|
+
/* playercore.js explicitly recomputes and sets scroll position itself on
|
|
6
|
+
every relevant DOM change (new turn, picture frame resizing — see
|
|
7
|
+
scrollToTurnStart()/setPanelHeight() in playercore.js), including
|
|
8
|
+
content inserted above the current scroll position (the sticky
|
|
9
|
+
picture frame growing once its image loads). Chrome's default scroll
|
|
10
|
+
anchoring tries to do the same job automatically to avoid a visual
|
|
11
|
+
jump, but its guess and playercore.js's own (more informed) target
|
|
12
|
+
can disagree — and since anchoring applies *before* playercore.js's
|
|
13
|
+
own correction runs, its adjustment becomes the new "current scroll
|
|
14
|
+
position" that scrollToTurnStart()'s never-scroll-backward guard then
|
|
15
|
+
treats as intentional, silently defeating the real correction.
|
|
16
|
+
Disabling it leaves scroll positioning entirely to our own logic. */
|
|
17
|
+
overflow-anchor: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
html,
|
|
21
|
+
body {
|
|
22
|
+
margin: 0px;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
a.cmdlink {
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
color: Blue;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
a.cmdlink.disabled {
|
|
33
|
+
text-decoration: inherit;
|
|
34
|
+
color: inherit !important;
|
|
35
|
+
cursor: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
div#gameBorder {
|
|
39
|
+
max-width: 950px;
|
|
40
|
+
margin-left: auto;
|
|
41
|
+
margin-right: auto;
|
|
42
|
+
border-left: 1px solid silver;
|
|
43
|
+
border-right: 1px solid silver;
|
|
44
|
+
margin-top: 0;
|
|
45
|
+
min-height: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
div#gamePanel {
|
|
49
|
+
position: sticky;
|
|
50
|
+
top: 32px;
|
|
51
|
+
padding-top: 2px;
|
|
52
|
+
text-align: center;
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div#gridPanel {
|
|
57
|
+
position: sticky;
|
|
58
|
+
top: 32px;
|
|
59
|
+
padding: 0;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
div#gameContent {
|
|
65
|
+
padding: 30px 20px 0px 20px;
|
|
66
|
+
min-height: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
div#gamePanes {
|
|
70
|
+
position: fixed;
|
|
71
|
+
float: right;
|
|
72
|
+
width: 216px;
|
|
73
|
+
top: 24px;
|
|
74
|
+
padding: 2px;
|
|
75
|
+
background: #F9F9FF;
|
|
76
|
+
min-height: 100%;
|
|
77
|
+
display: none;
|
|
78
|
+
left: 50%;
|
|
79
|
+
margin-left: 255px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
div#qv-status {
|
|
83
|
+
/* A border-box total (box-sizing below): 30px of bar plus
|
|
84
|
+
.ui-widget-header's 1px border top and bottom. */
|
|
85
|
+
height: 32px;
|
|
86
|
+
position: fixed;
|
|
87
|
+
top: 0px;
|
|
88
|
+
z-index: 100;
|
|
89
|
+
/* Anchored to the viewport rather than left to its static position inside
|
|
90
|
+
#gameBorder. It's position: fixed, so a plain "width: 100%" resolved
|
|
91
|
+
against the viewport while the bar still started at #gameBorder's 1px
|
|
92
|
+
left border - and with .ui-widget-header's own 1px borders sitting
|
|
93
|
+
outside a content-box width, the bar overran the window by 3px and
|
|
94
|
+
clipped its rightmost button on a phone. left/right/margin: auto centres
|
|
95
|
+
it on the viewport instead, which is where #gameBorder centres too, so
|
|
96
|
+
the wide layout is unchanged. */
|
|
97
|
+
left: 0;
|
|
98
|
+
right: 0;
|
|
99
|
+
width: auto;
|
|
100
|
+
/* A border-box total, matching #gameBorder's content width - see
|
|
101
|
+
setGameWidth() in playercore.js, which caps this at runtime. */
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
max-width: 950px;
|
|
104
|
+
margin-left: auto;
|
|
105
|
+
margin-right: auto;
|
|
106
|
+
font-size: 14pt;
|
|
107
|
+
padding: 0;
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
div#location {
|
|
112
|
+
display: none;
|
|
113
|
+
padding-left: 4px;
|
|
114
|
+
padding-top: 4px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
div#controlButtons {
|
|
118
|
+
float: right;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.hiddenbutton {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
#dialog {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* showMenu() opens the menu dialog with width: "auto" so that long options
|
|
130
|
+
aren't clipped, so it's the options themselves that decide how wide the
|
|
131
|
+
dialog gets. Keep that within the window, keep a long caption wrapping
|
|
132
|
+
instead of stretching the dialog out on its own, and let the options list
|
|
133
|
+
shrink rather than overflow once the cap is reached. */
|
|
134
|
+
.ui-dialog {
|
|
135
|
+
max-width: 95vw;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#dialogCaption {
|
|
139
|
+
max-width: 60ch;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#dialogOptions {
|
|
143
|
+
min-width: 100%;
|
|
144
|
+
max-width: 100%;
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#msgbox {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.compassbutton {
|
|
153
|
+
margin-right: 0;
|
|
154
|
+
height: 35px;
|
|
155
|
+
width: 35px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
#statusVars {
|
|
159
|
+
padding: 4px;
|
|
160
|
+
max-height: 140px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
#gamePanesFinished {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
#cmdSave {
|
|
168
|
+
margin-top: 0px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
div#divOutput {
|
|
172
|
+
margin-top: 20px;
|
|
173
|
+
min-height: 100%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
div#txtCommandDiv {
|
|
177
|
+
height: 40px;
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
div#txtCommandContainer {
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: row;
|
|
184
|
+
align-items: center;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
#txtCommand {
|
|
188
|
+
font-size: 20px;
|
|
189
|
+
vertical-align: bottom;
|
|
190
|
+
padding: 6px;
|
|
191
|
+
flex-grow: 1;
|
|
192
|
+
/* Reset the browser's native inset/bevel text-field chrome (most visible
|
|
193
|
+
as a chunky border in Safari, but present — just subtler — everywhere)
|
|
194
|
+
with a flat, single-tone border instead. */
|
|
195
|
+
-webkit-appearance: none;
|
|
196
|
+
appearance: none;
|
|
197
|
+
border: 1px solid #999;
|
|
198
|
+
border-radius: 3px;
|
|
199
|
+
outline: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
#txtCommand:focus {
|
|
203
|
+
border-color: #4a90d9;
|
|
204
|
+
box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.25);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
#txtCommandSpacer {
|
|
208
|
+
height: 10px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
div#controlButtons .ui-button {
|
|
212
|
+
font-size: 10px !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.verbButtons {
|
|
216
|
+
text-align: center;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.verbButtons .ui-button {
|
|
220
|
+
font-size: 10px !important;
|
|
221
|
+
margin: 5px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
#compassTable .ui-button {
|
|
225
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
226
|
+
font-size: 10px !important;
|
|
227
|
+
border: 2px solid #C5DBEC;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
#compassTable .ui-button-disabled {
|
|
231
|
+
border: 1px solid #C5DBEC;
|
|
232
|
+
background: inherit;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.ui-accordion .ui-accordion-content {
|
|
236
|
+
padding: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.ui-accordion-header {
|
|
240
|
+
font-size: 12px;
|
|
241
|
+
margin-top: 10px !important;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
h3 .ui-icon {
|
|
245
|
+
position: absolute;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
h3 .accordion-header-text {
|
|
249
|
+
padding-left: 1.8em;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
button.accordion-header-text {
|
|
253
|
+
display: block;
|
|
254
|
+
width: 100%;
|
|
255
|
+
text-align: left;
|
|
256
|
+
-webkit-appearance: none;
|
|
257
|
+
appearance: none;
|
|
258
|
+
border: none;
|
|
259
|
+
background: transparent;
|
|
260
|
+
font: inherit;
|
|
261
|
+
color: inherit;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
#gamePanes .ui-widget {
|
|
266
|
+
font-size: 12px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
#endWaitLink {
|
|
270
|
+
font-size: 16px;
|
|
271
|
+
font-weight: bold;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ui-selecting {
|
|
275
|
+
background: #FECA40;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ui-selected {
|
|
279
|
+
background: #F39814;
|
|
280
|
+
color: white;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.elementListWrapper {
|
|
284
|
+
max-height: 200px;
|
|
285
|
+
overflow-y: scroll;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.elementList {
|
|
289
|
+
list-style-type: none;
|
|
290
|
+
margin: 0;
|
|
291
|
+
padding: 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.elementList li {
|
|
295
|
+
padding: 3px;
|
|
296
|
+
cursor: default;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
div#gamePanel img {
|
|
300
|
+
max-width: 100%;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
div#divOutput img {
|
|
304
|
+
max-width: 100%;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
div.jjmenu {
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
position: absolute;
|
|
310
|
+
background: #fffef0;
|
|
311
|
+
border-bottom: 2px solid gray;
|
|
312
|
+
border-right: 1px solid gray;
|
|
313
|
+
padding: 0px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
div.jj_menu_item {
|
|
317
|
+
color: black;
|
|
318
|
+
border: 1px solid gray;
|
|
319
|
+
border-bottom: none;
|
|
320
|
+
background: white;
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
div.jj_menu_item span {
|
|
325
|
+
display: block;
|
|
326
|
+
padding: 4px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
div.jj_menu_item_hover {
|
|
330
|
+
background: #e4e4e4;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
#cmdShowPanes {
|
|
334
|
+
display: none;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
#sidebar {
|
|
338
|
+
display: none;
|
|
339
|
+
position: fixed; /* fixed position to overlay content */
|
|
340
|
+
top: 32px;
|
|
341
|
+
right: 0;
|
|
342
|
+
width: 220px;
|
|
343
|
+
height: 100%;
|
|
344
|
+
/*background: #fff;*/
|
|
345
|
+
z-index: 1000;
|
|
346
|
+
overflow-y: auto;
|
|
347
|
+
/*box-shadow: -2px 0 5px rgba(0,0,0,0.5);*/
|
|
348
|
+
padding: 10px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
#cmdShowPanes {
|
|
352
|
+
display: none;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* ---------------------------------------------------------------------------
|
|
356
|
+
Narrow-window (phone/tablet) sizing - see issue #2181.
|
|
357
|
+
|
|
358
|
+
doLayout() in playercore.js owns the single narrow/wide threshold (the
|
|
359
|
+
window is narrower than the game width, so the panes have collapsed behind
|
|
360
|
+
the hamburger button) and publishes it as body.qv-narrow. Keying these rules
|
|
361
|
+
off that class rather than a media query of their own keeps one source of
|
|
362
|
+
truth: setGameWidth() can move the threshold at runtime, which a media query
|
|
363
|
+
couldn't follow.
|
|
364
|
+
|
|
365
|
+
The sizes here target WCAG 2.2's 44x44 CSS px pointer target (2.5.5 Target
|
|
366
|
+
Size (Enhanced)) and lift chrome text to 16px, matching the 12pt default
|
|
367
|
+
body text rather than sitting well below it.
|
|
368
|
+
--------------------------------------------------------------------------- */
|
|
369
|
+
|
|
370
|
+
.qv-narrow {
|
|
371
|
+
--qv-sidebar-width: min(320px, 85vw);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* The status bar is a fixed 32px when wide, which can't hold a 44px button.
|
|
375
|
+
updateStatusVisibility() measures whatever height this ends up being rather
|
|
376
|
+
than assuming, so #gamePanel/#gridPanel/#gamePanes stay directly below it. */
|
|
377
|
+
.qv-narrow div#qv-status {
|
|
378
|
+
height: auto;
|
|
379
|
+
min-height: 50px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.qv-narrow div#controlButtons {
|
|
383
|
+
padding-top: 2px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.qv-narrow div#controlButtons .ui-button {
|
|
387
|
+
font-size: 16px !important;
|
|
388
|
+
min-height: 44px;
|
|
389
|
+
min-width: 44px;
|
|
390
|
+
/* jQuery UI puts the padding on the inner .ui-button-text span, so the
|
|
391
|
+
label sits at the top of a min-height-stretched button unless the button
|
|
392
|
+
itself centres it. */
|
|
393
|
+
display: inline-flex;
|
|
394
|
+
align-items: center;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.qv-narrow div#location {
|
|
399
|
+
padding-top: 12px;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Side pane: 12px text in 15px rows, inside a 220px overlay.
|
|
403
|
+
|
|
404
|
+
The overlay is anchored between the status bar (updateStatusVisibility()
|
|
405
|
+
sets its top from the bar's measured height, so it can't end up underneath
|
|
406
|
+
it) and the bottom of the window. "height: 100%" would instead run the
|
|
407
|
+
overlay's bottom edge off the screen by however far down its top starts,
|
|
408
|
+
putting the end of a long pane out of reach. */
|
|
409
|
+
.qv-narrow #sidebar {
|
|
410
|
+
width: var(--qv-sidebar-width);
|
|
411
|
+
box-sizing: border-box;
|
|
412
|
+
height: auto;
|
|
413
|
+
bottom: 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* In the wide layout #gamePanes is a fixed, floated column positioned against
|
|
417
|
+
the viewport. Inside the narrow overlay it should simply be the overlay's
|
|
418
|
+
content: laying it out in flow is what lets #sidebar's own overflow-y scroll
|
|
419
|
+
it, which a fixed (out-of-flow) child left it unable to do - so a pane taller
|
|
420
|
+
than the screen had nothing to scroll and its lower half was unreachable.
|
|
421
|
+
float: none because a float would shrink-wrap instead of filling the width,
|
|
422
|
+
and min-height: 0 because a 100% of the overlay plus its padding is always
|
|
423
|
+
fractionally too tall, leaving the overlay permanently scrollable by a few
|
|
424
|
+
pixels. */
|
|
425
|
+
.qv-narrow div#gamePanes {
|
|
426
|
+
position: static;
|
|
427
|
+
float: none;
|
|
428
|
+
width: auto;
|
|
429
|
+
min-height: 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.qv-narrow #gamePanes .ui-widget {
|
|
433
|
+
font-size: 16px;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.qv-narrow .ui-accordion-header {
|
|
437
|
+
font-size: 16px;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.qv-narrow button.accordion-header-text {
|
|
441
|
+
min-height: 44px;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.qv-narrow .elementList li {
|
|
445
|
+
display: flex;
|
|
446
|
+
align-items: center;
|
|
447
|
+
min-height: 44px;
|
|
448
|
+
padding: 0 6px;
|
|
449
|
+
box-sizing: border-box;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Six 44px rows rather than the ten 15px ones the 200px cap used to hold. */
|
|
453
|
+
.qv-narrow .elementListWrapper {
|
|
454
|
+
max-height: 264px;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* The multi-open accordion's expand/collapse arrow is a bare .ui-icon, not the
|
|
458
|
+
.ui-accordion-header-icon that jQuery UI's own centring rule targets, so it
|
|
459
|
+
keeps its static position at the top-left of the header's padding box - which
|
|
460
|
+
left it stranded against the top of a header now 44px tall. Centre it on the
|
|
461
|
+
header and scale the 16px sprite up to match the rest of the touch chrome
|
|
462
|
+
(transform rather than background-size, so the sprite's per-icon background
|
|
463
|
+
position doesn't have to be recomputed). */
|
|
464
|
+
.qv-narrow .ui-accordion-header > .ui-icon {
|
|
465
|
+
top: 50%;
|
|
466
|
+
margin-top: -8px;
|
|
467
|
+
transform: scale(1.5);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* The compass lives in the same pane, and its buttons are 35px. */
|
|
471
|
+
.qv-narrow .compassbutton {
|
|
472
|
+
height: 44px;
|
|
473
|
+
width: 44px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* playercore.js pins the direction icon at an inline left: 0.8em, which centres
|
|
477
|
+
it in a 35px button but not a 44px one - hand centring back to jQuery UI's
|
|
478
|
+
own rule for it. */
|
|
479
|
+
.qv-narrow .compassbutton span.ui-icon {
|
|
480
|
+
left: 50% !important;
|
|
481
|
+
margin-left: -8px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.qv-narrow #compassTable .ui-button {
|
|
485
|
+
font-size: 14px !important;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.qv-narrow .verbButtons .ui-button {
|
|
489
|
+
font-size: 14px !important;
|
|
490
|
+
min-height: 44px;
|
|
491
|
+
display: inline-flex;
|
|
492
|
+
align-items: center;
|
|
493
|
+
justify-content: center;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/* Hyperlink pop-up menu. The font size itself is the game's to choose (see
|
|
497
|
+
SetMenuFontSize in playercore.js, which applies a floor here rather than
|
|
498
|
+
overriding it outright), so only the row height is set from CSS. */
|
|
499
|
+
.qv-narrow div.jj_menu_item span {
|
|
500
|
+
display: flex;
|
|
501
|
+
align-items: center;
|
|
502
|
+
min-height: 44px;
|
|
503
|
+
padding: 4px 10px;
|
|
504
|
+
box-sizing: border-box;
|
|
505
|
+
}
|