aboutsummaryrefslogtreecommitdiffstats
path: root/ui/css.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-14 06:28:44 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-14 06:28:44 +0800
commitd814a45dffa6a872f6e336cad33ca41ffb102887 (patch)
treed8cdd0c4b8c6559efaf6846b24f0d6440f3c94f5 /ui/css.js
parent9f1438b85b3dac8f1dd98f7bd6e101035cfce0a5 (diff)
downloadtangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar
tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.gz
tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.bz2
tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.lz
tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.xz
tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.zst
tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.zip
Moved UI into repo with its own dependency stack
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
+}