Merge branch 'fix/responsiveness' into development

This commit is contained in:
Andrea Matsunaga 2022-10-13 22:00:40 -03:00
commit 671b76d9f5
2 changed files with 54 additions and 106 deletions

View File

@ -146,7 +146,7 @@
</ul> </ul>
<p class="footer-text"> <p class="footer-text">
Copyright © 2020 - Loja Comércio Eletrônico CNPJ: 000.000.000/0001-00 Copyright © 2020 - Loja Comércio Eletrônico <span>CNPJ: 000.000.000/0001-00</span>
</p> </p>
</footer> </footer>
</main> </main>

View File

@ -46,7 +46,6 @@ body {
.top-section-subtitle { .top-section-subtitle {
text-transform: uppercase; text-transform: uppercase;
/* line-height: 38px; */
font-size: 2rem; font-size: 2rem;
font-weight: 400; font-weight: 400;
} }
@ -54,7 +53,6 @@ body {
.top-section-title { .top-section-title {
margin-bottom: 28px; margin-bottom: 28px;
text-transform: uppercase; text-transform: uppercase;
/* line-height: 58px; */
font-size: 3rem; font-size: 3rem;
font-weight: 500; font-weight: 500;
} }
@ -88,13 +86,11 @@ body {
} }
.top-card-image { .top-card-image {
/* max-width: 30%; */
display: block; display: block;
margin-bottom: 30px; margin-bottom: 30px;
} }
.top-card-image-01 { .top-card-image-01 {
/* margin-top: 16px; */
padding: 10px 0; padding: 10px 0;
} }
@ -107,7 +103,6 @@ body {
.image-grid-container { .image-grid-container {
display: flex; display: flex;
justify-content: center; justify-content: center;
/* margin: 0 auto; */
background: #E0E0E0; background: #E0E0E0;
} }
@ -116,45 +111,19 @@ body {
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 40px; gap: 40px;
/* margin: 0 auto;
width: 92%;
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-areas:
"image1 image2 image3";
column-gap: 40px; */
/* row-gap: 24px; */
position: relative; position: relative;
top: 62px; top: 62px;
} }
/* .grid-image-desktop { .grid-image-desktop {
max-width: 30%; max-width: 30%;
} }
.grid-image-desktop-01 {
grid-area: image1;
/* justify-self: center; */
/*}
.grid-image-desktop-02 {
grid-area: image2;
/* justify-self: center; */
/*}
.grid-image-desktop-03 {
grid-area: image3;
/* justify-self: center; */
/*} */
.grid-image-desktop, .grid-image-desktop,
.grid-image-mobile { .grid-image-mobile {
display: block; display: block;
} }
/* ----- LOWER SECTION ----- */ /* ----- LOWER SECTION ----- */
.lower-section { .lower-section {
display: grid; display: grid;
@ -163,16 +132,11 @@ body {
"cards" "cards"
"text" "text"
"image"; "image";
/* column-gap: 14px;
row-gap: 24px;
top: 32px; */
} }
.lower-section-cards { .lower-section-cards {
/* max-width: 92%; */
margin: 192px 0 108px; margin: 192px 0 108px;
grid-area: cards; grid-area: cards;
/* justify-self: center; */
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 16px; gap: 16px;
@ -210,7 +174,6 @@ body {
} }
.lower-section-subtitle { .lower-section-subtitle {
/* line-height: 39px; */
font-size: 2rem; font-size: 2rem;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
@ -224,9 +187,15 @@ body {
.lower-section-image-desktop { .lower-section-image-desktop {
max-width: 70%; max-width: 70%;
margin: 0 auto 116px;;
grid-area: image; grid-area: image;
display: block; display: block;
margin: 0 auto 116px;;
}
.lower-section-image-mobile {
max-width: 100%;
display: block;
margin: 0 auto;
} }
/* ----- FOOTER ----- */ /* ----- FOOTER ----- */
@ -248,22 +217,22 @@ body {
.footer-text { .footer-text {
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
line-height: 12px; line-height: 0.75rem;
font-size: 10px; font-size: 0.625rem;
color: #BDBDBD; color: #BDBDBD;
} }
/* ---------- RESPONSIVIDADE ---------- */ /* ---------- RESPONSIVIDADE ---------- */
/* ----- TELAS GRANDES ----- */ /* ----- TELAS EXTRA GRANDE (XL) ----- */
@media screen and (min-width: 2500px) { @media screen and (min-width: 2501px) {
/* ----- Font-size padrão ----- */ /* ----- (XL) Font-size padrão ----- */
p { p {
font-size: 2rem; font-size: 2rem;
} }
/* ----- Header ----- */ /* ----- (XL) Header ----- */
.page-header { .page-header {
padding: 100px 0; padding: 100px 0;
} }
@ -272,7 +241,7 @@ body {
transform: scale(2); transform: scale(2);
} }
/* ----- Top Section ----- */ /* ----- (XL) Top Section ----- */
.top-section { .top-section {
padding: 148px 0 424px; padding: 148px 0 424px;
} }
@ -321,19 +290,28 @@ body {
line-height: 3rem; line-height: 3rem;
} }
/* ----- Image Grid ----- */ /* ----- (XL) Image Grid ----- */
.image-grid-container { .image-grid-container {
padding: 382px 0 136px;
}
.image-grid {
gap: 18%;
}
.grid-image-desktop {
max-width: 15%;
transform: scale(2); transform: scale(2);
} }
/* ----- Lower Section ----- */ /* ----- (XL) Lower Section ----- */
.lower-section-cards { .lower-section-cards {
margin: 714px 0 216px; margin: 714px 0 216px;
} }
.lower-card { .lower-card {
padding: 122px 0 128px;
gap: 32px; gap: 32px;
padding: 122px 0 128px;
} }
.lower-card-image { .lower-card-image {
@ -363,7 +341,7 @@ body {
transform: scale(2); transform: scale(2);
} }
/* ----- Footer ----- */ /* ----- (XL) Footer ----- */
.page-footer { .page-footer {
padding: 80px 0; padding: 80px 0;
} }
@ -380,8 +358,8 @@ body {
} }
} }
/* ------------------------ */ /* ----- LAPTOP E DESKTOP ----- */
@media screen and (min-width: 769px) { @media screen and (min-width: 821px) {
.main-banner-mobile, .main-banner-mobile,
.grid-image-mobile, .grid-image-mobile,
.lower-section-image-mobile { .lower-section-image-mobile {
@ -389,58 +367,28 @@ body {
} }
} }
@media screen and (min-width: 769px) and (max-width: 1919px) { /* ----- SMARTPHONE E TABLET (S) ----- */
.image-grid { @media screen and (max-width: 820px) {
/* width: 100%; */
/* margin: 0 24px; */
display: grid;
grid-template-columns: repeat(2, auto);
grid-template-areas:
"imagem1 imagem2"
"imagem3 imagem3";
column-gap: 14px;
row-gap: 24px;
top: 32px;
background: #E0E0E0;
}
.grid-image-desktop {
max-width: 100%;
}
.grid-image-desktop-01 {
grid-area: imagem1;
}
.grid-image-desktop-02 {
grid-area: imagem2;
}
.grid-image-desktop-03 {
grid-area: imagem3;
}
}
@media screen and (max-width: 768px) {
.main-banner-desktop, .main-banner-desktop,
.grid-image-desktop, .grid-image-desktop,
.lower-section-image-desktop { .lower-section-image-desktop {
display: none; display: none;
} }
/* ----- (S) Top Section ----- */
.top-section-text { .top-section-text {
max-width: 86%; max-width: 86%;
margin-bottom: 64px; margin-bottom: 64px;
} }
.top-section-subtitle { .top-section-subtitle {
line-height: 24px; line-height: 1.5rem;
font-size: 20px; font-size: 1.25rem;
} }
.top-section-title { .top-section-title {
line-height: 34px; line-height: 2.125rem;
font-size: 28px; font-size: 1.75rem;
} }
.top-section-description { .top-section-description {
@ -466,18 +414,16 @@ body {
max-width: 100%; max-width: 100%;
} }
/* ----- (S) Image Grid ----- */
.image-grid { .image-grid {
/* width: 100%; */
/* margin: 0 24px; */
display: grid; display: grid;
grid-template-columns: repeat(2, auto); grid-template-columns: repeat(2, auto);
grid-template-areas: grid-template-areas:
"imagem1 imagem2" "image1 image2"
"imagem3 imagem3"; "image3 image3";
column-gap: 14px; column-gap: 14px;
row-gap: 24px; row-gap: 24px;
top: 32px; top: 32px;
background: #E0E0E0;
} }
.grid-image-mobile { .grid-image-mobile {
@ -485,17 +431,18 @@ body {
} }
.grid-image-mobile-01 { .grid-image-mobile-01 {
grid-area: imagem1; grid-area: image1;
} }
.grid-image-mobile-02 { .grid-image-mobile-02 {
grid-area: imagem2; grid-area: image2;
} }
.grid-image-mobile-03 { .grid-image-mobile-03 {
grid-area: imagem3; grid-area: image3;
} }
/* ----- (S) Lower Section ----- */
.lower-section { .lower-section {
display: grid; display: grid;
grid-template-columns: repeat(1, auto); grid-template-columns: repeat(1, auto);
@ -503,9 +450,6 @@ body {
"cards" "cards"
"image" "image"
"text"; "text";
/* column-gap: 14px;
row-gap: 24px;
top: 32px; */
} }
.lower-section-cards { .lower-section-cards {
@ -514,7 +458,6 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
/* justify-content: center; */
} }
.lower-card { .lower-card {
@ -526,7 +469,7 @@ body {
} }
.lower-card-description { .lower-card-description {
font-size: 14px; font-size: 0.875rem;
} }
.lower-section-text { .lower-section-text {
@ -534,7 +477,6 @@ body {
} }
.lower-section-subtitle { .lower-section-subtitle {
/* line-height: 29px; */
margin-bottom: 8px; margin-bottom: 8px;
font-size: 24px; font-size: 24px;
} }
@ -544,11 +486,11 @@ body {
} }
.lower-section-image-mobile { .lower-section-image-mobile {
margin-bottom: 50px;
grid-area: image; grid-area: image;
display: block; margin-bottom: 50px;
} }
/* ----- (S) Footer ----- */
.page-footer { .page-footer {
padding: 32px 0; padding: 32px 0;
} }
@ -558,8 +500,14 @@ body {
} }
} }
/* ----- TELA EXTRA PEQUENA ----- */
@media screen and (max-width: 320px) { @media screen and (max-width: 320px) {
.top-section-text { .top-section-text {
width: 100%; width: 100%;
} }
.footer-text {
display: flex;
flex-direction: column;
}
} }