From 5e7768c7d8fe86adbccde87d20092d40d5a5026a Mon Sep 17 00:00:00 2001 From: djmil Date: Mon, 31 Jul 2023 13:48:00 +0200 Subject: [PATCH] refactor --- src/App.css | 50 ++++++++++++++++---------------------------------- src/index.css | 21 --------------------- 2 files changed, 16 insertions(+), 55 deletions(-) diff --git a/src/App.css b/src/App.css index 74b5e05..066680d 100644 --- a/src/App.css +++ b/src/App.css @@ -1,38 +1,20 @@ -.App { +.square { + background: #fff; + border: 1px solid #999; + float: left; + font-size: 24px; + font-weight: bold; + line-height: 34px; + height: 34px; + margin-right: -1px; + margin-top: -1px; + padding: 0; text-align: center; + width: 34px; } -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } +.board-row:after { + clear: both; + content: ''; + display: table; } diff --git a/src/index.css b/src/index.css index edf19fd..3e3b6a1 100644 --- a/src/index.css +++ b/src/index.css @@ -10,25 +10,4 @@ body { code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; -} - -.square { - background: #fff; - border: 1px solid #999; - float: left; - font-size: 24px; - font-weight: bold; - line-height: 34px; - height: 34px; - margin-right: -1px; - margin-top: -1px; - padding: 0; - text-align: center; - width: 34px; -} - -.board-row:after { - clear: both; - content: ''; - display: table; } \ No newline at end of file