From 8aee15c0f16cdffc7f3dbd71a915bb0ed67f9385 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 9 Feb 2018 16:26:01 -0500 Subject: [PATCH] move modal dialog custom styles to its own file --- src/app/ui/modal-dialog-custom.js | 7 +------ src/app/ui/styles/modal-dialog-custom-styles.js | 9 +++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 src/app/ui/styles/modal-dialog-custom-styles.js diff --git a/src/app/ui/modal-dialog-custom.js b/src/app/ui/modal-dialog-custom.js index 192dae5a97..470b4343e7 100644 --- a/src/app/ui/modal-dialog-custom.js +++ b/src/app/ui/modal-dialog-custom.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`
${text}
`, null, { label: null }) diff --git a/src/app/ui/styles/modal-dialog-custom-styles.js b/src/app/ui/styles/modal-dialog-custom-styles.js new file mode 100644 index 0000000000..70209f8d44 --- /dev/null +++ b/src/app/ui/styles/modal-dialog-custom-styles.js @@ -0,0 +1,9 @@ +var csjs = require('csjs-inject') + +var css = csjs` + .prompt_text { + width: 300px; + } +` + +module.exports = css