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:
@@ -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,
|
||||
}),
|
||||
},
|
||||
{}
|
||||
);
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user