aboutsummaryrefslogtreecommitdiffstats
path: root/ui/css.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-04-14 07:20:37 +0800
committerDan Finlay <somniac@me.com>2016-04-14 07:20:37 +0800
commit54f13b31ecceadf3571765cb9e022b1108a68c36 (patch)
tree8d5ce999cac9b9f32f7e76fe749f185019a06f10 /ui/css.js
parent9f1438b85b3dac8f1dd98f7bd6e101035cfce0a5 (diff)
parentb05e458ac2463c66751776466e05b8d0d7c21746 (diff)
downloadtangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.tar
tangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.tar.gz
tangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.tar.bz2
tangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.tar.lz
tangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.tar.xz
tangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.tar.zst
tangerine-wallet-browser-54f13b31ecceadf3571765cb9e022b1108a68c36.zip
Merge pull request #105 from MetaMask/MergeWithUI
Merge metamask-ui into metamask plugin
Diffstat (limited to 'ui/css.js')
-rw-r--r--ui/css.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/ui/css.js b/ui/css.js
new file mode 100644
index 000000000..b7bc7d363
--- /dev/null
+++ b/ui/css.js
@@ -0,0 +1,26 @@
+const fs = require('fs')
+
+module.exports = bundleCss
+
+var cssFiles = {
+ 'fonts.css': fs.readFileSync(__dirname+'/app/css/fonts.css', 'utf8'),
+ 'reset.css': fs.readFileSync(__dirname+'/app/css/reset.css', 'utf8'),
+ 'lib.css': fs.readFileSync(__dirname+'/app/css/lib.css', 'utf8'),
+ 'index.css': fs.readFileSync(__dirname+'/app/css/index.css', 'utf8'),
+ 'transitions.css': fs.readFileSync(__dirname+'/app/css/transitions.css', 'utf8'),
+}
+
+function bundleCss() {
+ var cssBundle = Object.keys(cssFiles).reduce(function(bundle, fileName){
+ var fileContent = cssFiles[fileName]
+ var output = String()
+
+ output += '/*========== '+fileName+' ==========*/\n\n'
+ output += fileContent
+ output += '\n\n'
+
+ return bundle+output
+ }, String())
+
+ return cssBundle
+}