Last active
December 11, 2015 16:59
-
-
Save roine/4631564 to your computer and use it in GitHub Desktop.
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
| <style> | |
| kbd { | |
| padding: 0.1em 0.6em; | |
| border: 1px solid #ccc; | |
| font-size: 11px; | |
| font-family: Arial,Helvetica,sans-serif; | |
| background-color: #f7f7f7; | |
| color: #333; | |
| -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | |
| -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | |
| box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | |
| -moz-border-radius: 3px; | |
| -webkit-border-radius: 3px; | |
| border-radius: 3px; | |
| display: inline-block; | |
| margin: 0 0.1em; | |
| text-shadow: 0 1px 0 #fff; | |
| line-height: 1.4; | |
| white-space: nowrap; | |
| } | |
| </style> | |
| <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>delete</kbd> |
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
| /* | |
| * A better KBD style | |
| * KBD stands for keyboard and is use to wrap a command input | |
| * The following snippet come from stackoverflow | |
| */ | |
| kbd { | |
| padding: 0.1em 0.6em; | |
| border: 1px solid #ccc; | |
| font-size: 11px; | |
| font-family: Arial,Helvetica,sans-serif; | |
| background-color: #f7f7f7; | |
| color: #333; | |
| -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | |
| -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | |
| box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | |
| -moz-border-radius: 3px; | |
| -webkit-border-radius: 3px; | |
| border-radius: 3px; | |
| display: inline-block; | |
| margin: 0 0.1em; | |
| text-shadow: 0 1px 0 #fff; | |
| line-height: 1.4; | |
| white-space: nowrap; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment