Skip to content

Instantly share code, notes, and snippets.

@Gaurav0
Last active June 12, 2017 23:12
Show Gist options
  • Save Gaurav0/cc5caf5b19e5505ae38ff5ce147272ba to your computer and use it in GitHub Desktop.
Save Gaurav0/cc5caf5b19e5505ae38ff5ce147272ba to your computer and use it in GitHub Desktop.
Modal Dialog Test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
}
// Have to copy this from addon due to no support for scss
.ember-modal-overlay {
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 50;
}
.ember-modal-dialog {
z-index: 50;
position: fixed;
&.ember-modal-dialog-in-place {
position: relative;
}
}
.ember-modal-dialog {
border-radius: 8px;
background-color: #fff;
box-shadow: 0 0 10px #222;
padding: 10px;
}
.ember-modal-overlay.translucent {
background-color: rgba(#808080, .77);
}
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#modal-dialog}}Oh hai there!{{/modal-dialog}}
<br>
<br>
{
"version": "0.7.2",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.9.0",
"ember-data": "2.8.0",
"ember-template-compiler": "2.9.0"
},
"addons": {
"ember-modal-dialog": "0.9.0"
}
}
@Rayane23
Copy link

it's looks like it took you some time , well done m8 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment