You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/2025.04.18/stylesheets/mkdocstrings.css

94 lines
2.0 KiB
CSS

/*
Using the recommended material css settings by mkdocstrings
https://mkdocstrings.github.io/python/usage/customization/#material
causes some bugs in the theme, so I'm omitting it.
*/
/*
Highlight python builtins since they get mangled by mkdocstrings.
See https://github.com/mkdocstrings/mkdocstrings/issues/754.
*/
.language-python span.n span:is(
[title$="str"],
[title$="int"],
[title$="RuntimeError"],
[title$="float"],
[title$="list"],
[title$="tuple"],
[title$="dict"],
[title$="set"],
[title$="bool"],
[title$="TypeError"],
[title$="NameError"],
[title$="ValueError"],
[title$="KeyError"],
[title$="AttributeError"],
[title$="IndexError"],
[title$="SyntaxError"],
[title$="ImportError"],
[title$="True"],
[title$="False"],
[title$="None"],
[title$="print"],
[title$="len"],
[title$="range"],
[title$="input"],
[title$="open"],
[title$="type"],
[title$="isinstance"],
[title$="dir"],
[title$="help"],
[title$="abs"],
[title$="all"],
[title$="any"],
[title$="ascii"],
[title$="bin"],
[title$="breakpoint"],
[title$="bytearray"],
[title$="bytes"],
[title$="callable"],
[title$="chr"],
[title$="classmethod"],
[title$="compile"],
[title$="complex"],
[title$="delattr"],
[title$="divmod"],
[title$="enumerate"],
[title$="eval"],
[title$="exec"],
[title$="filter"],
[title$="format"],
[title$="frozenset"],
[title$="getattr"],
[title$="globals"],
[title$="hasattr"],
[title$="hash"],
[title$="hex"],
[title$="id"],
[title$="iter"],
[title$="locals"],
[title$="map"],
[title$="max"],
[title$="memoryview"],
[title$="min"],
[title$="next"],
[title$="object"],
[title$="oct"],
[title$="ord"],
[title$="pow"],
[title$="property"],
[title$="repr"],
[title$="reversed"],
[title$="round"],
[title$="setattr"],
[title$="slice"],
[title$="sorted"],
[title$="staticmethod"],
[title$="sum"],
[title$="super"],
[title$="vars"],
[title$="zip"]
) {
color: var(--md-code-hl-constant-color);
}