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 9029065 commit 3afe11c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions museo-demo/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,12 @@ body {
background-image: linear-gradient(to right bottom, rgba(126, 213, 111, 0.8), rgba(40, 180, 133, 0.8)), url("../img/hero.jpg");
background-size: cover;
background-position: top;
-webkit-clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%); }
@media only screen and (max-width: 37.5em) {
.header {
-webkit-clip-path: polygon(0 0, 100% 0, 100% 85vh, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 85vh, 0 100%); } }
.header__logo-box {
position: absolute;
top: 4rem;
Expand Down Expand Up @@ -725,6 +730,10 @@ body {
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
text-align: center;
cursor: pointer; }
@media only screen and (max-width: 56.25em) {
.navigation__button {
top: 4rem;
right: 4rem; } }

.navigation__background {
height: 6rem;
Expand All @@ -736,6 +745,10 @@ body {
background-image: radial-gradient(#7ed56f, #28b485);
z-index: 1000;
transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1); }
@media only screen and (max-width: 56.25em) {
.navigation__background {
top: 4.5rem;
right: 4.5rem; } }

.navigation__nav {
height: 100vh;
Expand Down
6 changes: 6 additions & 0 deletions museo-demo/sass/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
url('../img/hero.jpg');
background-size: cover;
background-position: top;
-webkit-clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
clip-path:polygon(0 0, 100% 0, 100% 75vh, 0 100%);

@include respond(phone) {
-webkit-clip-path: polygon(0 0, 100% 0, 100% 85vh, 0 100%);
clip-path:polygon(0 0, 100% 0, 100% 85vh, 0 100%);
}

&__logo-box {
position: absolute;
top: 4rem;
Expand Down
11 changes: 11 additions & 0 deletions museo-demo/sass/layout/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
box-shadow: 0 1rem 3rem rgba($color-black, .1);
text-align: center;
cursor: pointer;

@include respond(tab-port) {
top: 4rem;
right: 4rem;
}
}

&__background {
Expand All @@ -30,6 +35,12 @@
transition: transform .8s cubic-bezier(0.86, 0, 0.07, 1);

//transform: scale(80);


@include respond(tab-port) {
top: 4.5rem;
right: 4.5rem;
}
}

&__nav {
Expand Down

0 comments on commit 3afe11c

Please sign in to comment.