diff options
author | TinWoodman92 <chrhodgden@gmail.com> | 2024-01-14 19:33:58 -0600 |
---|---|---|
committer | TinWoodman92 <chrhodgden@gmail.com> | 2024-01-14 19:33:58 -0600 |
commit | e4816e7eeee4f498e358a0c5e0ca5b286c63b6ba (patch) | |
tree | b44d840e3928f7363fb049547a073459b2a13f49 /style.css |
Initial commit
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/style.css b/style.css new file mode 100644 index 0000000..97ed162 --- /dev/null +++ b/style.css @@ -0,0 +1,65 @@ +:root{ + --foreground-color: hsl(180, 50%, 50%); + --background-color: hsl(0, 0%, 0%); +} + +@media (max-width: 600px) { + html { + font-size: 1.5rem; + } +} + +@media (min-width: 601px) { + html { + font-size: 1rem; + } +} + +body { + color: var(--foreground-color); + background-color: var(--background-color); +} + +hr { + border-color: var(--foreground-color); +} + +nav { + color: var(--foreground-color); + text-align: center; + clear: both; +} + +.board { + display: grid; + grid-template-columns: repeat(3, 1fr); + grid-template-rows: repeat(3, 1fr); + max-width: 12rem; + max-height: 12rem; +} + +.square { + border: 0.01rem solid var(--foreground-color); + height: 4rem; + width: 4rem; + font-size: 3rem; + display: flex; + align-items: center; + justify-content: center; +} + +.square:nth-child(3n+1) { + border-left: 0; +} + +.square:nth-child(3n+3) { + border-right: 0; +} + +.square:nth-child(-n+3) { + border-top: 0; +} + +.square:nth-child(n+6) { + border-bottom: 0; +}
\ No newline at end of file |