summaryrefslogtreecommitdiff
path: root/sass/layout
diff options
context:
space:
mode:
authorArne Rief <arne.rief@gmail.com>2023-03-09 17:18:33 +0100
committerArne Rief <arne.rief@gmail.com>2023-03-09 17:18:33 +0100
commitb2438296c9be5820f1cfccb2623a7f66566b82b1 (patch)
treef6e096dcbde437e8ce33c695ce579a7f9cb2181f /sass/layout
parent1ad5e88a5707cec7bce6a1b593b808a5371704e3 (diff)
Favicon & phone optimization
Diffstat (limited to 'sass/layout')
-rw-r--r--sass/layout/_main-sections.scss30
-rw-r--r--sass/layout/_nav.scss2
2 files changed, 25 insertions, 7 deletions
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;
}
}
diff --git a/sass/layout/_nav.scss b/sass/layout/_nav.scss
index e2d462e..88fc320 100644
--- a/sass/layout/_nav.scss
+++ b/sass/layout/_nav.scss
@@ -24,7 +24,7 @@ nav {
@include responsive(tablet) {
@include flex-column-center;
gap: 1rem;
- padding: 0;
+ padding: 1.5rem 0;
}
}