1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

[EC-838] fix: CSP issues with inline styles (#4219)

This commit is contained in:
Andreas Coroiu
2022-12-15 15:42:15 +01:00
committed by GitHub
parent 002c3f6368
commit d8a121463e
2 changed files with 28 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
/* eslint-disable */
const colors = require("tailwindcss/colors");
const plugin = require("tailwindcss/plugin");
function rgba(color) {
return "rgb(var(" + color + ") / <alpha-value>)";
@@ -94,5 +95,25 @@ module.exports = {
}),
},
},
plugins: [],
plugins: [
plugin(function ({ matchUtilities, theme, addUtilities, addComponents, e, config }) {
matchUtilities(
{
"mask-image": (value) => ({
"-webkit-mask-image": value,
"mask-image": value,
}),
"mask-position": (value) => ({
"-webkit-mask-position": value,
"mask-position": value,
}),
"mask-repeat": (value) => ({
"-webkit-mask-repeat": value,
"mask-repeat": value,
}),
},
{}
);
}),
],
};