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";
/*
* 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% {
@@ -42,7 +69,7 @@ body {
opacity: 1; } }
body {
font-family: "Lato",Verdana, Geneva, Tahoma, sans-serif;
font-family: "Lato", Verdana, Geneva, Tahoma, sans-serif;
font-weight: 400;
/* font-size: 16px; */
line-height: 1.7;
@@ -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;