Skip to content

Commit

Permalink
Styled the other size screens for the signup form
Browse files Browse the repository at this point in the history
  • Loading branch information
easybulb committed Jul 18, 2024
1 parent a9d79dd commit 9b212f7
Showing 1 changed file with 45 additions and 15 deletions.
60 changes: 45 additions & 15 deletions assets/CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ body {
font-family: 'Lato', sans-serif;
}

h1, h2, h3 {
h1,
h2,
h3 {
font-family: 'Oswald', sans-serif;
text-transform: uppercase;
letter-spacing: 2px;
Expand Down Expand Up @@ -54,7 +56,7 @@ header a {
list-style-type: none;
}

#menu > li {
#menu>li {
margin-bottom: 1em;
}

Expand Down Expand Up @@ -118,7 +120,8 @@ main {
padding-left: 10px;
}

#cover-text > h2, #cover-text > h3 {
#cover-text>h2,
#cover-text>h3 {
color: #ffffff;

}
Expand All @@ -134,7 +137,8 @@ main {
font-size: 280%;
}

#benefits-physical > div, #benefits-mental > div {
#benefits-physical>div,
#benefits-mental>div {
line-height: 20px;
margin-bottom: 20px;
}
Expand Down Expand Up @@ -240,7 +244,7 @@ main {
flex-grow: 1;
}

#signup-form > h2 {
#signup-form>h2 {
color: #fafafa;
margin-top: 20px;
}
Expand Down Expand Up @@ -287,6 +291,7 @@ main {

/* Media query: tablets and larger (768px and up) */
@media screen and (min-width: 768px) {

/* Header */
nav {
display: block;
Expand All @@ -300,7 +305,7 @@ main {
display: flex;
}

#menu > li {
#menu>li {
padding-left: 1rem;
}

Expand All @@ -327,31 +332,55 @@ main {
}

/* Reasons section */
#benefits-physical, #benefits-mental {
#benefits-physical,
#benefits-mental {
display: flex;
flex-direction: column;
width: 100%;
}

#benefits-physical > div,
#benefits-mental > div {
#benefits-physical>div,
#benefits-mental>div {
width: 75%;
}

#benefits-mental > div {
#benefits-mental>div {
text-align: end;
align-self: flex-end;
}

/* Gallery */
#photos {
column-count: 3;
}

/* Sign Up Page */
/* Form */
#signup {
background-position: center;
position: relative;
}

#signup-form {
max-width: 400px;
position: absolute;
left: 10%;
top: 150px;
}

.text-input:hover {
border-color: #f16c6b;
}

.join-button:hover {
background-color: #fafafa;
color: #454b1b;
}
}

/* Large devices (laptops and desktops, 992px and up) */
@media screen and (min-width: 992px) {
#menu a:hover{
#menu a:hover {
border-bottom: 1px solid #3a3a3a;
}

Expand All @@ -362,13 +391,14 @@ main {
}

@media screen and (min-width: 1200px) {

/* Reasons section */
#benefits {
display: flex;
flex-direction: row;
}

#benefits > div {
#benefits>div {
flex: 1;
}

Expand All @@ -380,11 +410,11 @@ main {
order: 1;
}

#benefits-mental > div {
#benefits-mental>div {
align-self: flex-start;
}

#benefits-physical > div {
#benefits-physical>div {
align-self: flex-endadd;
}
}

0 comments on commit 9b212f7

Please sign in to comment.