first responsive adjustments done

This commit is contained in:
dqnid committed 2024-03-24 07:08:50 +01:00
1 parent a45d6208d5
commit f747723770
20 files changed
+317 -72

No files matched your search

+101 -2
View File
@@ -1,4 +1,19 @@
@charset "UTF-8"; @charset "UTF-8";
/*
* 0 - 600px : Phone
* 600 - 900px : Tablet portrait
* 900 - 1200px : Tablet landscape
* 1200 - 1800px : Normal desktop
* 1800px + : Big desktop
* $breakpoint argument choices
- phone
- tab-port
- tab-land
- big-desktop
1em = 16px
*/
*, *,
::after, ::after,
::before { ::before {
@@ -8,10 +23,22 @@
html { html {
font-size: 62.5%; } font-size: 62.5%; }
@media (min-width: 112.5em) {
html {
font-size: 75%; } }
@media (max-width: 75em) {
html {
font-size: 56.25%; } }
@media (max-width: 56.25em) {
html {
font-size: 50%; } }
body { body {
padding: 3rem; padding: 3rem;
box-sizing: border-box; } box-sizing: border-box; }
@media (max-width: 56.25em) {
body {
padding: 0; } }
@keyframes slideLeft { @keyframes slideLeft {
0% { 0% {
@@ -42,7 +69,7 @@ body {
opacity: 1; } } opacity: 1; } }
body { body {
font-family: "Lato",Verdana, Geneva, Tahoma, sans-serif; font-family: "Lato", Verdana, Geneva, Tahoma, sans-serif;
font-weight: 400; font-weight: 400;
/* font-size: 16px; */ /* font-size: 16px; */
line-height: 1.7; line-height: 1.7;
@@ -60,6 +87,10 @@ body {
animation-name: slideLeft; animation-name: slideLeft;
animation-duration: 1s; animation-duration: 1s;
animation-timing-function: ease-in; } animation-timing-function: ease-in; }
@media (max-width: 37.5em) {
.heading--primary-main {
letter-spacing: 1rem;
font-size: 5rem; } }
.heading--primary-sub { .heading--primary-sub {
display: block; display: block;
font-size: 2rem; font-size: 2rem;
@@ -68,6 +99,9 @@ body {
animation-name: slideRight; animation-name: slideRight;
animation-duration: 1s; animation-duration: 1s;
animation-timing-function: ease-in; } animation-timing-function: ease-in; }
@media (max-width: 37.5em) {
.heading--primary-sub {
letter-spacing: .5rem; } }
.heading--secondary { .heading--secondary {
font-size: 3.5rem; font-size: 3.5rem;
@@ -79,7 +113,13 @@ body {
background-clip: 0; background-clip: 0;
-webkit-background-clip: text; -webkit-background-clip: text;
color: transparent; color: transparent;
transition: all .2s; } transition: all 0.2s; }
@media (max-width: 56.25em) {
.heading--secondary {
font-size: 3rem; } }
@media (max-width: 37.5em) {
.heading--secondary {
font-size: 2.5rem; } }
.heading--secondary:hover { .heading--secondary:hover {
transform: skewY(2deg) skewX(15deg) scale(1.1); transform: skewY(2deg) skewX(15deg) scale(1.1);
text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2); } text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2); }
@@ -539,6 +579,9 @@ body {
animation: moveInRight 1s ease-out; animation: moveInRight 1s ease-out;
} }
*/ } */ }
@media (max-width: 37.5em) {
.header {
clip-path: polygon(0% 0%, 100% 0%, 100% 85vh, 0% 100%); } }
.header__logo-box { .header__logo-box {
position: absolute; position: absolute;
top: 4rem; top: 4rem;
@@ -562,6 +605,13 @@ body {
margin: 0 auto; } margin: 0 auto; }
.row:not(:last-child) { .row:not(:last-child) {
margin-bottom: 8rem; } margin-bottom: 8rem; }
@media (max-width: 56.25em) {
.row:not(:last-child) {
margin-bottom: 6rem; } }
@media (max-width: 56.25em) {
.row {
max-width: 50rem;
padding: 0 3rem; } }
.row::after { .row::after {
content: ""; content: "";
display: table; display: table;
@@ -570,6 +620,13 @@ body {
float: left; } float: left; }
.row [class^='col-']:not(:last-child) { .row [class^='col-']:not(:last-child) {
margin-right: 6rem; } margin-right: 6rem; }
@media (max-width: 56.25em) {
.row [class^='col-']:not(:last-child) {
margin-right: 0;
margin-bottom: 6rem; } }
@media (max-width: 56.25em) {
.row [class^='col-'] {
width: 100% !important; } }
.row .col-1-of-2 { .row .col-1-of-2 {
width: calc((100% - 6rem) / 2); } width: calc((100% - 6rem) / 2); }
.row .col-1-of-3 { .row .col-1-of-3 {
@@ -588,9 +645,15 @@ body {
padding: 10rem 0; padding: 10rem 0;
font-size: 1.4rem; font-size: 1.4rem;
color: #f7f7f7; } color: #f7f7f7; }
@media (max-width: 56.25em) {
.footer {
padding: 8rem 0; } }
.footer__logo-box { .footer__logo-box {
text-align: center; text-align: center;
margin-bottom: 8rem; } margin-bottom: 8rem; }
@media (max-width: 56.25em) {
.footer__logo-box {
margin-bottom: 6rem; } }
.footer__logo { .footer__logo {
width: 15rem; width: 15rem;
height: auto; } height: auto; }
@@ -598,6 +661,10 @@ body {
border-top: 1px solid #777; border-top: 1px solid #777;
padding-top: 2rem; padding-top: 2rem;
display: inline-block; } display: inline-block; }
@media (max-width: 56.25em) {
.footer__navigation {
width: 100%;
text-align: center; } }
.footer__list { .footer__list {
list-style: none; } list-style: none; }
.footer__item { .footer__item {
@@ -621,6 +688,10 @@ body {
display: inline-block; display: inline-block;
width: 80%; width: 80%;
float: right; } float: right; }
@media (max-width: 56.25em) {
.footer__copyright {
width: 100%;
float: none; } }
.navigation__checkbox { .navigation__checkbox {
display: none; } display: none; }
@@ -637,6 +708,14 @@ body {
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1); box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
text-align: center; text-align: center;
cursor: pointer; } cursor: pointer; }
@media (max-width: 56.25em) {
.navigation__button {
top: 4rem;
right: 4rem; } }
@media (max-width: 37.5em) {
.navigation__button {
top: 2.5rem;
right: 2.5rem; } }
.navigation__background { .navigation__background {
height: 6rem; height: 6rem;
@@ -648,6 +727,14 @@ body {
background-image: radial-gradient(#7ed56f, #28b485); background-image: radial-gradient(#7ed56f, #28b485);
z-index: 1000; z-index: 1000;
transition: transform 0.8s cubic-bezier(0.83, 0, 0.17, 1); } transition: transform 0.8s cubic-bezier(0.83, 0, 0.17, 1); }
@media (max-width: 56.25em) {
.navigation__background {
top: 4.5rem;
right: 4.5rem; } }
@media (max-width: 37.5em) {
.navigation__background {
top: 3rem;
right: 3rem; } }
.navigation__nav { .navigation__nav {
height: 100vh; height: 100vh;
@@ -737,6 +824,9 @@ body {
background-color: #f7f7f7; background-color: #f7f7f7;
padding: 25rem 0; padding: 25rem 0;
margin-top: -20vh; } margin-top: -20vh; }
@media (max-width: 56.25em) {
.section-about {
padding: 20rem 0; } }
.section-features { .section-features {
padding: 20rem 0; padding: 20rem 0;
@@ -746,15 +836,24 @@ body {
transform: skewY(-7deg); } transform: skewY(-7deg); }
.section-features > * { .section-features > * {
transform: skewY(7deg); } transform: skewY(7deg); }
@media (max-width: 56.25em) {
.section-features {
padding: 15rem 0; } }
.section-tours { .section-tours {
background-color: #f7f7f7; background-color: #f7f7f7;
padding: 25rem 0 15rem 0; padding: 25rem 0 15rem 0;
margin-top: -10rem; } margin-top: -10rem; }
@media (max-width: 56.25em) {
.section-tours {
padding: 20rem 0 10rem 0; } }
.section-stories { .section-stories {
position: relative; position: relative;
padding: 15rem 0; } padding: 15rem 0; }
@media (max-width: 56.25em) {
.section-stories {
padding: 10rem 0; } }
.section-book { .section-book {
padding: 15rem 0; padding: 15rem 0;
-1
View File
@@ -1 +0,0 @@
../color-support/bin.js
-1
View File
@@ -1 +0,0 @@
../mkdirp/bin/cmd.js
-1
View File
@@ -1 +0,0 @@
../node-gyp/bin/node-gyp.js
-1
View File
@@ -1 +0,0 @@
../node-sass/bin/node-sass
-1
View File
@@ -1 +0,0 @@
../which/bin/node-which
-1
View File
@@ -1 +0,0 @@
../nopt/bin/nopt.js
-1
View File
@@ -1 +0,0 @@
../resolve/bin/resolve
-1
View File
@@ -1 +0,0 @@
../rimraf/bin.js
-1
View File
@@ -1 +0,0 @@
../sass-graph/bin/sassgraph
-1
View File
@@ -1 +0,0 @@
../semver/bin/semver.js
@@ -12,3 +12,46 @@
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
// MEDIA QUERY MANAGER
/*
* 0 - 600px : Phone
* 600 - 900px : Tablet portrait
* 900 - 1200px : Tablet landscape
* 1200 - 1800px : Normal desktop
* 1800px + : Big desktop
* $breakpoint argument choices
- phone
- tab-port
- tab-land
- big-desktop
1em = 16px
*/
@mixin respond($breakpoint) {
@if $breakpoint == phone {
@media (max-width: 37.5em) {
//600px
@content;
}
}
@if $breakpoint == tab-port {
@media (max-width: 56.25em) {
//900px
@content;
}
}
@if $breakpoint == tab-land {
@media (max-width: 75em) {
//1200px
@content;
}
}
@if $breakpoint == big-desktop {
@media (min-width: 112.5em) {
//1800px
@content;
}
}
}
@@ -22,6 +22,7 @@ $color-black: #000;
//Grid Spacing //Grid Spacing
$grid-width: 114rem; $grid-width: 114rem;
$gutter-vertical: 8rem; $gutter-vertical: 8rem;
$gutter-vertical-small: 6rem;
$gutter-horizontal: 6rem; $gutter-horizontal: 6rem;
//Font sizing //Font sizing
+26 -7
View File
@@ -1,16 +1,35 @@
*, *,
::after, ::after,
::before { ::before {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: inherit; box-sizing: inherit;
} }
html { html {
font-size: 62.5%; font-size: 62.5%; // 1rem = 10px; 10px/16px = 62.5%
@include respond(big-desktop) {
font-size: 75%;
}
@include respond(tab-land) {
font-size: 56.25%;
}
@include respond(tab-port) {
font-size: 50%; //1rem = 8px
}
// not needes as it would be the same as tab-port
// @include respond(phone) {
// font-size: 50%;
// }
} }
body { body {
padding: 3rem; padding: 3rem;
box-sizing: border-box; box-sizing: border-box;
}
@include respond(tab-port) {
padding: 0;
}
}
+71 -50
View File
@@ -1,70 +1,91 @@
body { body {
font-family: "Lato",Verdana, Geneva, Tahoma, sans-serif; font-family: "Lato", Verdana, Geneva, Tahoma, sans-serif;
font-weight: 400; font-weight: 400;
/* font-size: 16px; */ /* font-size: 16px; */
line-height: 1.7; line-height: 1.7;
color: $color-gray-dark; color: $color-gray-dark;
} }
.heading--primary { .heading--primary {
color: $color-white; color: $color-white;
text-transform: uppercase; text-transform: uppercase;
margin-bottom: 6rem; margin-bottom: 6rem;
&-main { &-main {
display: block; display: block;
font-size: 6rem; font-size: 6rem;
font-weight: 400; font-weight: 400;
letter-spacing: 3.5rem; letter-spacing: 3.5rem;
animation-name: slideLeft;
animation-duration: 1s;
animation-timing-function: ease-in;
}
&-sub { animation-name: slideLeft;
display: block; animation-duration: 1s;
font-size: 2rem; animation-timing-function: ease-in;
font-weight: 700;
letter-spacing: 1.75rem; @include respond(phone) {
letter-spacing: 1rem;
animation-name: slideRight; font-size: 5rem;
animation-duration: 1s;
animation-timing-function: ease-in;
} }
}
&-sub {
display: block;
font-size: 2rem;
font-weight: 700;
letter-spacing: 1.75rem;
animation-name: slideRight;
animation-duration: 1s;
animation-timing-function: ease-in;
@include respond(phone) {
letter-spacing: .5rem;
}
}
} }
.heading--secondary { .heading--secondary {
font-size: 3.5rem; font-size: 3.5rem;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 2px; letter-spacing: 2px;
display: inline-block; display: inline-block;
background-image: linear-gradient(to right, $color-primary-light, $color-primary-dark); background-image: linear-gradient(
to right,
background-clip: floor($number: 0); $color-primary-light,
-webkit-background-clip: text; $color-primary-dark
color: transparent; );
transition: all .2s; background-clip: floor($number: 0);
-webkit-background-clip: text;
color: transparent;
&:hover { transition: all 0.2s;
transform: skewY(2deg) skewX(15deg) scale(1.1);
text-shadow: .5rem 1rem 2rem rgba($color-black, .2); @include respond(tab-port) {
} font-size: 3rem
}
@include respond(phone) {
font-size: 2.5rem;
}
&:hover {
transform: skewY(2deg) skewX(15deg) scale(1.1);
text-shadow: 0.5rem 1rem 2rem rgba($color-black, 0.2);
}
} }
.heading--terciary { .heading--terciary {
font-size: $default-font-size; font-size: $default-font-size;
font-weight: 700; font-weight: 700;
text-transform: capitalize; text-transform: capitalize;
} }
.paragraph { .paragraph {
font-size: $default-font-size; font-size: $default-font-size;
&:not(:last-child) { &:not(:last-child) {
margin-bottom: 3rem; margin-bottom: 3rem;
} }
} }
+18
View File
@@ -4,9 +4,17 @@
font-size: 1.4rem; font-size: 1.4rem;
color: $color-grey-light-1; color: $color-grey-light-1;
@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 {
@@ -18,6 +26,11 @@
border-top: 1px solid $color-gray-dark; border-top: 1px solid $color-gray-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 @@
display: inline-block; display: inline-block;
width: 80%; width: 80%;
float: right; float: right;
@include respond(tab-port) {
width: 100%;
float: none;
}
} }
} }
+19 -2
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-vertical-small;
}
}
@include respond(tab-port) {
max-width: 50rem;
padding: 0 3rem;
} }
@include clearfix; @include clearfix;
@@ -13,7 +22,15 @@
float: left; float: left;
&:not(:last-child) { &:not(:last-child) {
margin-right: $gutter-horizontal; margin-right: $gutter-horizontal;
@include respond(tab-port) {
margin-right: 0;
margin-bottom: $gutter-vertical-small;
}
}
@include respond(tab-port) {
width: 100% !important;
} }
} }
@@ -40,4 +57,4 @@
.col-3-of-4 { .col-3-of-4 {
width: calc(3 * ((100% - 3 * #{$gutter-horizontal}) / 4) + 2 * #{$gutter-horizontal}); width: calc(3 * ((100% - 3 * #{$gutter-horizontal}) / 4) + 2 * #{$gutter-horizontal});
} }
} }
+4
View File
@@ -5,6 +5,10 @@
background-position: top; background-position: top;
clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 0% 100%); clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 0% 100%);
@include respond(phone) {
clip-path: polygon(0% 0%, 100% 0%, 100% 85vh, 0% 100%);
}
position: relative; position: relative;
&__logo-box { &__logo-box {
+19 -1
View File
@@ -14,6 +14,16 @@
z-index: 2000; z-index: 2000;
box-shadow: 0 1rem 3rem rgba($color-black, 0.1); box-shadow: 0 1rem 3rem rgba($color-black, 0.1);
@include respond(tab-port) {
top: 4rem;
right: 4rem;
}
@include respond(phone) {
top: 2.5rem;
right: 2.5rem;
}
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@@ -33,7 +43,15 @@
z-index: 1000; z-index: 1000;
transition: transform 0.8s cubic-bezier(0.83, 0, 0.17, 1); transition: transform 0.8s cubic-bezier(0.83, 0, 0.17, 1);
// transform: scale(80); @include respond(tab-port) {
top: 4.5rem;
right: 4.5rem;
}
@include respond(phone) {
top: 3rem;
right: 3rem;
}
} }
&__nav { &__nav {
+15
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,28 @@
& > * { & > * {
transform: skewY(7deg); transform: skewY(7deg);
} }
@include respond(tab-port) {
padding: 15rem 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: -10rem; margin-top: -10rem;
@include respond(tab-port) {
padding: 20rem 0 10rem 0;
}
} }
.section-stories { .section-stories {
position: relative; position: relative;
padding: 15rem 0; padding: 15rem 0;
@include respond(tab-port) {
padding: 10rem 0;
}
} }
.section-book { .section-book {