aboutsummaryrefslogtreecommitdiff
path: root/src/components/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/style.css')
-rw-r--r--src/components/style.css51
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;
- }
}