Skip to content

Commit

Permalink
feat(button): Increase hit area size of a button
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Feb 18, 2014
1 parent 6b82700 commit c168b48
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions scss/_button.scss
Expand Up @@ -29,6 +29,16 @@

cursor: pointer;

&:after {
// used to create a larger button "hit" area
position: absolute;
top: -6px;
right: -8px;
bottom: -6px;
left: -8px;
content: ' ';
}

.icon {
vertical-align: top;
}
Expand Down Expand Up @@ -198,11 +208,7 @@
clear: both;

&:after {
display: block;
visibility: hidden;
clear: both;
height: 0;
content: ".";
clear: both;
}
}

Expand Down

0 comments on commit c168b48

Please sign in to comment.