Sidebar active state - need to detect active better

This commit is contained in:
James Barnsley
2017-06-20 08:29:56 +12:00
parent 9dfb4df341
commit da19251e5a
7 changed files with 51 additions and 39 deletions

View File

@ -45,6 +45,7 @@ input[type="button"],
input[type="submit"] {
@include animate();
@include feature_font();
@include gradient_overlay();
display: inline-block;
padding: 9px 30px 7px;
margin: 0 20px 10px 0;
@ -57,23 +58,6 @@ input[type="submit"] {
position: relative;
border: 0 !important;
&:before {
@include animate();
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
z-index: 9;
background: -webkit-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -moz-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -o-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
}
&:hover{
cursor: pointer;
box-shadow: 1px 2px 6px rgba(0,0,0,0.2);