Debian Codegraph @

documentation/source/_static/breathe.css

raw symbols SCIP
1 /* -- breathe specific styles ----------------------------------------------- */
2
3 /* So enum value descriptions are displayed inline to the item */
4 .breatheenumvalues li tt + p {
5 display: inline;
6 }
7
8 /* So parameter descriptions are displayed inline to the item */
9 .breatheparameterlist li tt + p {
10 display: inline;
11 }
12
13 :root {
14 --color-brand-primary-light: hsl(205deg, 52%, 39%);
15 --color-brand-primary-dark: hsl(205deg, 65%, 65%);
16 --breathe-str-char-color-dark: hsl(41, 85%, 46%);
17 --breathe-str-char-color-light: hsl(41, 89%, 37%);
18 --breathe-keyword-type-color-dark: hsl(256, 100%, 65%);
19 --breathe-keyword-type-color-light: hsl(276, 85%, 29%);
20 --breathe-number-color-dark: hsl(157, 81%, 50%);
21 --breathe-number-color-light: hsl(157, 93%, 32%);
22 --breathe-name-color-dark: hsl(88, 72%, 56%);
23 --breathe-name-color-light: hsl(88, 100%, 28%);
24 }
25
26 /* ************************************************** */
27 /* rules to uniform color scheme with breathe-doc.org */
28
29 body {
30 --color-brand-primary: var(--color-brand-primary-light);
31 --color-brand-content: var(--color-brand-primary-light);
32 --breathe-str-char-color: var(--breathe-str-char-color-light);
33 --breathe-keyword-type-color: var(--breathe-keyword-type-color-light);
34 --breathe-number-color: var(--breathe-number-color-light);
35 --breathe-name-color: var(--breathe-name-color-light);
36 }
37
38 /* Enable dark-mode, if requested. */
39 body[data-theme="dark"] {
40 --color-brand-primary: var(--color-brand-primary-dark);
41 --color-brand-content: var(--color-brand-primary-dark);
42 --breathe-str-char-color: var(--breathe-str-char-color-dark);
43 --breathe-keyword-type-color: var(--breathe-keyword-type-color-dark);
44 --breathe-number-color: var(--breathe-number-color-dark);
45 --breathe-name-color: var(--breathe-name-color-dark);
46 }
47
48 /* Enable dark mode, unless explicitly told to avoid. */
49 @media (prefers-color-scheme: dark) {
50 body:not([data-theme="light"]) {
51 --color-brand-primary: var(--color-brand-primary-dark);
52 --color-brand-content: var(--color-brand-primary-dark);
53 --breathe-str-char-color: var(--breathe-str-char-color-dark);
54 --breathe-keyword-type-color: var(--breathe-keyword-type-color-dark);
55 --breathe-number-color: var(--breathe-number-color-dark);
56 --breathe-name-color: var(--breathe-name-color-dark);
57 }
58 }
59
60 .mobile-header {
61 /* background-color: var(--color-header-background); */
62 background-color: #003c66;
63 }
64
65 .mobile-header .toc-overlay-icon .icon {
66 /* color: var(--color-foreground-secondary); */
67 color: white;
68 }
69
70 .mobile-header .header-center a {
71 /* color: var(--color-header-text); */
72 color: white;
73 }
74
75 .mobile-header .theme-toggle svg {
76 /* color: var(--color-foreground-primary); */
77 color: white;
78 }
79
80 /* C++ specific styling */
81
82 .highlight {
83 /* desaturate that ugly yellow color used by most other theme's code snippets */
84 background-color: var(--color-api-background); /* for light theme only */
85 }
86
87 .sig.c .k, .sig.c .kt,
88 .sig.cpp .k, .sig.cpp .kt {
89 color: var(--breathe-keyword-type-color);
90 }
91
92 .sig.c .m,
93 .sig.cpp .m {
94 color: var(--breathe-number-color);
95 }
96
97 .sig.c .s, .sig.c .sc,
98 .sig.cpp .s, .sig.cpp .sc {
99 color: var(--breathe-str-char-color);
100 }
101
102 .sig > .n {
103 color: var(--breathe-name-color);
104 }
105
106 /*
107 bugfix for multi-lined signatures
108 (see https://github.com/pradyunsg/furo/discussions/427 )
109 */
110 .sig {
111 padding-left: 0.5em;
112 text-indent: revert;
113 }