Skip to content

Instantly share code, notes, and snippets.

@xiaody
Created January 19, 2016 15:19
Show Gist options
  • Save xiaody/1f1b4fa02ad259365e08 to your computer and use it in GitHub Desktop.
Save xiaody/1f1b4fa02ad259365e08 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* 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);
}
<!-- content to be placed inside <body>…</body> -->
<div class=keypad>
<span>&plus;</span>
<span>&minus;</span>
<span>&times;</span>
<span>&divide;</span>
</div>
// alert('Hello world!');
{"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