Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Mar 2, 2017
1 parent b0b9959 commit 9f003e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions assets/targets/injection/nav/_localnav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@
}

/* close and back buttons */
&__close-btn,
&__back-btn {
@include rem(font-size, 12px);
@include rem(padding, 20px);
background-color: darken($menu, 3%);
color: rgba(255, 255, 255, .6);
color: rgba(255, 255, 255, .7);
display: block;
font-weight: normal;
line-height: 1.96;
Expand All @@ -66,6 +65,10 @@
animation: chevron-left 1s infinite ease-in-out;
}
}

&:hover {
text-decoration: underline;
}
}

/* add chevron to nested panel triggers */
Expand All @@ -74,7 +77,7 @@
@include rem(font-size, 24px);
content: '\203a';
float: right;
font-weight: $regular;
font-weight: 400;
line-height: .85;
z-index: 9;
}
Expand Down Expand Up @@ -106,7 +109,7 @@

&:hover,
&:focus {
color: $white;
color: #fff;
}

&:hover {
Expand All @@ -131,7 +134,7 @@
&:hover,
&:focus {
background-color: darken($menu, 3%);
color: $white;
color: #fff;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/targets/injection/nav/localnav.es6
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ LocalNav.prototype.initLocalNav = function () {

// Inject close button
var closeBtn = document.createElement('button');
closeBtn.className = 'localnav__close-btn button-ui';
closeBtn.className = 'localnav__back-btn button-ui';
closeBtn.textContent = 'Close';
closeBtn.setAttribute('type', 'button');
closeBtn.addEventListener('click', this.props.closeLocalNav);
Expand Down

0 comments on commit 9f003e1

Please sign in to comment.