created media queries for nav, sections, grid, footer, typography, utilities and for the base

This commit is contained in:
Yusuf Ipek
2021-05-05 15:53:37 +03:00
parent e5b534c07c
commit 9eee80c625
10 changed files with 144 additions and 1 deletions
+5
View File
@@ -24,4 +24,9 @@ html {
body { body {
box-sizing: border-box; box-sizing: border-box;
padding: 3rem;
@include respond(tab-port) {
padding: 0;
}
} }
+17 -1
View File
@@ -12,6 +12,11 @@
letter-spacing: 3.5rem; letter-spacing: 3.5rem;
animation: moveInLeft 1s ease-out; animation: moveInLeft 1s ease-out;
@include respond(phone) {
letter-spacing: 1rem;
font-size: 5rem;
}
} }
&--sub { &--sub {
@@ -21,6 +26,10 @@
letter-spacing: 1.75rem; letter-spacing: 1.75rem;
animation: moveInRight 1s ease-out; animation: moveInRight 1s ease-out;
@include respond(phone) {
letter-spacing: 0.5rem;
}
} }
} }
@@ -29,7 +38,6 @@ body {
font-weight: 400; font-weight: 400;
line-height: 1.7; line-height: 1.7;
color: $color-grey-dark; color: $color-grey-dark;
padding: 3rem;
} }
.heading-secondary { .heading-secondary {
@@ -47,6 +55,14 @@ body {
letter-spacing: 0.2rem; letter-spacing: 0.2rem;
transition: all 0.2s; transition: all 0.2s;
@include respond(tab-port) {
font-size: 3rem;
}
@include respond(phone) {
font-size: 2.5rem;
}
&:hover { &:hover {
transform: skewY(2deg) skewX(15deg) scale(1.1); transform: skewY(2deg) skewX(15deg) scale(1.1);
text-shadow: $shadow-light; text-shadow: $shadow-light;
+8
View File
@@ -4,9 +4,17 @@
.u-margin-bottom-big { .u-margin-bottom-big {
margin-bottom: 8rem !important; margin-bottom: 8rem !important;
@include respond(tab-port) {
margin-bottom: 5rem !important;
}
} }
.u-margin-bottom-medium { .u-margin-bottom-medium {
margin-bottom: 4rem !important; margin-bottom: 4rem !important;
@include respond(tab-port) {
margin-bottom: 3rem !important;
}
} }
.u-margin-bottom-small { .u-margin-bottom-small {
margin-bottom: 1.5rem !important; margin-bottom: 1.5rem !important;
+25
View File
@@ -8,17 +8,42 @@
z-index: 10; z-index: 10;
transition: all 0.2s; transition: all 0.2s;
@include respond(tab-port) {
float: left;
position: relative;
width: 33.33333333%;
box-shadow: $shadow-light;
}
&--p1 { &--p1 {
left: 0; left: 0;
top: -2rem; top: -2rem;
@include respond(tab-port) {
top: 0;
transform: scale(1.2);
}
} }
&--p2 { &--p2 {
right: 0; right: 0;
top: 2rem; top: 2rem;
@include respond(tab-port) {
top: -1rem;
left: 0;
transform: scale(1.3);
z-index: 15;
}
} }
&--p3 { &--p3 {
left: 20%; left: 20%;
top: 10rem; top: 10rem;
@include respond(tab-port) {
top: 1rem;
left: 0;
transform: scale(1.1);
}
} }
&:hover { &:hover {
+8
View File
@@ -7,6 +7,10 @@
box-shadow: $shadow-default; box-shadow: $shadow-default;
transition: transform 0.3s; transition: transform 0.3s;
@include respond(tab-port) {
padding: 2rem;
}
&__icon { &__icon {
font-size: 6rem; font-size: 6rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
@@ -18,6 +22,10 @@
); );
background-clip: text; background-clip: text;
color: transparent; color: transparent;
@include respond(tab-port) {
margin-bottom: 0;
}
} }
&:hover { &:hover {
+18
View File
@@ -3,9 +3,17 @@
padding: 10rem 0; padding: 10rem 0;
font-size: $normal-font-size; font-size: $normal-font-size;
@include respond(tab-port) {
padding: 8rem 0;
}
&__logo-box { &__logo-box {
text-align: center; text-align: center;
margin-bottom: 8rem; margin-bottom: 8rem;
@include respond(tab-port) {
margin-bottom: 6rem;
}
} }
&__logo { &__logo {
@@ -17,6 +25,11 @@
border-top: 1px solid $color-grey-dark; border-top: 1px solid $color-grey-dark;
padding-top: 2rem; padding-top: 2rem;
display: inline-block; display: inline-block;
@include respond(tab-port) {
width: 100%;
text-align: center;
}
} }
&__list { &__list {
@@ -56,5 +69,10 @@
float: right; float: right;
color: $color-grey-dark; color: $color-grey-dark;
color: $color-grey-light-1; color: $color-grey-light-1;
@include respond(tab-port) {
width: 100%;
float: none;
}
} }
} }
+18
View File
@@ -4,6 +4,15 @@
&:not(:last-child) { &:not(:last-child) {
margin-bottom: $gutter-vertical; margin-bottom: $gutter-vertical;
@include respond(tab-port) {
margin-bottom: $gutter-horizontal;
}
}
@include respond(tab-port) {
max-width: 50rem;
padding: 0 3rem;
} }
@include clearfix; @include clearfix;
@@ -13,6 +22,15 @@
&:not(:last-child) { &:not(:last-child) {
margin-right: $gutter-horizontal; margin-right: $gutter-horizontal;
@include respond(tab-port) {
margin-right: 0;
margin-bottom: $gutter-horizontal;
}
}
@include respond(tab-port) {
width: 100% !important;
} }
} }
+4
View File
@@ -11,6 +11,10 @@
clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%); clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
position: relative; position: relative;
@include respond(phone) {
clip-path: polygon(0 0, 100% 0, 100% 85vh, 0 100%);
}
&__logo-box { &__logo-box {
position: absolute; position: absolute;
top: 4rem; top: 4rem;
+21
View File
@@ -25,6 +25,15 @@
&--times { &--times {
opacity: 0; opacity: 0;
} }
@include respond(tab-port) {
top: 4rem;
right: 4rem;
}
@include respond(phone) {
top: 3rem;
right: 3rem;
}
} }
&__background { &__background {
@@ -40,6 +49,16 @@
); );
z-index: 1000; z-index: 1000;
transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1); transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
@include respond(tab-port) {
top: 4.5rem;
right: 4rem;
}
@include respond(phone) {
top: 3.5rem;
right: 3rem;
}
} }
&__nav { &__nav {
@@ -50,6 +69,7 @@
left: 0; left: 0;
z-index: 1500; z-index: 1500;
visibility: hidden;
opacity: 0; opacity: 0;
width: 0; width: 0;
transition: all 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6); transition: all 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6);
@@ -104,6 +124,7 @@
} }
&__checkbox:checked ~ &__nav { &__checkbox:checked ~ &__nav {
visibility: visible;
opacity: 1; opacity: 1;
width: 100%; width: 100%;
} }
+20
View File
@@ -2,6 +2,10 @@
background-color: $color-grey-light-1; background-color: $color-grey-light-1;
padding: 25rem 0; padding: 25rem 0;
margin-top: -20vh; margin-top: -20vh;
@include respond(tab-port) {
padding: 20rem 0;
}
} }
.section-features { .section-features {
@@ -20,17 +24,29 @@
& > * { & > * {
transform: skewY(7deg); transform: skewY(7deg);
} }
@include respond(tab-port) {
padding: 10rem 0;
}
} }
.section-tours { .section-tours {
background-color: $color-grey-light-1; background-color: $color-grey-light-1;
padding: 25rem 0 15rem 0; padding: 25rem 0 15rem 0;
margin-top: -12rem; margin-top: -12rem;
@include respond(tab-port) {
padding: 20rem 0 10rem 0;
}
} }
.section-stories { .section-stories {
padding: 15rem 0; padding: 15rem 0;
position: relative; position: relative;
@include respond(tab-port) {
padding: 10rem 0;
}
} }
.section-book { .section-book {
@@ -40,6 +56,10 @@
$color-primary-light, $color-primary-light,
$color-primary-dark $color-primary-dark
); );
@include respond(tab-port) {
padding: 10rem 0;
}
} }
.book { .book {