Skip to content

Commit 5f9ed12

Browse files
committed
Allow clicks to go through christmas lights, and improve contrast between score increase text and scorebox background in snow theme
1 parent 60ced10 commit 5f9ed12

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/render.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import feather from "feather-icons";
22
import { AnimationManager } from "./manager/animation";
33
import { GameBoard } from "./game";
4-
import type * as CSS from 'csstype';
4+
import type * as CSS from "csstype";
55

66
interface RenderBoardOptions {
77
theme?: string;
@@ -171,10 +171,7 @@ export type DialogOptions = {
171171
style?: CSS.Properties;
172172
};
173173

174-
export const renderDialog = (
175-
content: HTMLElement,
176-
options?: DialogOptions
177-
) => {
174+
export const renderDialog = (content: HTMLElement, options?: DialogOptions) => {
178175
// Close any currently existing dialogs
179176
const dialogElem = document.querySelector(".dialog");
180177
if (dialogElem) dialogElem.remove();

src/styles/themes/snow.css

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@
4949
.snow.tileset-christmas {
5050
--block-2-color: #d7ccc8;
5151
--block-4-color: #bcaaa4;
52-
--block-8-color: #A5D6A7;
53-
--block-16-color: #81C784;
54-
--block-32-color: #66BB6A;
55-
--block-64-color: #4CAF50;
56-
--block-128-color: #78A678;
57-
--block-256-color: #D86E6E;
58-
--block-512-color: #EF5350;
59-
--block-1024-color: #F44336;
60-
--block-2048-color: #E53935;
61-
--block-4096-color: #D32F2F;
62-
--block-8192-color: #B71C1C;
63-
--block-16384-color: #9C1B1B;
64-
--block-32768-color: #7F1616;
65-
--block-65536-color: #5F1010;
66-
--block-max-color: #5F1010;
52+
--block-8-color: #a5d6a7;
53+
--block-16-color: #81c784;
54+
--block-32-color: #66bb6a;
55+
--block-64-color: #4caf50;
56+
--block-128-color: #78a678;
57+
--block-256-color: #d86e6e;
58+
--block-512-color: #ef5350;
59+
--block-1024-color: #f44336;
60+
--block-2048-color: #e53935;
61+
--block-4096-color: #d32f2f;
62+
--block-8192-color: #b71c1c;
63+
--block-16384-color: #9c1b1b;
64+
--block-32768-color: #7f1616;
65+
--block-65536-color: #5f1010;
66+
--block-max-color: #5f1010;
6767

6868
--block-2-text-color: #2e1b0e;
6969
--block-4-text-color: #2e1b0e;
@@ -104,7 +104,7 @@ body.snow button.button > * {
104104

105105
body.snow .score-box,
106106
body.snow .highscore-box {
107-
background-color: #e0f7fa;
107+
background-color: #96dbee;
108108
}
109109

110110
body.snow .score-box > .score-label,
@@ -117,6 +117,10 @@ body.snow .highscore-box > .highscore {
117117
color: #1c313a;
118118
}
119119

120+
body.snow .score-box > span {
121+
color: #676917;
122+
}
123+
120124
.embedim-snow {
121125
pointer-events: none;
122126
}
@@ -136,6 +140,7 @@ body.snow .footer > .snow-theme-credits {
136140
/* Container Div */
137141
.christmas-lights-container {
138142
display: none;
143+
pointer-events: none;
139144
}
140145

141146
body.snow.tileset-christmas .christmas-lights-container {
@@ -158,7 +163,7 @@ body.snow.tileset-christmas .green-line {
158163
height: 20px;
159164
background: none;
160165
/* Green line */
161-
border-top: 3px solid #388E3C;
166+
border-top: 3px solid #388e3c;
162167
/* Curved effect */
163168
border-radius: 30px;
164169
/* Slight bend */

0 commit comments

Comments
 (0)