File tree 4 files changed +42
-4
lines changed
4 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 40
40
</ div >
41
41
< div class ="score-wrap-box ">
42
42
< div class ="score-box ">
43
- < span class ="score-label "> Score: </ span >
43
+ < span class ="score-label "> Score</ span >
44
44
< span class ="score " id ="score "> </ span >
45
45
</ div >
46
46
< div class ="space "> </ div >
47
47
< div class ="highscore-box ">
48
- < span class ="score-label "> Highscore: </ span >
48
+ < span class ="score-label "> Best </ span >
49
49
< span class ="highscore " id ="highscore "> </ span >
50
50
</ div >
51
51
</ div >
Original file line number Diff line number Diff line change @@ -437,14 +437,20 @@ document.addEventListener("DOMContentLoaded", async () => {
437
437
} ) ;
438
438
}
439
439
const welcomeText = document . querySelector ( ".classic-welcome-text" ) as HTMLElement ;
440
+ const scoreLabel = document . querySelector ( ".score-box > .score-label" ) as HTMLElement ;
441
+ const highscoreLabel = document . querySelector ( ".highscore-box > .score-label" ) as HTMLElement ;
440
442
if ( selectedTheme === CLASSIC_THEME ) {
441
443
welcomeText . style . display = "block" ;
442
444
classicTimeout = setTimeout ( ( ) => {
443
445
welcomeText . style . display = "" ;
444
446
} , 5000 ) ;
447
+ scoreLabel . innerText = "Score:" ;
448
+ highscoreLabel . innerText = "Highscore:" ;
445
449
} else {
446
450
clearTimeout ( classicTimeout ) ;
447
451
welcomeText . style . display = "" ;
452
+ scoreLabel . innerText = "Score" ;
453
+ highscoreLabel . innerText = "Best" ;
448
454
}
449
455
} ;
450
456
Original file line number Diff line number Diff line change 47
47
48
48
.top-menu > .menu-options > .score-wrap-box {
49
49
display : flex;
50
- flex-direction : column;
51
- align-items : flex-end;
50
+ justify-content : flex-end;
52
51
}
53
52
54
53
.score-box {
55
54
position : relative;
56
55
}
56
+
57
+ body : not (.classic ) .score-box ,
58
+ body : not (.classic ) .highscore-box {
59
+ display : flex;
60
+ flex-direction : column;
61
+ justify-content : center;
62
+ align-items : center;
63
+ padding : 4px ;
64
+ min-width : 50px ;
65
+ background-color : lightgray;
66
+ }
67
+
68
+ body : not (.classic ) .score-box > .score-label ,
69
+ body : not (.classic ) .highscore-box > .score-label {
70
+ text-transform : uppercase;
71
+ font-weight : bold;
72
+ font-size : 12px ;
73
+ color : # 6b6b6b ;
74
+ }
75
+
76
+ body : not (.classic ) .score-wrap-box {
77
+ gap : 6px ;
78
+ }
Original file line number Diff line number Diff line change @@ -62,3 +62,13 @@ body.dark button.button > * {
62
62
color : # f2f2f2 ;
63
63
font-weight : bold;
64
64
}
65
+
66
+ body .dark .score-box ,
67
+ body .dark .highscore-box {
68
+ background-color : grey;
69
+ }
70
+
71
+ body .dark .score-box > .score-label ,
72
+ body .dark .highscore-box > .score-label {
73
+ color : white;
74
+ }
You can’t perform that action at this time.
0 commit comments