Make more icons customizable

This commit is contained in:
Martin Kleinschrodt 2021-10-11 17:41:49 +02:00
parent e87485e517
commit 347275e3ce
2 changed files with 8 additions and 12 deletions

View File

@ -53,28 +53,28 @@ export class PlIcon extends LitElement {
}
:host([icon="add"]) > div::before {
content: "\\2b";
content: var(--icon-add, "\\2b");
}
:host([icon="menu"]) > div::before {
content: "\\f0c9";
content: var(--icon-menu, "\\f0c9");
}
:host([icon="close"]) > div::before {
content: "\\f00d";
content: var(--icon-close, "\\f00d");
}
:host([icon="more"]) > div::before {
content: "\\f141";
content: var(--icon-more, "\\f141");
}
:host([icon="delete"]) > div::before {
content: "\\f2ed";
content: var(--icon-delete, "\\f2ed");
}
:host([icon="copy"]) > div::before {
/* content: "\\f24d"; */
content: "\\f0c5";
content: var(--icon-copy, "\\f0c5");
}
:host([icon="edit"]) > div::before {
@ -98,7 +98,7 @@ export class PlIcon extends LitElement {
}
:host([icon="generate"]) > div::before {
content: "\\f522";
content: var(--icon-generate, "\\f522");
}
:host([icon="tag"]) > div::before {

View File

@ -67,11 +67,7 @@ module.exports = {
meta: {
"Content-Security-Policy": {
"http-equiv": "Content-Security-Policy",
content: `default-src 'self' ${serverUrl} ${
process.env.PL_BILLING_ENABLED ? "https://*.stripe.com" : ""
}; style-src 'self' 'unsafe-inline'; object-src 'self' blob:; frame-src 'self' blob: ${
process.env.PL_BILLING_ENABLED ? "https://*.stripe.com" : ""
}; img-src *`,
content: `default-src 'self' ${serverUrl} blob:; style-src 'self' 'unsafe-inline'; object-src 'self' blob:; frame-src 'self'; img-src 'self' blob: data:`,
},
},
}),