Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs/landing-page): Landing page layout breaks on small devices #1310

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 48 additions & 39 deletions packages/documentation/src/pages/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@media (max-width: 428px) {
@media (max-width: 576px) {
.container {
padding: 50px 40px 50px 40px !important;
}
Expand Down Expand Up @@ -49,6 +49,7 @@

.introduction_content {
flex-grow: 0;
width: 100%;
}
}
}
Expand Down Expand Up @@ -91,12 +92,6 @@
}
}

@media (max-width: 1800px) {
.scroll_down {
display: none;
}
}

@media (max-width: 1280px) {
.scroll_down {
display: block;
Expand All @@ -109,7 +104,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.scroll_down {
bottom: -40px !important;
left: 42% !important;
Expand Down Expand Up @@ -194,13 +189,13 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
&.call_to_actions {
margin-left: 0;
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
&.devices {
height: 926px !important;
}
Expand Down Expand Up @@ -228,6 +223,11 @@
left: -10%;
width: auto !important;
}

.device_headline {
position: relative;
z-index: 1;
}
}

@media (max-width: 768px) {
Expand All @@ -239,11 +239,11 @@
}

.text_2 {
width: 340px !important;
width: 300px !important;
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.image {
top: 220px !important;
height: 80% !important;
Expand Down Expand Up @@ -316,9 +316,9 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.text_2 {
width: 348px !important;
width: 300px !important;
}
}
}
Expand All @@ -328,11 +328,11 @@

@media (max-width: 768px) {
.text_2 {
width: 340px !important;
width: 300px !important;
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.bold {
line-height: 35px !important;
}
Expand All @@ -354,8 +354,6 @@
.images {
display: flex;
flex-direction: column;
gap: 88px;
margin-left: 20px;
margin-top: 39px;
padding-bottom: 108.8px;
}
Expand Down Expand Up @@ -384,21 +382,20 @@
height: 4rem;
}

@media (max-width: 1280px) {
.images {
flex-direction: row;
justify-content: center;
}
.images {
flex-direction: row;
justify-content: space-between;
}

.row {
flex-direction: column;
gap: 90px;
}
.row {
flex-direction: column;
gap: 90px;
}


@media (max-width: 768px) {
.text_2 {
width: 340px !important;
width: 300px !important;
}

.icon_main {
Expand All @@ -412,7 +409,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.images {
gap: 10px !important;
}
Expand All @@ -433,7 +430,7 @@
padding: 40px 66px;
min-height: 100vh;

@media (max-width: 428px) {
@media (max-width: 576px) {
.arrow {
display: none !important;
}
Expand Down Expand Up @@ -491,7 +488,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
&.components {
background-image: none !important;
background-color: #000028;
Expand Down Expand Up @@ -529,7 +526,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.text_dark {
color: #ffffff !important;
}
Expand All @@ -546,6 +543,8 @@
padding: 140px 90px;
min-height: 100vh;
align-items: center;
background: #595972;
background-size: contain;

@media (max-width: 768px) {
.card {
Expand All @@ -561,7 +560,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 768px) {
.column {
flex-direction: column !important;
align-items: center !important;
Expand Down Expand Up @@ -592,7 +591,7 @@
width: 365px;
height: 365px;
background-color: #23233c;
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.5);
box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.5);
align-items: center;
padding: 90px 20px 20px 20px;

Expand Down Expand Up @@ -786,6 +785,10 @@
height: 100%;
top: 0;
bottom: 0;

@media (max-width: 768px) {
display: none;
}
}

.brand_desgin_background_color {
Expand All @@ -801,7 +804,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.brand_desgin_background_image {
display: none;
}
Expand Down Expand Up @@ -839,7 +842,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.line {
display: none !important;
}
Expand Down Expand Up @@ -873,6 +876,7 @@

&_h1 {
font-size: 60px;
white-space: nowrap;
line-height: 45px;

.line {
Expand Down Expand Up @@ -921,7 +925,7 @@
color: rgba(0, 0, 0, 0.85);
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.description {
margin: 30px 0 0 0 !important;
width: 100% !important;
Expand Down Expand Up @@ -964,6 +968,7 @@
@media (max-width: 1280px) {
.Card_Box {
justify-content: flex-start;
width: 100%;
}

.Card_Info {
Expand All @@ -982,7 +987,7 @@
}
}

@media (max-width: 428px) {
@media (max-width: 576px) {
.Card_Info {
padding: 0 !important;
}
Expand All @@ -1005,7 +1010,7 @@
padding-right: 20px;
gap: 10px;
text-decoration: none !important;
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.5);
box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.5);

&.Justify {
justify-content: center;
Expand All @@ -1015,6 +1020,10 @@
background-color: var(--theme-color-primary);
border: 1px solid var(--theme-color-primary);

@media (max-width: 576px) {
width: auto;
}

&:hover {
background-color: var(--theme-btn-primary--background--hover) !important;
color: var(--theme-btn-primary--color--hover) !important;
Expand Down
Loading
Loading