Skip to content

Commit

Permalink
progress responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
fbohz committed Jun 28, 2020
1 parent 2383cdd commit 86faf5d
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 3 deletions.
31 changes: 29 additions & 2 deletions museo-demo/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ body {
background-color: #f7f7f7;
padding: 25rem 0;
margin-top: -20vh; }
@media only screen and (max-width: 56.25em) {
.section-about {
padding: 20rem 0; } }

.section-features {
padding: 20rem 0;
Expand All @@ -168,29 +171,53 @@ body {
margin-top: -10rem; }
.section-features > * {
transform: skewY(7deg); }
@media only screen and (max-width: 56.25em) {
.section-features {
padding: 10rem 0; } }

.section-tours {
background-color: #f7f7f7;
padding: 25rem 0 15rem 0;
margin-top: -10rem; }
@media only screen and (max-width: 56.25em) {
.section-tours {
padding: 20rem 0 10rem 0; } }

.section-stories {
position: relative;
padding: 15rem 0; }
@media only screen and (max-width: 56.25em) {
.section-stories {
padding: 10rem 0; } }

.section-book {
padding: 15rem 0;
background-image: linear-gradient(to right bottom, #7ed56f, #28b485); }
@media only screen and (max-width: 56.25em) {
.section-book {
padding: 10rem 0; } }

.book {
background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 50%, transparent 50%), url(../img/nat-10.jpg);
background-size: 100%;
border-radius: 3px;
box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
height: 50rem; }
box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2); }
@media only screen and (max-width: 75em) {
.book {
background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 65%, transparent 65%), url(../img/nat-10.jpg);
background-size: cover; } }
@media only screen and (max-width: 56.25em) {
.book {
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%), url(../img/nat-10.jpg); } }
.book__form {
width: 50%;
padding: 6rem; }
@media only screen and (max-width: 75em) {
.book__form {
width: 65%; } }
@media only screen and (max-width: 56.25em) {
.book__form {
width: 100%; } }

.btn {
/* fancy animation */
Expand Down
46 changes: 45 additions & 1 deletion museo-demo/sass/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -22,23 +26,41 @@
transform: skewY(7deg);
}

@include respond(tab-port) {
padding: 10rem 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 {
// background-color: $color-grey-light-1;
position: relative;
padding: 15rem 0;

@include respond(tab-port) {
padding: 10rem 0;
}
}

.section-book {
padding: 15rem 0;
background-image: linear-gradient(to right bottom, $color-primary-light, $color-primary-dark);

@include respond(tab-port) {
padding: 10rem 0;
}


}

.book {
Expand All @@ -51,10 +73,32 @@
border-radius: 3px;
box-shadow: 0 1.5rem 4rem rgba($color-black, .2);

height: 50rem;
@include respond(tab-land) {
background-image: linear-gradient(105deg,
rgba($color-white, .9) 0%,
rgba($color-white, .9) 65%,
transparent 65%) ,
url(../img/nat-10.jpg);
background-size: cover;
}

@include respond(tab-port) {
background-image: linear-gradient(to right,
rgba($color-white, .9) 0%,
rgba($color-white, .9) 100%),
url(../img/nat-10.jpg);
}

&__form {
width: 50%;
padding: 6rem;

@include respond(tab-land) {
width: 65%;
}

@include respond(tab-port) {
width: 100%;
}
}
}

0 comments on commit 86faf5d

Please sign in to comment.