Added postcss-loader to provide fallbacks for older browsers

feature-extract-files
n1474335 2017-05-18 23:24:24 +01:00
parent e4ad7768d5
commit a418f63a44
6 changed files with 29 additions and 47 deletions

View File

@ -182,14 +182,18 @@ module.exports = function (grunt) {
{ {
test: /\.css$/, test: /\.css$/,
use: ExtractTextPlugin.extract({ use: ExtractTextPlugin.extract({
use: "css-loader?minimize" use: [
{ loader: "css-loader?minimize" },
{ loader: "postcss-loader" },
]
}) })
}, },
{ {
test: /\.less$/, test: /\.less$/,
loader: ExtractTextPlugin.extract({ use: ExtractTextPlugin.extract({
use: [ use: [
{ loader: "css-loader?minimize" }, { loader: "css-loader?minimize" },
{ loader: "postcss-loader" },
{ loader: "less-loader" } { loader: "less-loader" }
] ]
}) })

View File

@ -55,6 +55,9 @@
"jsdoc-babel": "^0.3.0", "jsdoc-babel": "^0.3.0",
"less": "^2.7.2", "less": "^2.7.2",
"less-loader": "^4.0.3", "less-loader": "^4.0.3",
"postcss-css-variables": "^0.7.0",
"postcss-import": "^10.0.0",
"postcss-loader": "^2.0.5",
"style-loader": "^0.15.0", "style-loader": "^0.15.0",
"url-loader": "^0.5.8", "url-loader": "^0.5.8",
"web-resource-inliner": "^4.1.0", "web-resource-inliner": "^4.1.0",

View File

@ -5,7 +5,7 @@
*/ */
// Styles // Styles
import "./stylesheets/main.js"; import "./stylesheets/index.js";
// Libs // Libs
import "babel-polyfill"; import "babel-polyfill";

View File

@ -0,0 +1,18 @@
/**
* Styles index
*
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2017
* @license Apache-2.0
*/
/* Libraries */
import "google-code-prettify/src/prettify.css";
/* Frameworks */
import "./vendors/bootstrap.less";
import "bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css";
import "bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css";
/* CyberChef styles */
import "./index.css";

View File

@ -1,44 +0,0 @@
/**
* Styles index
*
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2017
* @license Apache-2.0
*/
/* Libraries */
import "google-code-prettify/src/prettify.css";
/* Frameworks */
import "./vendors/bootstrap.less";
import "bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css";
import "bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css";
/* CyberChef styles */
/* Themes */
import "./themes/_classic.css";
import "./themes/_dark.css";
/* Utilities */
import "./utils/_overrides.css";
import "./utils/_general.css";
/* Preloader styles */
import "./preloader.css";
/* Components */
import "./components/_alert.css";
import "./components/_button.css";
import "./components/_list.css";
import "./components/_operation.css";
import "./components/_pane.css";
/* Layout */
import "./layout/_banner.css";
import "./layout/_controls.css";
import "./layout/_io.css";
import "./layout/_modals.css";
import "./layout/_operations.css";
import "./layout/_recipe.css";
import "./layout/_structure.css";

View File

@ -6,6 +6,7 @@
* @license Apache-2.0 * @license Apache-2.0
*/ */
:root,
:root.classic { :root.classic {
--primary-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; --primary-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
--primary-font-colour: #333; --primary-font-colour: #333;