From b2438296c9be5820f1cfccb2623a7f66566b82b1 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Thu, 9 Mar 2023 17:18:33 +0100 Subject: Favicon & phone optimization --- sass/layout/_main-sections.scss | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'sass/layout/_main-sections.scss') diff --git a/sass/layout/_main-sections.scss b/sass/layout/_main-sections.scss index aec49e5..190d020 100644 --- a/sass/layout/_main-sections.scss +++ b/sass/layout/_main-sections.scss @@ -2,11 +2,15 @@ .about-section { @include flex-sp-around-center; - @include narrow-container; + @include mobile-container; // mobile to smaller laptop screen sizes @include responsive(laptop) { @include flex-column-center; + @include medium-container; + } + + @include responsive(phone) { @include mobile-container; } } @@ -14,13 +18,17 @@ .welcome-section { @include standard-grid; gap: 8rem; - @include narrow-container; + @include mobile-container; width: 60%; // mobile to smaller laptop screen sizes @include responsive(laptop) { @include flex-column-center; gap: 4rem; + @include medium-container; + } + + @include responsive(phone) { @include mobile-container; } @@ -34,14 +42,20 @@ .projects-section { @include wide-container; + // less margin between h2 and the 2nd child = first project-container + & > div:not(:nth-child(2)) { + margin-top: 10rem; + } + // mobile to smaller laptop screen sizes @include responsive(laptop) { - @include mobile-container; + @include medium-container; } - // less margin between h2 and the 2nd child = first project-container - & > div:not(:nth-child(2)) { - margin-top: 10rem; + @include responsive(phone) { + @include flex-column-center; + margin: 8rem 0; + width: 100%; } } @@ -50,6 +64,10 @@ // mobile to smaller laptop screen sizes @include responsive(laptop) { + @include medium-container; + } + + @include responsive(phone) { @include mobile-container; } } -- cgit v1.2.3