mobile media queries

This commit is contained in:
andres alcocer
2018-11-20 00:21:26 -05:00
parent fb5fe91325
commit 494925c886
5 changed files with 55 additions and 17 deletions

View File

@@ -18,6 +18,10 @@
grid-template-columns: repeat(20, 1fr); grid-template-columns: repeat(20, 1fr);
column-gap: 0; column-gap: 0;
@include responsive(phone) {
width: 98vw;
}
&:hover &--movie { &:hover &--movie {
opacity: .3; opacity: .3;

View File

@@ -5,20 +5,24 @@
grid-column: 1 / 13; grid-column: 1 / 13;
text-align: center; text-align: center;
&__copyright { @include responsive(phone) {
color: #fff; padding-top: 10rem;
font-size: 1.8rem; }
&--link { &__copyright {
text-decoration: none; color: #fff;
color: $color-red-2; font-size: 1.8rem;
transition: all .3s;
} &--link {
text-decoration: none;
color: $color-red-2;
transition: all .3s;
&--link:hover {
color: orange;
}
} }
&--link:hover {
color: orange;
}
}
} }

View File

@@ -4,11 +4,19 @@
height: 65rem; height: 65rem;
display: inline-block; display: inline-block;
@include responsive(phone) {
height: 50rem;
}
&__container { &__container {
padding-top: 20rem; padding-top: 20rem;
padding-left: 4.5rem; padding-left: 4.5rem;
color: #fff; color: #fff;
@include responsive(phone) {
padding-left: 1rem;
}
&-heading { &-heading {
font-size: 6rem; font-size: 6rem;
@@ -62,6 +70,10 @@
line-height: 1.3; line-height: 1.3;
padding-top: 2.5rem; padding-top: 2.5rem;
font-size: 1.8rem; font-size: 1.8rem;
@include responsive(phone) {
width: 36rem;
}
} }
} }

View File

@@ -22,6 +22,10 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
@include responsive(phone) {
margin-left: 1rem;
}
a:first-child { a:first-child {
padding-left: .2%; padding-left: .2%;
color: $color-red; color: $color-red;
@@ -35,6 +39,10 @@
width: 2.2rem; width: 2.2rem;
padding-right: 2.5rem; padding-right: 2.5rem;
@include responsive(phone) {
display: none;
}
} }
&--userLogo { &--userLogo {
@@ -50,6 +58,10 @@
margin-right: 3rem; margin-right: 3rem;
} }
@include responsive(phone) {
display: none;
}
&:hover > .dropdownContent { &:hover > .dropdownContent {
transition: all .4s; transition: all .4s;
@@ -84,6 +96,10 @@
display: inline-block; display: inline-block;
} }
@include responsive(phone) {
display: none;
}
} }
&--logo { &--logo {
@@ -134,15 +150,17 @@
border: 1px solid #fff; border: 1px solid #fff;
transition: width .5s; transition: width .5s;
cursor: pointer; cursor: pointer;
opacity: 0; opacity: 0;
&:focus { &:focus {
padding-left: 4rem; padding-left: 4rem;
width: 22rem; width: 22rem;
cursor: text; cursor: text;
opacity: 1; opacity: 1;
@include responsive(phone) {
width: 16rem;
}
} }
} }
} }