From e4816e7eeee4f498e358a0c5e0ca5b286c63b6ba Mon Sep 17 00:00:00 2001 From: TinWoodman92 Date: Sun, 14 Jan 2024 19:33:58 -0600 Subject: Initial commit --- style.css | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 style.css (limited to 'style.css') 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 -- cgit v1.2.3