diff --git a/chrome/content/zotero/customElements.js b/chrome/content/zotero/customElements.js index a290bf4efd..e93bb02dd9 100644 --- a/chrome/content/zotero/customElements.js +++ b/chrome/content/zotero/customElements.js @@ -155,4 +155,16 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/librariesC originalEnsureInitialized.apply(this); }; } + + // inject custom CSS into FF built-in custom elements (currently only ) + for (let element of ["wizard"]) { + let oldAttachShadow = customElements.get(element).prototype.attachShadow; + customElements.get(element).prototype.attachShadow = function () { + let shadowRoot = oldAttachShadow.apply(this, arguments); + shadowRoot.appendChild(MozXULElement.parseXULToFragment( + `` + )); + return shadowRoot; + }; + } } diff --git a/chrome/content/zotero/elements/publicationsLicenseInfo.js b/chrome/content/zotero/elements/publicationsLicenseInfo.js index 1dd2d3908f..5b90a72357 100644 --- a/chrome/content/zotero/elements/publicationsLicenseInfo.js +++ b/chrome/content/zotero/elements/publicationsLicenseInfo.js @@ -26,9 +26,6 @@ /* global XULElementBase: false */ { - const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); - Services.scriptloader.loadSubScript("chrome://zotero/content/elements/base.js", this); - const links = { cc: 'https://wiki.creativecommons.org/Considerations_for_licensors_and_licensees', cc0: 'https://wiki.creativecommons.org/CC0_FAQ' diff --git a/chrome/content/zotero/elements/styleConfigurator.js b/chrome/content/zotero/elements/styleConfigurator.js index d97293e5dc..c9c5e2c266 100644 --- a/chrome/content/zotero/elements/styleConfigurator.js +++ b/chrome/content/zotero/elements/styleConfigurator.js @@ -26,8 +26,6 @@ /* global XULElementBase: false */ { - Services.scriptloader.loadSubScript("chrome://zotero/content/elements/base.js", this); - class StyleSelector extends XULElementBase { content = MozXULElement.parseXULToFragment(`
- + @@ -108,8 +113,7 @@
- - diff --git a/scss/wizard.scss b/scss/wizard.scss new file mode 100644 index 0000000000..543ea65943 --- /dev/null +++ b/scss/wizard.scss @@ -0,0 +1 @@ +// Override/enhance native wizard styles \ No newline at end of file