Created
October 21, 2014 08:58
-
-
Save mehwww/3c3bdd6ffe4556a76296 to your computer and use it in GitHub Desktop.
A Pen by meh.
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
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Document</title> | |
| <link href="http://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap-theme.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="keys-icon"></div> | |
| <div class="command-icon"></div> | |
| </body> | |
| </html> |
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
| $('.keys-icon').click(function(){ | |
| $(this).toggleClass('icon-hide') | |
| }) |
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
| .keys-icon{ | |
| display: inline-block; | |
| height:16px; | |
| width:26px; | |
| padding: 4px 6px; | |
| margin: 0 4px; | |
| font: normal 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| text-align: center; | |
| text-decoration: none; | |
| border-radius: 4px; | |
| border: 1px solid #aaa; | |
| cursor: default; | |
| user-select: none; | |
| background-color: #fafafa; | |
| color: #333; | |
| text-shadow: 0 0 1px #fff; | |
| box-shadow: 1px 1px 1px #333; | |
| -webkit-transform: translateX(0); | |
| transform: translateX(0); | |
| -webkit-transition: .3s ease all; | |
| transition: .3s ease all; | |
| } | |
| .icon-hide{ | |
| -webkit-transform: translateX(310px); | |
| transform: translateX(310px); | |
| } | |
| .keys-icon:after{ | |
| position:relative; | |
| content:"Ctrl" | |
| } | |
| .command-icon{ | |
| display: inline-block; | |
| height:16px; | |
| width:26px; | |
| padding: 3px 5px; | |
| margin: 0 4px; | |
| font: normal 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| text-align: center; | |
| text-decoration: none; | |
| border-radius: 4px; | |
| border: 2px solid #aaa; | |
| cursor: default; | |
| user-select: none; | |
| background-color: #000; | |
| color: #fafafa; | |
| text-shadow: 0 0 1px #fff; | |
| box-shadow: 1px 1px 1px #333; | |
| } | |
| .command-icon:after{ | |
| top:-2px; | |
| left:-4px; | |
| position:relative; | |
| content:">_" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment