Skip to content

Commit 4ff0a2d

Browse files
committed
Add custom notification style for 2048Clone theme
Notification border now uses a variable, to allow that to be overridden using a variable in classic stylesheet. Also renamed settings item border variable, since it's doing a similar thing, and should be named as such for consistency.
1 parent 1f8dd20 commit 4ff0a2d

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

src/styles/components/notification.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
.notification-area > .notification {
1717
background-color: var(--notification-background-color);
18-
border: 1px solid var(--notification-background-color);
18+
border: var(--notification-border);
1919
border-radius: 0.25rem;
2020
margin: 0.2rem;
2121

src/styles/game/panes/settings.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
width: 100%;
2727
justify-content: space-around;
2828
align-items: center;
29-
border-top: var(--settings-item-border-color);
29+
border-top: var(--settings-item-border);
3030
border-bottom: none;
3131
height: 2em;
3232
}
3333

3434
.settings .settings-item:last-child {
35-
border-bottom: var(--settings-item-border-color);
35+
border-bottom: var(--settings-item-border);
3636
}
3737

3838
.settings .settings-item > * {

src/styles/global.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
--box-border-color: var(--gray-3);
6868
--box-border-color-highlighted: var(--gray-5);
6969

70-
--settings-item-border-color: 1px solid var(--gray-4);
70+
--settings-item-border: 1px solid var(--gray-4);
7171

7272
--background-color: var(--beige);
7373
--fallback-background-color: var(--background-color);
@@ -82,6 +82,7 @@
8282
--text-font-family: sans-serif;
8383

8484
--notification-background-color: var(--gray-7);
85+
--notification-border: 1px solid var(--gray-7);
8586
--notification-text-color: var(--black);
8687

8788
--share-button-background-color: var(--green);

src/styles/themes/classic.css

+12
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
--text-font-family: "Comic Sans MS", "Comic Neue", sans-serif;
1414

15+
--notification-background-color: var(--white);
16+
--notification-border: 2px solid var(--black);
17+
1518
--share-button-background-color: #00d600;
1619
--share-button-background-color-hover: #00ae00;
1720

@@ -400,3 +403,12 @@ body.classic .landscape-overlay > .overlay-content {
400403
body.classic .landscape-overlay > .overlay-content > * {
401404
color: white;
402405
}
406+
407+
/* Notification */
408+
409+
body.classic .notification-area > .notification {
410+
border-radius: 0;
411+
margin: 0;
412+
413+
font-family: var(--text-font-family);
414+
}

0 commit comments

Comments
 (0)