fix: Reduced overall element size throughout UI

master
Ryan Carbotte 5 years ago
parent e40f944c2e
commit 73cab71e6e

@ -20,7 +20,6 @@ body {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-family: 'Varela Round', sans-serif; font-family: 'Varela Round', sans-serif;
padding-bottom: 20vh;
} }
h1 { h1 {
@ -39,7 +38,7 @@ h2 {
margin: 16px auto; margin: 16px auto;
border-radius: 40px; border-radius: 40px;
padding: 16px 0px; padding: 16px 0px;
padding-bottom: 32px; padding-bottom: 16px;
background: #F5F8FF; background: #F5F8FF;
color: #686868; color: #686868;
overflow: hidden; overflow: hidden;
@ -68,7 +67,7 @@ h2 {
.dialog-box p { .dialog-box p {
font-family: 'Raleway', sans-serif; font-family: 'Raleway', sans-serif;
font-weight: 800; font-weight: 800;
font-size: 1.2rem; font-size: 1rem;
color: #837865; color: #837865;
letter-spacing: 0.2px; letter-spacing: 0.2px;
line-height: 1.8rem; line-height: 1.8rem;
@ -93,9 +92,9 @@ h2 {
position: absolute; position: absolute;
left: 16px; left: 16px;
top: -28px; top: -28px;
font-size: 1.1rem; font-size: 1rem;
color: #BA3B1F; color: #BA3B1F;
padding: 4px 24px; padding: 4px 16px;
background: #FF9A40; background: #FF9A40;
border-radius: 40px; border-radius: 40px;
} }
@ -104,14 +103,14 @@ h2 {
background: white; background: white;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 32px; padding: 16px;
align-items: center; align-items: center;
} }
.form__row { .form__row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 32px; margin-bottom: 16px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
@ -120,17 +119,18 @@ h2 {
width: 100%; width: 100%;
display: block; display: block;
font-weight: 800; font-weight: 800;
font-size: 1.5rem; font-size: 1.25rem;
margin: 16px auto; margin: 8px auto;
color: #845E44; color: #845E44;
text-align: center; text-align: center;
} }
.form__flex-wrap { .form__flex-wrap {
margin-top: 16px; margin-top: 8px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
max-width: 100%; width: 100%;
max-width: 1080px;
justify-content: center; justify-content: center;
} }
@ -142,7 +142,7 @@ h2 {
} }
.input__group label { .input__group label {
font-size: 1.2rem; font-size: 1rem;
font-weight: bold; font-weight: bold;
margin-bottom: 8px; margin-bottom: 8px;
opacity: 0.7; opacity: 0.7;
@ -150,7 +150,6 @@ h2 {
} }
.form__flex-wrap .input__group label { .form__flex-wrap .input__group label {
margin-left: 0px; margin-left: 0px;
margin-bottom: 8px; margin-bottom: 8px;
} }
@ -171,8 +170,8 @@ h2 {
input { input {
border: 0px solid white; border: 0px solid white;
border-radius: 40px; border-radius: 40px;
padding: 16px 24px; padding: 8px 16px;
font-size: 2rem; font-size: 1.25rem;
font-family: inherit; font-family: inherit;
color: inherit; color: inherit;
font-weight: bold; font-weight: bold;
@ -235,7 +234,7 @@ input[type=number] {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
margin-top: 16px; margin-top: 8px;
} }
.input__radio-buttons input[type=radio] { .input__radio-buttons input[type=radio] {
@ -247,13 +246,12 @@ input[type=number] {
border: none; border: none;
border-radius: 40px; border-radius: 40px;
background: #F3F3F3; background: #F3F3F3;
padding: 16px 24px; padding: 8px 16px;
font-size: 1.5rem; font-size: 1.25rem;
font-family: inherit; font-family: inherit;
font-weight: bold; font-weight: bold;
transition: 0.2s all; transition: 0.2s all;
margin: 8px; margin: 8px;
} }
.input__radio-buttons input[type="radio"]:not(:checked)+label:hover { .input__radio-buttons input[type="radio"]:not(:checked)+label:hover {
@ -279,7 +277,7 @@ input[type=number] {
font-size: 1.2rem; font-size: 1.2rem;
transition: 0.2s all; transition: 0.2s all;
position: relative; position: relative;
margin: 32px auto; margin: 16px auto;
} }
.reset-button:hover { .reset-button:hover {
@ -417,4 +415,4 @@ input[type=number] {
height: 40px; height: 40px;
min-height: 40px; min-height: 40px;
} }
} }

@ -32,7 +32,7 @@
<div class="dialog-box"> <div class="dialog-box">
<h2 class="dialog-box__name">Daisy Mae</h2> <h2 class="dialog-box__name">Daisy Mae</h2>
<p>Hello, and welcome to the <b>Turnip Prophet</b> app on your Nook Phone.</p> <p>Hello, and welcome to the <b>Turnip Prophet</b> app on your Nook Phone.</p>
<p>This app let's you track your island's turnip prices daily, but you'll have to put the prices in yourself! <p>This app lets you track your island's turnip prices daily, but you'll have to put the prices in yourself!
</p> </p>
<p>After that, the Turnip Prophet app will <b>magically</b> predict the turnip prices you'll have for the rest of <p>After that, the Turnip Prophet app will <b>magically</b> predict the turnip prices you'll have for the rest of
the week. the week.
@ -104,6 +104,7 @@
</div> </div>
</div> </div>
<i>AM - 8:00 am to 11:59 am</i> <i>AM - 8:00 am to 11:59 am</i>
<i>PM - 12:00 pm to 10:00 pm</i> <i>PM - 12:00 pm to 10:00 pm</i>
<div class="form__flex-wrap"> <div class="form__flex-wrap">

Loading…
Cancel
Save