8000 refactor: Declare default CSS symbol colors under :host as well · mkdocstrings/python@3b9dba2 · GitHub
[go: up one dir, main page]

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: #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)
0