Debian Codegraph @

doc/_static/custom.css

raw
1 /* Brand palette: charcoal + dark red, matching the COLMAP logo. Overrides the
2 pydata-sphinx-theme accent colors for both light and dark mode. */
3 html[data-theme="light"] {
4 --pst-color-primary: #b91c1c;
5 --pst-color-primary-highlight: #7f1d1d;
6 --pst-color-secondary: #374151;
7 --pst-color-secondary-highlight: #1f2937;
8 --pst-color-link: #b91c1c;
9 --pst-color-link-hover: #7f1d1d;
10 --pst-color-inline-code: #b91c1c;
11 }
12
13 html[data-theme="dark"] {
14 --pst-color-primary: #f87171;
15 --pst-color-primary-highlight: #ef4444;
16 --pst-color-secondary: #9ca3af;
17 --pst-color-secondary-highlight: #d1d5db;
18 --pst-color-link: #f87171;
19 --pst-color-link-hover: #fca5a5;
20 }
21
22 /* Fixes https://github.com/readthedocs/sphinx_rtd_theme/issues/1301#issuecomment-1876120817 */
23 .py.property {
24 display: block !important;
25 }
26
27 /* Better display of multi-line signatures on the autodoc API pages. */
28
29 dt.sig > dl > dd {
30 margin-bottom: 0px;
31 }
32
33 dt.sig > dl {
34 margin-bottom: 0px;
35 }
36
37 /* Interactive sparse reconstruction viewer. */
38 body:has(#colmap-viewer-root) .bd-main .bd-content,
39 body:has(#colmap-viewer-root) .bd-main .bd-content .bd-article-container {
40 max-width: none;
41 width: 100%;
42 }
43
44 body:has(#colmap-viewer-root) .bd-article {
45 padding-left: clamp(0.75rem, 2vw, 2rem);
46 padding-right: clamp(0.75rem, 2vw, 2rem);
47 }
48
49
50 #colmap-viewer-root {
51 margin: 0.75rem 0 2rem;
52 }