Skip to content

Commit

Permalink
Add active animation to primary/secondary buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
magwalk committed Sep 21, 2016
1 parent e1c2e04 commit 527867b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/source/stylesheets/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
text-transform: uppercase;
border-radius: 0;
box-shadow: 3px 3px 0 0 $off-white;
transition: all 0.3s ease;

&.primary {
color: $inspec-grey;
background: $white;
border: 1px solid $inspec-blue;
}

&.primary:active,
&.secondary:active {
transform: translateX(2px) translateY(2px);
box-shadow: 0 0 0 0 $off-white;
}

&.transparent {
color: $inspec-grey;
background: transparent;
Expand Down

0 comments on commit 527867b

Please sign in to comment.