File: breathe.css

package info (click to toggle)
breathe 4.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,224 kB
  • sloc: python: 12,703; cpp: 1,737; makefile: 523; xml: 168; sh: 54; ansic: 52
file content (113 lines) | stat: -rw-r--r-- 3,400 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/* -- breathe specific styles ----------------------------------------------- */

/* So enum value descriptions are displayed inline to the item */
.breatheenumvalues li tt + p {
  display: inline;
}

/* So parameter descriptions are displayed inline to the item */
.breatheparameterlist li tt + p {
  display: inline;
}

:root {
  --color-brand-primary-light: hsl(205deg, 52%, 39%);
  --color-brand-primary-dark: hsl(205deg, 65%, 65%);
  --breathe-str-char-color-dark: hsl(41, 85%, 46%);
  --breathe-str-char-color-light: hsl(41, 89%, 37%);
  --breathe-keyword-type-color-dark: hsl(256, 100%, 65%);
  --breathe-keyword-type-color-light: hsl(276, 85%, 29%);
  --breathe-number-color-dark: hsl(157, 81%, 50%);
  --breathe-number-color-light: hsl(157, 93%, 32%);
  --breathe-name-color-dark: hsl(88, 72%, 56%);
  --breathe-name-color-light: hsl(88, 100%, 28%);
}

/* ************************************************** */
/* rules to uniform color scheme with breathe-doc.org */

body {
  --color-brand-primary: var(--color-brand-primary-light);
  --color-brand-content: var(--color-brand-primary-light);
  --breathe-str-char-color: var(--breathe-str-char-color-light);
  --breathe-keyword-type-color: var(--breathe-keyword-type-color-light);
  --breathe-number-color: var(--breathe-number-color-light);
  --breathe-name-color: var(--breathe-name-color-light);
}

/* Enable dark-mode, if requested. */
body[data-theme="dark"] {
  --color-brand-primary: var(--color-brand-primary-dark);
  --color-brand-content: var(--color-brand-primary-dark);
  --breathe-str-char-color: var(--breathe-str-char-color-dark);
  --breathe-keyword-type-color: var(--breathe-keyword-type-color-dark);
  --breathe-number-color: var(--breathe-number-color-dark);
  --breathe-name-color: var(--breathe-name-color-dark);
}

/* Enable dark mode, unless explicitly told to avoid. */
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) {
    --color-brand-primary: var(--color-brand-primary-dark);
    --color-brand-content: var(--color-brand-primary-dark);
    --breathe-str-char-color: var(--breathe-str-char-color-dark);
    --breathe-keyword-type-color: var(--breathe-keyword-type-color-dark);
    --breathe-number-color: var(--breathe-number-color-dark);
    --breathe-name-color: var(--breathe-name-color-dark);
  }
}

.mobile-header {
  /* background-color: var(--color-header-background); */
  background-color: #003c66;
}

.mobile-header .toc-overlay-icon .icon {
  /* color: var(--color-foreground-secondary); */
  color: white;
}

.mobile-header .header-center a {
  /* color: var(--color-header-text); */
  color: white;
}

.mobile-header .theme-toggle svg {
  /* color: var(--color-foreground-primary); */
  color: white;
}

/* C++ specific styling */

.highlight {
  /* desaturate that ugly yellow color used by most other theme's code snippets */
  background-color: var(--color-api-background); /* for light theme only */
}

.sig.c   .k, .sig.c   .kt,
.sig.cpp .k, .sig.cpp .kt {
  color: var(--breathe-keyword-type-color);
}

.sig.c   .m,
.sig.cpp .m {
  color: var(--breathe-number-color);
}

.sig.c   .s, .sig.c   .sc,
.sig.cpp .s, .sig.cpp .sc {
  color: var(--breathe-str-char-color);
}

.sig > .n {
  color: var(--breathe-name-color);
}

/*
bugfix for multi-lined signatures
(see https://github.com/pradyunsg/furo/discussions/427 )
*/
.sig {
  padding-left: 0.5em;
  text-indent: revert;
}