Skip to content

Commit

Permalink
follow coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mbao01 committed Mar 11, 2019
1 parent baaf5e2 commit 0faf402
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,23 @@ button{
color: var(--white-color);
position: relative;
z-index: 1;

&::before {
background-image: linear-gradient(
rgba(255,255,255,0.2),
rgba(255,255,255,0.2)
);
content: "";
height: 100%;
left: 0;
opacity: 0;
position: absolute;
top: 0;
left: 0;
transition: opacity 0.4s;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0;
transition: opacity 0.4s;
background-image: linear-gradient(
rgba(255,255,255,0.2),
rgba(255,255,255,0.2)
);
}
&:hover::before{
&:hover::before {
opacity: 1;
}
}
Expand Down

0 comments on commit 0faf402

Please sign in to comment.