diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-21 19:43:33 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-21 19:43:33 +0530 |
commit | 87e3e6bf66dc18a324417e05043874792749a8c5 (patch) | |
tree | 92948b725b200a0e0f7d8574934a1b4d45b6f11b /src/components/style.css | |
parent | 2219ac3e3db3ead7cb9b8ef88726225b1754d6f3 (diff) |
Fixed styling and add prompt for player
Diffstat (limited to 'src/components/style.css')
-rw-r--r-- | src/components/style.css | 51 |
1 files changed, 40 insertions, 11 deletions
diff --git a/src/components/style.css b/src/components/style.css index 13daabc..d305fe5 100644 --- a/src/components/style.css +++ b/src/components/style.css @@ -16,16 +16,30 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -body, #root { +/*body, #root { margin: 0px; height: 100vh; width: 100vw; display: flex; flex-direction: column; - justify-content: space-between; + justify-content: center; align-items: center; background-color: #232627; color: white; +}*/ + +body { + margin: 0; + padding: 0; + background-color: #232627; + color: white; +} + +#root { + position: absolute; + margin: auto; + top: 0; bottom: 0; + left: 0; right: 0; } .MessageBox { @@ -46,13 +60,19 @@ body, #root { padding: 0.5rem 2rem; } +.ScoreBoardContainer { + text-align: center; + position: relative; + left: 0; right: 0; + margin: 1rem auto; + width: 30rem; +} + .ScoreBoard { display: flex; - justify-content: space-between; + justify-content: space-around; + width: 100%; font-size: 3rem; - width: 20rem; - margin-bottom: 0.7rem; - margin-top: 1rem; } .Grid { @@ -61,6 +81,11 @@ body, #root { grid-template-rows: 9rem 9rem 9rem; grid-row-gap: 1.5rem; grid-column-gap: 1.5rem; + + position: relative; + left: 0; right: 0; + margin: 1rem auto; + width: 30rem; } .Box { @@ -74,6 +99,8 @@ body, #root { } .Footer { + position: relative; + bottom: 0; width: 100%; padding: 0.2rem 0; background-color: #0f0f0f; @@ -97,18 +124,20 @@ body, #root { .MessageBox { font-size: 4rem; } + .ScoreBoardContainer { + width: 20rem; + } + .ScoreBoard { + font-size: 3.5rem; + } .Grid { grid-template-columns: 6rem 6rem 6rem; grid-template-rows: 6rem 6rem 6rem; grid-row-gap: 1.5rem; grid-column-gap: 1.5rem; + width: 21rem; } .Box { font-size: 6rem; } - .ScoreBoard { - font-size: 3.5rem; - width: 16rem; - padding-top: 1rem; - } } |