Skip to content

Node.js based forum software built for the modern web

chore: remove .opacity() mixin as it is supported cross-browser

Julian Lam28efcb59cbcd
diff --git a/install/package.json b/install/package.json
index 61ef2eece4..3dd20a53be 100644
--- a/install/package.json
+++ b/install/package.json
@@ -93,9 +93,9 @@
"nodebb-plugin-spam-be-gone": "0.7.10",
"nodebb-rewards-essentials": "0.2.0",
"nodebb-theme-lavender": "5.2.1",
- "nodebb-theme-persona": "11.2.19",
+ "nodebb-theme-persona": "11.2.20",
"nodebb-theme-slick": "1.4.14",
- "nodebb-theme-vanilla": "12.1.7",
+ "nodebb-theme-vanilla": "12.1.8",
"nodebb-widget-essentials": "5.0.4",
"nodemailer": "^6.5.0",
"nprogress": "0.2.0",
diff --git a/public/less/generics.less b/public/less/generics.less
index 81ffd073ca..d7cd2b3ec3 100644
--- a/public/less/generics.less
+++ b/public/less/generics.less
@@ -39,7 +39,7 @@
&.disabled {
background-color: #888!important;
- .opacity(0.5);
+ opacity: 0.5;
}
}
}
diff --git a/public/less/mixins.less b/public/less/mixins.less
index 57a54ea32b..04259bb089 100644
--- a/public/less/mixins.less
+++ b/public/less/mixins.less
@@ -32,13 +32,6 @@
}
}
-.opacity(@opacity: 1) {
- -moz-opacity: @opacity;
- opacity: @opacity;
- -ms-filter: ~`"progid:DXImageTransform.Microsoft.Alpha(opacity=(" + "@{opacity}" * 100 + "))"`;
- filter: ~`"alpha(opacity = (" + "@{opacity}" * 100 + "))"`;
-}
-
.border-radius (@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
diff --git a/src/meta/minifier.js b/src/meta/minifier.js
index f388b3159e..cfb740755f 100644
--- a/src/meta/minifier.js
+++ b/src/meta/minifier.js
@@ -228,7 +228,7 @@ Minifier.js.minifyBatch = async function (scripts, fork) {
actions.buildCSS = async function buildCSS(data) {
const lessOutput = await less.render(data.source, {
paths: data.paths,
- javascriptEnabled: true,
+ javascriptEnabled: false,
});
const postcssArgs = [autoprefixer];