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
+261 -16

No files matched your search

+100 -1
View File
@@ -1,4 +1,19 @@
@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,
::before {
@@ -8,10 +23,22 @@
html {
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 {
padding: 3rem;
box-sizing: border-box; }
@media (max-width: 56.25em) {
body {
padding: 0; } }
@keyframes slideLeft {
0% {
@@ -60,6 +87,10 @@ body {
animation-name: slideLeft;
animation-duration: 1s;
animation-timing-function: ease-in; }
@media (max-width: 37.5em) {
.heading--primary-main {
letter-spacing: 1rem;
font-size: 5rem; } }
.heading--primary-sub {
display: block;
font-size: 2rem;
@@ -68,6 +99,9 @@ body {
animation-name: slideRight;
animation-duration: 1s;
animation-timing-function: ease-in; }
@media (max-width: 37.5em) {
.heading--primary-sub {
letter-spacing: .5rem; } }
.heading--secondary {
font-size: 3.5rem;
@@ -79,7 +113,13 @@ body {
background-clip: 0;
-webkit-background-clip: text;
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 {
transform: skewY(2deg) skewX(15deg) scale(1.1);
text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2); }
@@ -539,6 +579,9 @@ body {
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 {
position: absolute;
top: 4rem;
@@ -562,6 +605,13 @@ body {
margin: 0 auto; }
.row:not(:last-child) {
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 {
content: "";
display: table;
@@ -570,6 +620,13 @@ body {
float: left; }
.row [class^='col-']:not(:last-child) {
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 {
width: calc((100% - 6rem) / 2); }
.row .col-1-of-3 {
@@ -588,9 +645,15 @@ body {
padding: 10rem 0;
font-size: 1.4rem;
color: #f7f7f7; }
@media (max-width: 56.25em) {
.footer {
padding: 8rem 0; } }
.footer__logo-box {
text-align: center;
margin-bottom: 8rem; }
@media (max-width: 56.25em) {
.footer__logo-box {
margin-bottom: 6rem; } }
.footer__logo {
width: 15rem;
height: auto; }
@@ -598,6 +661,10 @@ body {
border-top: 1px solid #777;
padding-top: 2rem;
display: inline-block; }
@media (max-width: 56.25em) {
.footer__navigation {
width: 100%;
text-align: center; } }
.footer__list {
list-style: none; }
.footer__item {
@@ -621,6 +688,10 @@ body {
display: inline-block;
width: 80%;
float: right; }
@media (max-width: 56.25em) {
.footer__copyright {
width: 100%;
float: none; } }
.navigation__checkbox {
display: none; }
@@ -637,6 +708,14 @@ body {
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
text-align: center;
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 {
height: 6rem;
@@ -648,6 +727,14 @@ body {
background-image: radial-gradient(#7ed56f, #28b485);
z-index: 1000;
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 {
height: 100vh;
@@ -737,6 +824,9 @@ body {
background-color: #f7f7f7;
padding: 25rem 0;
margin-top: -20vh; }
@media (max-width: 56.25em) {
.section-about {
padding: 20rem 0; } }
.section-features {
padding: 20rem 0;
@@ -746,15 +836,24 @@ body {
transform: skewY(-7deg); }
.section-features > * {
transform: skewY(7deg); }
@media (max-width: 56.25em) {
.section-features {
padding: 15rem 0; } }
.section-tours {
background-color: #f7f7f7;
padding: 25rem 0 15rem 0;
margin-top: -10rem; }
@media (max-width: 56.25em) {
.section-tours {
padding: 20rem 0 10rem 0; } }
.section-stories {
position: relative;
padding: 15rem 0; }
@media (max-width: 56.25em) {
.section-stories {
padding: 10rem 0; } }
.section-book {
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%;
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-width: 114rem;
$gutter-vertical: 8rem;
$gutter-vertical-small: 6rem;
$gutter-horizontal: 6rem;
//Font sizing
+20 -1
View File
@@ -7,10 +7,29 @@
}
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 {
padding: 3rem;
box-sizing: border-box;
@include respond(tab-port) {
padding: 0;
}
}
+24 -3
View File
@@ -20,6 +20,11 @@ body {
animation-name: slideLeft;
animation-duration: 1s;
animation-timing-function: ease-in;
@include respond(phone) {
letter-spacing: 1rem;
font-size: 5rem;
}
}
&-sub {
@@ -31,6 +36,10 @@ body {
animation-name: slideRight;
animation-duration: 1s;
animation-timing-function: ease-in;
@include respond(phone) {
letter-spacing: .5rem;
}
}
}
@@ -42,17 +51,29 @@ body {
display: inline-block;
background-image: linear-gradient(to right, $color-primary-light, $color-primary-dark);
background-image: linear-gradient(
to right,
$color-primary-light,
$color-primary-dark
);
background-clip: floor($number: 0);
-webkit-background-clip: text;
color: transparent;
transition: all .2s;
transition: all 0.2s;
@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: .5rem 1rem 2rem rgba($color-black, .2);
text-shadow: 0.5rem 1rem 2rem rgba($color-black, 0.2);
}
}
+18
View File
@@ -4,9 +4,17 @@
font-size: 1.4rem;
color: $color-grey-light-1;
@include respond(tab-port) {
padding: 8rem 0;
}
&__logo-box {
text-align: center;
margin-bottom: 8rem;
@include respond(tab-port) {
margin-bottom: 6rem;
}
}
&__logo {
@@ -18,6 +26,11 @@
border-top: 1px solid $color-gray-dark;
padding-top: 2rem;
display: inline-block;
@include respond(tab-port) {
width: 100%;
text-align: center;
}
}
&__list {
@@ -56,5 +69,10 @@
display: inline-block;
width: 80%;
float: right;
@include respond(tab-port) {
width: 100%;
float: none;
}
}
}
+17
View File
@@ -4,6 +4,15 @@
&:not(:last-child) {
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;
@@ -14,6 +23,14 @@
&:not(:last-child) {
margin-right: $gutter-horizontal;
@include respond(tab-port) {
margin-right: 0;
margin-bottom: $gutter-vertical-small;
}
}
@include respond(tab-port) {
width: 100% !important;
}
}
+4
View File
@@ -5,6 +5,10 @@
background-position: top;
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;
&__logo-box {
+19 -1
View File
@@ -14,6 +14,16 @@
z-index: 2000;
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;
cursor: pointer;
@@ -33,7 +43,15 @@
z-index: 1000;
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 {
+15
View File
@@ -2,6 +2,10 @@
background-color: $color-grey-light-1;
padding: 25rem 0;
margin-top: -20vh;
@include respond(tab-port) {
padding: 20rem 0;
}
}
.section-features {
@@ -20,17 +24,28 @@
& > * {
transform: skewY(7deg);
}
@include respond(tab-port) {
padding: 15rem 0;
}
}
.section-tours {
background-color: $color-grey-light-1;
padding: 25rem 0 15rem 0;
margin-top: -10rem;
@include respond(tab-port) {
padding: 20rem 0 10rem 0;
}
}
.section-stories {
position: relative;
padding: 15rem 0;
@include respond(tab-port) {
padding: 10rem 0;
}
}
.section-book {