Created
January 19, 2016 15:19
-
-
Save xiaody/1f1b4fa02ad259365e08 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
This file contains 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.keypad { | |
display: flex; | |
flex-wrap: wrap; | |
align-items: center; | |
justify-content: center; | |
align-content: center; | |
width: 192px; | |
height: 192px; | |
font-size: 64px; | |
font-family: monospace; | |
color: white; | |
background: linear-gradient(15deg, #f06, #f64); | |
} | |
.keypad span { | |
flex: 40%; | |
height: 50%; | |
margin: 1px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
background: rgba(255, 255, 255, .1); | |
} |
This file contains 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
<!-- content to be placed inside <body>…</body> --> | |
<div class=keypad> | |
<span>+</span> | |
<span>−</span> | |
<span>×</span> | |
<span>÷</span> | |
</div> |
This file contains 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 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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment