2 /* pre-defined colors */
3 --pdt-grey-950: hsl
(0deg, 0%, 95%);
4 --pdt-grey-400: hsl
(0deg, 0%, 40%);
5 --pdt-grey-250: hsl
(0deg, 0%, 25%);
6 --pdt-grey-150: hsl
(0deg, 0%, 15%);
7 --pdt-grey-100: hsl
(0deg, 0%, 10%);
8 --pdt-primary-850: hsl
(205deg, 100%, 85%);
9 --pdt-primary-800: hsl
(205deg, 100%, 80%);
10 --pdt-primary-700: hsl
(205deg, 100%, 70%);
11 --pdt-secondary-850: hsl
(250deg, 100%, 85%);
14 /* adjust admonition block spacing. this allows for a background on
15 * admonition blocks that doesn't make the elements look to tightly
21 padding: 0.5em 10% 0.5em 0.5em;
24 div
.admonitionblock td
.icon
{
28 div
.admonitionblock td
.icon
> img
{
29 box-sizing: border-box
;
33 /* Fine-tune headings a bit */
44 @media screen and
(prefers-color-scheme: dark
) {
47 --pdt-body-background: var
(--pdt-grey-150
);
48 --pdt-text: var
(--pdt-grey-950
);
49 --pdt-headline: var
(--pdt-primary-800
);
50 --pdt-link: var
(--pdt-primary-700
);
51 --pdt-link-visited: var
(--pdt-secondary-850
);
52 --pdt-highlighted-text: var
(--pdt-primary-850
);
53 --pdt-background-sidebar: var
(--pdt-grey-100
);
54 --pdt-background-listings: var
(--pdt-grey-100
);
55 --pdt-border: var
(--pdt-grey-400
);
56 --pdt-border-alt: var
(--pdt-grey-250
);
57 --pdt-table-border: var
(--pdt-grey-400
);
58 --pdt-background-admonition: var
(--pdt-grey-250
);
62 color: var
(--pdt-text
);
63 background-color: var
(--pdt-body-background
);
67 color: var
(--pdt-link
);
71 color: var
(--pdt-link-visited
);
74 /* style headlines, titles etc. */
88 color: var
(--pdt-headline
);
95 border-color: var
(--pdt-border
);
98 /* formatted colored text */
105 color: var
(--pdt-highlighted-text
);
108 /* style the table of contents sidebar */
110 color: var
(--pdt-text
);
111 background-color: var
(--pdt-background-sidebar
);
112 border-color: var
(--pdt-border-alt
);
117 color: var
(--pdt-text
);
120 /* reduce the brigthness of images a bit and make it reversable
121 * through hovering over them.
124 filter: brightness
(90%);
135 border-color: var
(--pdt-table-border
);
140 color: var
(--pdt-text
);
141 border-color: var
(--pdt-border
);
144 /* listings (e.g. code snippet blocks) */
145 div
.listingblock
> div
.content
{
146 background-color: var
(--pdt-background-listings
);
147 border-color: var
(--pdt-border-alt
);
150 /* admonition blocks (e.g. notes, warnings etc.) */
151 div
.admonitionblock
{
152 color: var
(--pdt-text
);
153 background-color: var
(--pdt-background-admonition
);
156 div
.admonitionblock td
.content
{
157 border-color: var
(--pdt-border
);
160 /* makes the admonition icons appear a bit more consistent, by
161 * adding a white background the shadows in the icons look
164 div
.admonitionblock td
.icon
> img
{
165 background-color: white
;
167 filter: brightness
(95%);
170 /* invert the logo */
171 #header > h1
> .image
> img
{
172 filter: invert
(100%) hue-rotate
(180deg) brightness
(90%);
175 /* fixes the black text on unorderd lists */
177 color: var
(--pdt-text
);