Skip to content

Commit

Permalink
Merge branch 'feature/nav-list-tweak' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Nov 21, 2016
2 parents f047b3d + 5ff2dcc commit cf23bb0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions _sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
display: none;
}

@include breakpoint(max-width $large) {
@include breakpoint(max-width ($large - 1px)) {

label {
position: relative;
Expand Down Expand Up @@ -428,7 +428,7 @@
}
}

@include breakpoint(max-width $large) {
@include breakpoint(max-width ($large - 1px)) {
position: relative;
max-height: 0;
opacity: 0;
Expand All @@ -442,7 +442,7 @@
}
}

@include breakpoint(max-width $large) {
@include breakpoint(max-width ($large - 1px)) {
.nav__list input:checked ~ .nav__items {
-webkit-transition: 0.5s ease-in-out;
transition: 0.5s ease-in-out;
Expand Down
34 changes: 17 additions & 17 deletions docs/_sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
display: none;
}

@include breakpoint(max-width $large) {
@include breakpoint(max-width ($large - 1px)) {

label {
position: relative;
Expand Down Expand Up @@ -385,23 +385,23 @@
input:checked + label:hover:after {
transform: rotate(0);
}
}

ul {
margin-bottom: 1em;
}
ul {
margin-bottom: 1em;
}

a {
display: block;
padding: 0.25em 0;
a {
display: block;
padding: 0.25em 0;

@include breakpoint($large) {
padding-top: 0.125em;
padding-bottom: 0.125em;
}
@include breakpoint($large) {
padding-top: 0.125em;
padding-bottom: 0.125em;
}

&:hover {
text-decoration: underline;
&:hover {
text-decoration: underline;
}
}
}
}
Expand All @@ -428,7 +428,7 @@
}
}

@include breakpoint(max-width $large) {
@include breakpoint(max-width ($large - 1px)) {
position: relative;
max-height: 0;
opacity: 0;
Expand All @@ -442,13 +442,13 @@
}
}

@include breakpoint(max-width $large) {
@include breakpoint(max-width ($large - 1px)) {
.nav__list input:checked ~ .nav__items {
-webkit-transition: 0.5s ease-in-out;
transition: 0.5s ease-in-out;
max-height: 100vh;
opacity: 1;
overflow: visible;
opacity: 1;
margin-top: 1em;
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
Expand Down

0 comments on commit cf23bb0

Please sign in to comment.