Skip to content

Commit 71e6dd3

Browse files
committed
Update Mascot Jump Game UI
1 parent af17fe3 commit 71e6dd3

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

examples/mascot-jump-game/assets/style.css

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ SPDX-License-Identifier: MPL-2.0
1313
}
1414

1515
body {
16-
font-family: 'Consolas', 'Courier New', monospace;
17-
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
16+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; margin: 0;
17+
background: #DAE3E3;
1818
min-height: 100vh;
1919
display: flex;
2020
justify-content: center;
@@ -34,7 +34,7 @@ body {
3434
display: flex;
3535
justify-content: space-between;
3636
align-items: center;
37-
margin-bottom: 20px;
37+
margin-bottom: 40px;
3838
padding: 0 10px;
3939
}
4040

@@ -59,7 +59,6 @@ body {
5959
background: white;
6060
border-radius: 12px;
6161
padding: 20px;
62-
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
6362
position: relative;
6463
}
6564

@@ -109,13 +108,15 @@ body {
109108
font-weight: 500;
110109
opacity: 0.7;
111110
font-size: 20px;
111+
font-family: "Open Sans", monospace;
112112
}
113113

114114
.score-value,
115115
.high-score-value {
116116
font-weight: 700;
117117
font-variant-numeric: tabular-nums;
118118
letter-spacing: 2px;
119+
font-family: "Open Sans", monospace;
119120
}
120121

121122
.high-score-label {
@@ -180,6 +181,7 @@ body {
180181
background: #4caf50;
181182
color: white;
182183
animation: pulse 2s ease-out;
184+
display: none;
183185
}
184186

185187
.connection-status.disconnected {
@@ -238,40 +240,40 @@ body {
238240
.container {
239241
padding: 10px;
240242
}
241-
243+
242244
.header {
243245
margin-bottom: 15px;
244246
}
245-
247+
246248
.arduino-text {
247249
font-size: 24px;
248250
}
249-
251+
250252
.game-container {
251253
padding: 15px;
252254
}
253-
255+
254256
#gameCanvas {
255257
max-width: 100%;
256258
height: auto;
257259
}
258-
260+
259261
.game-info {
260262
flex-direction: column;
261263
gap: 15px;
262264
align-items: center;
263265
text-align: center;
264266
}
265-
267+
266268
.score-display {
267269
font-size: 20px;
268270
}
269-
271+
270272
.controls-info {
271273
flex-wrap: wrap;
272274
justify-content: center;
273275
}
274-
276+
275277
.connection-status {
276278
top: 10px;
277279
right: 10px;
@@ -284,25 +286,25 @@ body {
284286
.arduino-text {
285287
font-size: 20px;
286288
}
287-
289+
288290
.arduino-logo {
289291
height: 24px;
290292
}
291-
293+
292294
.score-display {
293295
font-size: 18px;
294296
gap: 10px;
295297
}
296-
298+
297299
.score-label,
298300
.high-score-label {
299301
font-size: 16px;
300302
}
301-
303+
302304
.controls-info {
303305
font-size: 12px;
304306
}
305-
307+
306308
.key-icon {
307309
padding: 2px 6px;
308310
font-size: 10px;
@@ -313,23 +315,23 @@ body {
313315
#gameCanvas {
314316
cursor: default;
315317
}
316-
318+
317319
#gameCanvas:hover {
318320
transform: none;
319321
}
320-
322+
321323
#gameCanvas:active {
322324
transform: scale(0.98);
323325
}
324-
326+
325327
.key-icon {
326328
display: none;
327329
}
328-
330+
329331
.control-item:first-child::before {
330332
content: "Tap to ";
331333
}
332-
334+
333335
.control-divider,
334336
.control-item:last-child {
335337
display: none;
@@ -340,11 +342,11 @@ body {
340342
body {
341343
background: white;
342344
}
343-
345+
344346
.connection-status {
345347
display: none;
346348
}
347-
349+
348350
.game-container {
349351
box-shadow: none;
350352
border: 1px solid #ddd;

0 commit comments

Comments
 (0)