We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
css layer
Currently it's kinda "hard" to override styles in custom css, especially if you want to include your own libraries in typedoc.
wrapping all css declarations in a
@layer typedoc { /* typedoc styles */ }
so that consumers can do
@layer my-library, typedoc;
// plugin.js export function load( /** * @type import("typedoc").Application */ app ) { app.renderer.hooks.on("head.end", (ctx) => JSX.createElement(JSX.Raw, { html: `<script async>document.head.querySelector('link[href*="style.css"]').remove()</script>`, }), ); }
with
/* custom.css */ @import url("style.css") layer(typedoc); @layer my-library, typedoc;
and
{ "$schema": "https://typedoc.org/schema.json", "customCss": "custom.css", "plugin": ["plugin.js"], }
The text was updated successfully, but these errors were encountered:
Easy enough of a change to do, TIL about @layer!
@layer
Sorry, something went wrong.
286c228
No branches or pull requests
Search Terms
css layer
Problem
Currently it's kinda "hard" to override styles in custom css, especially if you want to include your own libraries in typedoc.
Suggested Solution
wrapping all css declarations in a
so that consumers can do
Current workaround
with
and
The text was updated successfully, but these errors were encountered: