Skip to content

Commit

Permalink
Merge pull request sabrina-aip#7 from Samalander0/main
Browse files Browse the repository at this point in the history
Styling Fixes
  • Loading branch information
sabrina-aip authored Feb 22, 2024
2 parents 340c2c4 + adc2a13 commit c33d130
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 17 deletions.
44 changes: 33 additions & 11 deletions assets/styles/large_style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/* Imports Roboto font in case it doesn't already exist on the user's computer */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* TEXT STYLES */

body {
font-family: 'Roboto', sans-serif;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
margin: 0;
padding: 4vw 2vw;
box-sizing: border-box;
}

h1 {
Expand All @@ -10,7 +20,8 @@ h1 {
}

p {
font-weight: 350;
font-weight: 400;
line-height: 1.5; /* More legible text */
}

.line-wrap {
Expand Down Expand Up @@ -61,6 +72,9 @@ p {
font-size: 10pt;
font-style: italic;
}
.footer p {
margin: 0.5em 0 0 0;
}

#social-icons-flexbox {
display: flex;
Expand Down Expand Up @@ -102,7 +116,7 @@ table {

td {
padding: 0px 10px 10px 10px;
font-weight: 350;
font-weight: 400;

}

Expand Down Expand Up @@ -130,6 +144,7 @@ td {
border-radius: 5px;
background-color: black;
color: white;
margin: 1.5em 0 0.5em 0;
}


Expand Down Expand Up @@ -219,18 +234,25 @@ a {
/* ATTEMPT BOXES */

#word-prompts {
display: flex;
flex-direction: row;
column-gap: 10px;
margin: 15pt 0 15pt 0;
display: flex;
flex-direction: row;
gap: 10px;
margin: 10px 0 10px 0;
}

.prompt {
flex: 1 1 0px;
padding: 15px;
aspect-ratio: 1/1;
align-items: center;
vertical-align: middle;
flex: 1 1 0px;
padding: 10px;
aspect-ratio: 1/1;
align-items: center;
margin: 5px 5px 1rem 5px;
position: relative;
}
.prompt::before { /* Center the play icon */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.prompt.clicked {
Expand Down
34 changes: 28 additions & 6 deletions assets/styles/mobile_style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/* Imports Roboto font in case it doesn't already exist on the user's computer */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* TEXT STYLES */

body {
font-family: 'Roboto', sans-serif;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
margin: 0;
padding: 2rem 1rem;
box-sizing: border-box;
}

h1 {
Expand All @@ -10,7 +20,8 @@ h1 {
}

p {
font-weight: 350;
font-weight: 400;
line-height: 1.5; /* More legible text */
}

.line-wrap {
Expand Down Expand Up @@ -61,6 +72,9 @@ p {
font-size: 10pt;
font-style: italic;
}
.footer p {
margin: 0.5em 0 0 0;
}

#social-icons-flexbox {
display: flex;
Expand All @@ -83,7 +97,7 @@ table {

td {
padding: 0px 10px 10px 10px;
font-weight: 350;
font-weight: 400;

}

Expand Down Expand Up @@ -130,6 +144,7 @@ td {
border-radius: 5px;
background-color: black;
color: white;
margin: 1.5em 0 0.5em 0;
}

/* BUTTONS */
Expand Down Expand Up @@ -223,16 +238,23 @@ a {
#word-prompts {
display: flex;
flex-direction: row;
column-gap: 10px;
margin: 10 0 10 0;
gap: 0.1vw; /* FIX: Gap is dependent on screen size | smaller screen = smaller spacing */
margin: 10px 0 10px 0;
}

.prompt {
flex: 1 1 0px;
padding: 15px;
padding: 10px;
aspect-ratio: 1/1;
align-items: center;
margin: 10px;
margin: 5px 5px 1rem 5px;
position: relative;
}
.prompt::before { /* Center the play icon */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.prompt.clicked {
Expand Down

0 comments on commit c33d130

Please sign in to comment.