diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/package-lock.json | 71 | ||||
-rw-r--r-- | assets/css/package.json | 1 | ||||
-rw-r--r-- | assets/css/postcss.config.js | 10 | ||||
-rw-r--r-- | assets/css/scss/components/_header.scss | 2 |
4 files changed, 39 insertions, 45 deletions
diff --git a/assets/css/package-lock.json b/assets/css/package-lock.json index aa10b14..0ed44a0 100644 --- a/assets/css/package-lock.json +++ b/assets/css/package-lock.json @@ -17,6 +17,7 @@ "postcss-font-grabber": "^3.0.2", "postcss-import-url": "^7.0.0", "postcss-preset-env": "^6.7.0", + "postcss-selector-not": "^5.0.0", "postcss-unprefix": "^2.1.4", "rimraf": "^3.0.2" } @@ -2819,6 +2820,16 @@ "url": "https://opencollective.com/postcss/" } }, + "node_modules/postcss-preset-env/node_modules/postcss-selector-not": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", + "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "postcss": "^7.0.2" + } + }, "node_modules/postcss-pseudo-class-any-link": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz", @@ -3003,31 +3014,15 @@ } }, "node_modules/postcss-selector-not": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", - "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-selector-not/node_modules/postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-5.0.0.tgz", + "integrity": "sha512-/2K3A4TCP9orP4TNS7u3tGdRFVKqz/E6pX3aGnriPG0jU78of8wsUcqE4QAhWEU0d+WnMSF93Ah3F//vUtK+iQ==", "dev": true, "dependencies": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - }, - "engines": { - "node": ">=6.0.0" + "balanced-match": "^1.0.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" + "peerDependencies": { + "postcss": "^8.1.0" } }, "node_modules/postcss-selector-parser": { @@ -5751,6 +5746,16 @@ "source-map": "^0.6.1", "supports-color": "^6.1.0" } + }, + "postcss-selector-not": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", + "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "postcss": "^7.0.2" + } } } }, @@ -5883,26 +5888,12 @@ } }, "postcss-selector-not": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", - "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-5.0.0.tgz", + "integrity": "sha512-/2K3A4TCP9orP4TNS7u3tGdRFVKqz/E6pX3aGnriPG0jU78of8wsUcqE4QAhWEU0d+WnMSF93Ah3F//vUtK+iQ==", "dev": true, "requires": { - "balanced-match": "^1.0.0", - "postcss": "^7.0.2" - }, - "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - } + "balanced-match": "^1.0.0" } }, "postcss-selector-parser": { diff --git a/assets/css/package.json b/assets/css/package.json index bb330ec..21c4871 100644 --- a/assets/css/package.json +++ b/assets/css/package.json @@ -20,6 +20,7 @@ "postcss-font-grabber": "^3.0.2", "postcss-import-url": "^7.0.0", "postcss-preset-env": "^6.7.0", + "postcss-selector-not": "^5.0.0", "postcss-unprefix": "^2.1.4", "rimraf": "^3.0.2" }, diff --git a/assets/css/postcss.config.js b/assets/css/postcss.config.js index c240dd5..1d25a4d 100644 --- a/assets/css/postcss.config.js +++ b/assets/css/postcss.config.js @@ -1,6 +1,8 @@ -module.exports = conf => { +module.exports = _ => { return { plugins: [ + // required for IE + require('postcss-selector-not').default, // converts googleapis URLs to gstatic ones require('postcss-import-url')({ recursive: true, @@ -20,9 +22,9 @@ module.exports = conf => { require('postcss-unprefix')(), require('autoprefixer')(), // does not /add/ prefixes by default, hence previous step -// require('cssnano')({ -// preset: 'advanced' -// }), + require('cssnano')({ + preset: 'advanced' + }), ] }; }; diff --git a/assets/css/scss/components/_header.scss b/assets/css/scss/components/_header.scss index bdeb384..3392747 100644 --- a/assets/css/scss/components/_header.scss +++ b/assets/css/scss/components/_header.scss @@ -331,7 +331,7 @@ // &:not(.left, .center) { .header-menu { - margin-left: auto !important; + margin-left: auto; } } &.left { |