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

isekai-main
Julian Lam 3 years ago
parent bf20965f0b
commit 28efcb59cb

@ -93,9 +93,9 @@
"nodebb-plugin-spam-be-gone": "0.7.10", "nodebb-plugin-spam-be-gone": "0.7.10",
"nodebb-rewards-essentials": "0.2.0", "nodebb-rewards-essentials": "0.2.0",
"nodebb-theme-lavender": "5.2.1", "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-slick": "1.4.14",
"nodebb-theme-vanilla": "12.1.7", "nodebb-theme-vanilla": "12.1.8",
"nodebb-widget-essentials": "5.0.4", "nodebb-widget-essentials": "5.0.4",
"nodemailer": "^6.5.0", "nodemailer": "^6.5.0",
"nprogress": "0.2.0", "nprogress": "0.2.0",

@ -39,7 +39,7 @@
&.disabled { &.disabled {
background-color: #888!important; background-color: #888!important;
.opacity(0.5); opacity: 0.5;
} }
} }
} }

@ -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) { .border-radius (@radius: 5px) {
-webkit-border-radius: @radius; -webkit-border-radius: @radius;
-moz-border-radius: @radius; -moz-border-radius: @radius;

@ -228,7 +228,7 @@ Minifier.js.minifyBatch = async function (scripts, fork) {
actions.buildCSS = async function buildCSS(data) { actions.buildCSS = async function buildCSS(data) {
const lessOutput = await less.render(data.source, { const lessOutput = await less.render(data.source, {
paths: data.paths, paths: data.paths,
javascriptEnabled: true, javascriptEnabled: false,
}); });
const postcssArgs = [autoprefixer]; const postcssArgs = [autoprefixer];

Loading…
Cancel
Save