Skip to content

Instantly share code, notes, and snippets.

@grapho
Last active March 18, 2016 15:12
Show Gist options
  • Save grapho/eba6597e7959e40298d5 to your computer and use it in GitHub Desktop.
Save grapho/eba6597e7959e40298d5 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<div class="thingy">
<p>hi</p>
</div>
* {
box-sizing: border-box;
}
html {
background: linear-gradient(#ccc, #fff);
padding: 16px;
height: 100%;
min-height: 100%;
}
body {
background: linear-gradient(#fff, #ccc);
padding: 16px;
margin: 0;
height: 100%;
min-height: 100%;
}
div#root {
background: linear-gradient(#ccc, #fff);
padding: 16px;
height: 100%;
min-height: 100%;
}
div#root > .ember-view {
background: linear-gradient(#fff, #ccc);
padding: 16px;
height: 100%;
min-height: 100%;
}
.thingy {
background: linear-gradient(#ccc, #fff);
display: flex;
padding: 16px;
height: 100%;
}
.thingy > p {
display: block;
background: linear-gradient(35deg, #f00, #fa0);
color: #fff;
padding: 16px;
margin: auto;
}
{
"version": "0.6.4",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.1/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.4.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.1/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment