move modal dialog custom styles to its own file

pull/1/head
Iuri Matias 7 years ago
parent 8b5a53b1e8
commit 8aee15c0f1
  1. 7
      src/app/ui/modal-dialog-custom.js
  2. 9
      src/app/ui/styles/modal-dialog-custom-styles.js

@ -1,12 +1,7 @@
var modal = require('./modaldialog.js')
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var css = require('./styles/modal-dialog-custom-styles')
var css = csjs`
.prompt_text {
width: 300px;
}
`
module.exports = {
alert: function (text) {
modal('', yo`<div>${text}</div>`, null, { label: null })

@ -0,0 +1,9 @@
var csjs = require('csjs-inject')
var css = csjs`
.prompt_text {
width: 300px;
}
`
module.exports = css
Loading…
Cancel
Save