Skip to content

Commit 3b9dba2

Browse files
refactor: Declare default CSS symbol colors under :host as well
This is apparently needed when the docs are served under a shadow DOM (for example, Backstage seems to do this, and `:root` variables aren't picked up). See https://developer.mozilla.org/en-US/docs/Web/CSS/:host. PR-186: mkdocstrings#186
1 parent 6dafa9a commit 3b9dba2

File tree

1 file changed

+1
-1
lines changed
  • src/mkdocstrings_handlers/python/templates/material

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/templates/material/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
/* Symbols in Navigation and ToC. */
34-
:root,
34+
:root, :host,
3535
[data-md-color-scheme="default"] {
3636
--doc-symbol-attribute-fg-color: #953800;
3737
--doc-symbol-function-fg-color: #8250df;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy