PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / trunk
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin vtrunk
1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 0.8.6 All 33 releases
desktop-mode / assets / css / game-inkfall.css

game-inkfall.css in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin trunk, at assets/css/game-inkfall.css

228 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Inkfall — game window styles.
3 *
4 * Scoped to `.inkfall`. The play area is a Pixi canvas painting a
5 * notebook page; the HUD and overlays are DOM layered above it.
6 */
7
8 .inkfall {
9 position: relative;
10 display: flex;
11 flex-direction: column;
12 height: 100%;
13 width: 100%;
14 background: #efe9da;
15 overflow: hidden;
16 }
17
18 .inkfall__hud {
19 display: flex;
20 align-items: center;
21 gap: 16px;
22 padding: 8px 14px;
23 background: rgba( 43, 58, 85, 0.92 );
24 color: #f7f3e8;
25 font-variant-numeric: tabular-nums;
26 font-size: 13px;
27 }
28
29 .inkfall__hud-score {
30 font-weight: 700;
31 }
32
33 .inkfall__hud-streak {
34 color: #ffd166;
35 font-weight: 700;
36 min-width: 2.5em;
37 }
38
39 .inkfall__hud-lives {
40 letter-spacing: 3px;
41 color: #e8a1a1;
42 }
43
44 .inkfall__hud-level {
45 color: #bcd4e6;
46 }
47
48 .inkfall__hud-ribbon {
49 padding: 2px 10px;
50 border-radius: 999px;
51 background: #8e44ad;
52 color: #fff;
53 font-weight: 600;
54 }
55
56 /* Always the HUD's last child — pinned to the far end. */
57 .inkfall__hud-sound {
58 margin-inline-start: auto;
59 padding: 2px 6px;
60 border: 0;
61 border-radius: 6px;
62 background: transparent;
63 font-size: 15px;
64 line-height: 1;
65 cursor: pointer;
66 }
67
68 .inkfall__hud-sound:hover,
69 .inkfall__hud-sound:focus-visible {
70 background: rgba( 247, 243, 232, 0.18 );
71 }
72
73 .inkfall__stage {
74 position: relative;
75 flex: 1;
76 min-height: 0;
77 }
78
79 .inkfall__canvas {
80 position: absolute;
81 inset: 0;
82 width: 100%;
83 height: 100%;
84 }
85
86 /* Focus anchor for keyboard capture — visually gone, still focusable. */
87 .inkfall__key-capture {
88 position: absolute;
89 width: 1px;
90 height: 1px;
91 opacity: 0;
92 border: 0;
93 padding: 0;
94 pointer-events: none;
95 }
96
97 .inkfall__overlay {
98 position: absolute;
99 inset: 0;
100 display: grid;
101 place-items: center;
102 background: rgba( 43, 58, 85, 0.55 );
103 cursor: pointer;
104 z-index: 5;
105 }
106
107 .inkfall__overlay[hidden] {
108 display: none;
109 }
110
111 .inkfall__overlay-message {
112 margin: 0;
113 padding: 14px 22px;
114 border-radius: 10px;
115 background: #f7f3e8;
116 color: #2b3a55;
117 font-size: 16px;
118 font-family: Georgia, "Times New Roman", serif;
119 box-shadow: 0 8px 30px rgba( 0, 0, 0, 0.25 );
120 }
121
122 .inkfall__over-panel {
123 display: flex;
124 flex-direction: column;
125 align-items: center;
126 gap: 10px;
127 padding: 24px 32px;
128 border-radius: 12px;
129 background: #f7f3e8;
130 color: #2b3a55;
131 font-family: Georgia, "Times New Roman", serif;
132 box-shadow: 0 8px 30px rgba( 0, 0, 0, 0.25 );
133 cursor: default;
134 text-align: center;
135 }
136
137 .inkfall__over-heading {
138 margin: 0;
139 font-size: 20px;
140 font-weight: 700;
141 }
142
143 .inkfall__over-stats {
144 margin: 0;
145 font-size: 14px;
146 }
147
148 .inkfall__over-save {
149 margin: 0;
150 font-size: 12px;
151 color: #6b7280;
152 }
153
154 .inkfall__over-actions {
155 display: flex;
156 gap: 10px;
157 margin-block-start: 6px;
158 }
159
160 .inkfall__button {
161 padding: 6px 16px;
162 border-radius: 8px;
163 border: 1px solid #2b3a55;
164 background: transparent;
165 color: #2b3a55;
166 font: inherit;
167 cursor: pointer;
168 }
169
170 .inkfall__button--primary {
171 background: #2b3a55;
172 color: #f7f3e8;
173 }
174
175 .inkfall__button:hover {
176 filter: brightness( 1.15 );
177 }
178
179 /* Pre-game difficulty menu. */
180
181 .inkfall__menu {
182 cursor: default;
183 }
184
185 .inkfall__menu-options {
186 display: flex;
187 gap: 12px;
188 margin-block-start: 4px;
189 }
190
191 .inkfall__menu-option {
192 display: flex;
193 flex-direction: column;
194 align-items: center;
195 gap: 6px;
196 min-width: 130px;
197 padding: 14px 16px;
198 border-radius: 10px;
199 border: 1px solid rgba( 43, 58, 85, 0.35 );
200 background: #fff;
201 color: #2b3a55;
202 font: inherit;
203 cursor: pointer;
204 transition: transform 0.12s ease, box-shadow 0.12s ease;
205 }
206
207 .inkfall__menu-option:hover,
208 .inkfall__menu-option:focus-visible {
209 transform: translateY( -2px );
210 box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.18 );
211 }
212
213 .inkfall__menu-option--current {
214 border-color: #2b3a55;
215 box-shadow: inset 0 0 0 1px #2b3a55;
216 }
217
218 .inkfall__menu-option-label {
219 font-size: 17px;
220 font-weight: 700;
221 }
222
223 .inkfall__menu-option-hint {
224 font-size: 12px;
225 color: #6b7280;
226 max-width: 150px;
227 }
228