From 9b212f7c3829e9ba39caaba548cbdb2b6a41a889 Mon Sep 17 00:00:00 2001 From: Henry Ofodieze Date: Thu, 18 Jul 2024 07:02:35 +0000 Subject: [PATCH] Styled the other size screens for the signup form --- assets/CSS/style.css | 60 +++++++++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 15 deletions(-) diff --git a/assets/CSS/style.css b/assets/CSS/style.css index 9f88ab7..56d9316 100644 --- a/assets/CSS/style.css +++ b/assets/CSS/style.css @@ -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; @@ -54,7 +56,7 @@ header a { list-style-type: none; } -#menu > li { +#menu>li { margin-bottom: 1em; } @@ -118,7 +120,8 @@ main { padding-left: 10px; } -#cover-text > h2, #cover-text > h3 { +#cover-text>h2, +#cover-text>h3 { color: #ffffff; } @@ -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; } @@ -240,7 +244,7 @@ main { flex-grow: 1; } -#signup-form > h2 { +#signup-form>h2 { color: #fafafa; margin-top: 20px; } @@ -287,6 +291,7 @@ main { /* Media query: tablets and larger (768px and up) */ @media screen and (min-width: 768px) { + /* Header */ nav { display: block; @@ -300,7 +305,7 @@ main { display: flex; } - #menu > li { + #menu>li { padding-left: 1rem; } @@ -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; } @@ -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; } @@ -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; } } \ No newline at end of file