A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/css.js

27 lines
796 B

const fs = require('fs')
module.exports = bundleCss
var cssFiles = {
8 years ago
'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'),
}
8 years ago
function bundleCss () {
var cssBundle = Object.keys(cssFiles).reduce(function (bundle, fileName) {
var fileContent = cssFiles[fileName]
var output = String()
8 years ago
output += '/*========== ' + fileName + ' ==========*/\n\n'
output += fileContent
output += '\n\n'
8 years ago
return bundle + output
}, String())
return cssBundle
}