This repository has been archived by the owner on Aug 27, 2021. It is now read-only.
-
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.
🔖 v1: Add CSS, edit script, pin versions
- Loading branch information
Showing
7 changed files
with
3,849 additions
and
2,135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
/.pnp | ||
.pnp.js | ||
|
||
# styling | ||
*.css | ||
|
||
# testing | ||
/coverage | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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,19 +1,20 @@ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const fs = require("fs") | ||
const path = require("path") | ||
|
||
const sassFolder = path.join(__dirname, "../src/styles/scss"); | ||
const sassOut = "index.scss"; | ||
const sassFolder = path.join(__dirname, "../src/styles/scss") | ||
const sassOut = "index.scss" | ||
|
||
if (fs.existsSync(`${sassFolder}/${sassOut}`)) { | ||
fs.unlinkSync(`${sassFolder}/${sassOut}`); | ||
fs.unlinkSync(`${sassFolder}/${sassOut}`) | ||
} | ||
|
||
const stream = fs.createWriteStream(`${sassFolder}/${sassOut}`); | ||
const stream = fs.createWriteStream(`${sassFolder}/${sassOut}`) | ||
fs.readdirSync(sassFolder).forEach(fileName => { | ||
stream.write(`@import "${fileName.replace(".scss", "")}";${"\n"}`); | ||
}); | ||
stream.end(); | ||
if (fileName !== sassOut) | ||
stream.write(`@import "${fileName.replace(".scss", "")}";${"\n"}`) | ||
}) | ||
stream.end() | ||
|
||
console.log("Sass files have been compiled successfully!"); | ||
console.log(""); | ||
console.log("Now watching changes to existing files"); | ||
console.log( | ||
"Sass files have been compiled successfully!\n\nNow watching changes to existing files", | ||
) |
Empty file.
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,66 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; } | ||
|
||
.dark-style { | ||
filter: invert(1); } | ||
.dark-style .override-style { | ||
filter: invert(1); } | ||
|
||
.logo { | ||
max-width: 30px; | ||
margin: 30px auto; } | ||
|
||
.logo-wrapper { | ||
text-align: center; | ||
width: 90%; } | ||
|
||
.app-header { | ||
font-style: italic; | ||
text-shadow: 2px 2px #ffadd2; | ||
white-space: nowrap; } | ||
|
||
.game-board { | ||
background: transparent; | ||
box-sizing: border-box; | ||
padding: 10px; | ||
margin: 0 auto; } | ||
|
||
.game-board__generation { | ||
text-align: center; } | ||
.game-board__generation .number { | ||
font-size: 200%; | ||
font-weight: bold; | ||
font-style: italic; | ||
text-decoration: underline #eb2f96; } | ||
|
||
.game-board__species { | ||
text-align: center; } | ||
.game-board__species input { | ||
border: 0; | ||
border-radius: 5px; | ||
box-shadow: inset 0 0 5px #ffadd2; | ||
font-style: italic; | ||
padding: 3px 5px; | ||
background: transparent; | ||
text-align: center; } | ||
.game-board__species input:focus { | ||
box-shadow: inset 0 0 15px #eb2f96; | ||
outline: 0; } | ||
|
||
.game-board__row { | ||
display: flex; | ||
justify-content: center; } | ||
|
||
.game-board__cell { | ||
margin: 1px; | ||
height: 13px; | ||
width: 13px; } | ||
.game-board__cell.game-board__cell--dead { | ||
background: rgba(0, 0, 0, 0.025); } | ||
.game-board__cell.game-board__cell--alive-new { | ||
background: #ffadd2; } | ||
.game-board__cell.game-board__cell--alive-old { | ||
background: #eb2f96; } |
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,66 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; } | ||
|
||
.dark-style { | ||
filter: invert(1); } | ||
.dark-style .override-style { | ||
filter: invert(1); } | ||
|
||
.logo { | ||
max-width: 30px; | ||
margin: 30px auto; } | ||
|
||
.logo-wrapper { | ||
text-align: center; | ||
width: 90%; } | ||
|
||
.app-header { | ||
font-style: italic; | ||
text-shadow: 2px 2px #ffadd2; | ||
white-space: nowrap; } | ||
|
||
.game-board { | ||
background: transparent; | ||
box-sizing: border-box; | ||
padding: 10px; | ||
margin: 0 auto; } | ||
|
||
.game-board__generation { | ||
text-align: center; } | ||
.game-board__generation .number { | ||
font-size: 200%; | ||
font-weight: bold; | ||
font-style: italic; | ||
text-decoration: underline #eb2f96; } | ||
|
||
.game-board__species { | ||
text-align: center; } | ||
.game-board__species input { | ||
border: 0; | ||
border-radius: 5px; | ||
box-shadow: inset 0 0 5px #ffadd2; | ||
font-style: italic; | ||
padding: 3px 5px; | ||
background: transparent; | ||
text-align: center; } | ||
.game-board__species input:focus { | ||
box-shadow: inset 0 0 15px #eb2f96; | ||
outline: 0; } | ||
|
||
.game-board__row { | ||
display: flex; | ||
justify-content: center; } | ||
|
||
.game-board__cell { | ||
margin: 1px; | ||
height: 13px; | ||
width: 13px; } | ||
.game-board__cell.game-board__cell--dead { | ||
background: rgba(0, 0, 0, 0.025); } | ||
.game-board__cell.game-board__cell--alive-new { | ||
background: #ffadd2; } | ||
.game-board__cell.game-board__cell--alive-old { | ||
background: #eb2f96; } |