-
-
Save 304352303/178711254318ea589a0d25a06360b8aa to your computer and use it in GitHub Desktop.
Extending the hit area — with borders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Extending the hit area — with borders | |
*/ | |
button { | |
padding: .3em .5em; | |
border: 10px solid transparent; | |
border-radius: 50%; | |
background: #58a; | |
background-clip: padding-box; | |
box-shadow: 0 0 0 1px rgba(255,0,0,.3) inset; | |
color: white; | |
font: bold 150%/1 sans-serif; | |
cursor: pointer; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button>+</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment