Skip to content

Commit bbe3488

Browse files
committed
Allow the game board in Snow theme to be see-through
Also moved 2048Clone theme's back layer colour to the back layer CSS variable, since there's already a CSS rule using that and it doesn't need to be overridden.
1 parent ebeb180 commit bbe3488

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Number of moves stat, shown in game over screen and score text
1313

14+
### Changed
15+
16+
- Allow the game board in Snow theme to be see-through
17+
1418
## [1.0.2] - 2024-12-20
1519

1620
### Fixed

src/styles/themes/classic.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
--standard-block-color: rgb(0, 0, 0, 0);
1010

11+
--back-layer-color: rgba(0, 0, 0, 0);
12+
1113
--text-font-family: "Comic Sans MS", "Comic Neue", sans-serif;
1214

1315
--share-button-background-color: #00d600;
@@ -198,7 +200,6 @@ body.classic .top-menu > .classic-logo {
198200
}
199201

200202
body.classic .back-rows {
201-
background-color: rgba(0, 0, 0, 0);
202203
border: 2px solid black;
203204
padding: 0px;
204205
}

src/styles/themes/snow.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
--dialog-background-color: #070069;
66
--text-color: var(--white);
77

8-
--standard-block-color: rgb(4, 0, 49);
8+
--standard-block-color: rgba(4, 0, 49, 0.6);
99

10-
--back-layer-color: var(--white);
10+
/* Making the entire back layer of the board semi-transparent will also make
11+
the semi-transparent back blocks (ie. "standard blocks") see-through too */
12+
--back-layer-color: rgba(255, 255, 255, 0.6);
1113

1214
--block-2-color: #e0f7fa;
1315
--block-4-color: #b3e5fc;

0 commit comments

Comments
 (0)