-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a14dc40 get home screen + rendering perf improvements
- Loading branch information
1 parent
71aa19e
commit d4f7784
Showing
136 changed files
with
2,746 additions
and
1,502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "./smoothstone.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[data-sk-colour-scheme="smooth-stone"] { | ||
--colour-mainFg: #c3c5ce; | ||
--colour-mainBg: #72888d; | ||
--colour-tileFg: #a2b6bb; | ||
--colour-tileBg: #546164; | ||
--colour-tileBd: #ffffff; | ||
--colour-healthFg: #21352e; | ||
--colour-healthBg: #398f5a; | ||
--colour-pFaceMe: #43aec9; | ||
--colour-pFaceTeammate: #bdae58; | ||
--colour-pFaceImtlTeammate: #f8df50; | ||
--colour-pFaceOpponent: #a34e59; | ||
--colour-pFaceImtlOpponent: #e23fa3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,41 @@ | ||
|
||
#game-grid-container { | ||
height: 100vh; | ||
flex-flow: column nowrap; | ||
} | ||
|
||
|
||
.game-grid { | ||
/* Since this is given the `center-contents` and | ||
`stack-contents` classes, it defaults to taking | ||
up no space (its children all have their position | ||
property set to `absolute`). We rectify this case | ||
by giving `.game-grid-impl-body` `position: static`. */ | ||
border: 5px double var(--colour-tileBd); | ||
border-radius: 15px; | ||
padding: 5px; | ||
} | ||
|
||
.game-grid-impl-body { | ||
position: static; | ||
padding: 4px 4px; | ||
border: 5px double var(--colour-tileBd); | ||
border-radius: 15px; | ||
color: var(--colour-tileFg); | ||
|
||
/* To hide the spotlight off the edges */ | ||
overflow: hidden hidden; | ||
} | ||
|
||
.game-grid-kbd-dc { | ||
/* Take up the whole space of the parent, and | ||
make sure that (regardless of element ordering,) | ||
This doesn't prevent `.game-grid-impl-body` from | ||
receiving focus via pointer. */ | ||
pointer-events: none; | ||
.game-grid-kbd-dc, | ||
.game-grid-pause-overlay { | ||
top: 0; left: 0; bottom: 0; right: 0; | ||
} | ||
.game-grid-kbd-dc { | ||
color: var(--colour-tileBd); | ||
text-shadow: 0 0 0.5em black; | ||
color: var(--colour-tileBd); | ||
text-shadow: 0em 0.01em 0.5em black; | ||
background-color: #00000040; | ||
visibility: hidden; | ||
} | ||
|
||
.game-grid-impl-body:focus { | ||
/* cursor: help; */ | ||
outline: none; | ||
.game-grid-kbd-dc { | ||
cursor: pointer; | ||
} | ||
.game-grid-impl-body:not(:focus) { | ||
filter: brightness(70%); | ||
.game-grid-pause-overlay { | ||
cursor: not-allowed; | ||
} | ||
.game-grid-impl-body:not(:focus) ~ .game-grid-kbd-dc { | ||
visibility: visible; | ||
|
||
@media screen { | ||
.game-grid:focus { | ||
outline: none; | ||
} | ||
.game-grid[data-game-state="paused"] > .game-grid-pause-overlay, | ||
.game-grid:not([data-game-state="paused"]):not(:focus) > .game-grid-kbd-dc { | ||
visibility: visible; | ||
} | ||
} |
Oops, something went wrong.