Skip to content

Commit

Permalink
Properly style the main section's elements
Browse files Browse the repository at this point in the history
  • Loading branch information
softy-dev committed Sep 2, 2024
1 parent da8053a commit 4c28cdf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<p>Sign up now to get started.</p>
</div>
<div class="form_wrapper">
<div>
<p>Let's do this!</p>
<form id="form">
<div>
Expand Down
26 changes: 18 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

:root {
font-size: 6.25%;
--left-spacing: 2vw;
--paragraph-spacing: 1.5vw;
}

body {
Expand All @@ -32,7 +34,6 @@ body {
background-color: rgb(14, 14, 14);
font-family: "allerregular";
font-size: 16rem;

}

img, picture, video, canvas, svg {
Expand Down Expand Up @@ -109,24 +110,29 @@ p, h1, h2, h3, h4, h5, h6 {
width: 70vw;
}

#main > div {
padding: var(--left-spacing);
}

#main > div:first-child {
color: rgb(14, 14, 14);
}

.form_wrapper {
#main > div:nth-child(2) {
background-color: white;
color: rgb(37, 39, 83);
box-shadow: 0 4px 10px -2px gray;
padding-bottom: 10px;
padding-top: 1vw;
}


#main p {
font-size: min(2vw, 25rem);
width: 80%;
}

p + p { margin-top: 20px; }
p + p, #main div:last-of-type > p {
margin-top: var(--paragraph-spacing);
}

a {
color:white;
Expand All @@ -135,9 +141,9 @@ a {
label {
display: block;
text-transform: uppercase;
margin-top: 20px;
font-size: min(2vw, 13rem);
font-weight: bold;
margin-top: 2.1vw;
}

input {
Expand All @@ -147,7 +153,6 @@ input {
}

form {
margin-top: 20px;
display: flex;
justify-content: space-between;
width: 65%;
Expand All @@ -164,9 +169,14 @@ button {
box-shadow: 0 4px 10px -2px gray;
}

button:active {
background-color: rgb(70, 52, 38);
transform: scale(0.98);
box-shadow: none;
}

#main div:last-of-type > p {
font-size: min(2.5vw, 18rem);
margin-top: 20px;
}

span {
Expand Down

0 comments on commit 4c28cdf

Please sign in to comment.