Last active
October 28, 2017 07:40
-
-
Save dennisroche/ff83ffe102d4abb7b405fb1b0e1e9f5c to your computer and use it in GitHub Desktop.
Style <kbd> tags
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
| kbd | |
| { | |
| font-size: 15px; | |
| line-height: 1.4; | |
| display: inline-block; | |
| margin: 0 .1em; | |
| padding: .1em .6em; | |
| color: #333; | |
| border: 1px solid #ccc; | |
| -webkit-border-radius: 3px; | |
| -moz-border-radius: 3px; | |
| border-radius: 3px; | |
| background-color: #f7f7f7; | |
| -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.2),0 0 0 2px #fff inset; | |
| -moz-box-shadow: 0 1px 0 rgba(0,0,0,.2),0 0 0 2px #fff inset; | |
| box-shadow: 0 1px 0 rgba(0,0,0,.2),0 0 0 2px #fff inset; | |
| text-shadow: 0 1px 0 #fff; | |
| } |
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
| kbd{-moz-border-radius:3px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 2px #fff inset;-webkit-border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 2px #fff inset;background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 2px #fff inset;color:#333;display:inline-block;font-size:15px;line-height:1.4;margin:0 .1em;padding:.1em .6em;text-shadow:0 1px 0 #fff} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment