Skip to content

Commit 40c5fc6

Browse files
authored
Merge branch 'main' into releasing-fix
2 parents 5e58d6d + 517adf4 commit 40c5fc6

31 files changed

Lines changed: 785 additions & 73 deletions

docs/_static/annotations_list.png

7.49 KB
Loading

docs/_static/annotations_view.png

5.82 KB
Loading
3.92 KB
Loading

docs/_static/custom.css

Lines changed: 80 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
/*
2-
* sphinx-rtd-theme caps main content at ~800px for readability.
3-
* Override so clinical screenshots and wide tables use the full viewport.
2+
* DBS Annotator Read the Docs overrides (sphinx-rtd-theme).
3+
* Keep standard RTD colours (dark sidebar, light content, blue links/headings);
4+
* widen the prose column; cap screenshots at 60%.
45
*/
56
:root {
6-
/* Match sphinx-rtd-theme sidebar (.wy-nav-side). */
7-
--dbs-docs-canvas: #343131;
8-
--dbs-docs-panel: #ffffff;
7+
/* sphinx-rtd-theme .wy-nav-side */
8+
--dbs-docs-sidebar: #343131;
9+
/* sphinx-rtd-theme .wy-nav-content-wrap / content area */
10+
--dbs-docs-content-bg: #fcfcfc;
11+
--dbs-docs-screenshot-max: 60%;
912
}
1013

11-
/* Dark outer canvas (same tone as the left navigation column). */
12-
/* !important beats theme.css (.wy-nav-content-wrap { background: #fcfcfc }). */
14+
/* Outer area — same dark grey as the left navigation column (standard RTD). */
1315
html,
1416
body.wy-body-for-nav,
1517
.wy-body-for-nav,
1618
.wy-grid-for-nav,
1719
section.wy-nav-content-wrap,
1820
.wy-nav-content-wrap {
19-
background: var(--dbs-docs-canvas) !important;
20-
background-color: var(--dbs-docs-canvas) !important;
21+
background: var(--dbs-docs-sidebar) !important;
22+
background-color: var(--dbs-docs-sidebar) !important;
2123
}
2224

23-
/* Readable white "window" for prose, screenshots, and tables. */
25+
/* Main prose column — standard RTD light panel (not app dark theme). */
2426
.wy-nav-content {
2527
max-width: none !important;
26-
background: var(--dbs-docs-panel) !important;
27-
background-color: var(--dbs-docs-panel) !important;
28-
box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
29-
/* Let the dark canvas show at the sides on wide viewports. */
28+
background: var(--dbs-docs-content-bg) !important;
29+
background-color: var(--dbs-docs-content-bg) !important;
30+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
3031
margin-inline: clamp(0px, 2.5vw, 40px);
3132
min-height: 100%;
3233
}
@@ -35,29 +36,76 @@ section.wy-nav-content-wrap,
3536
max-width: 100%;
3637
}
3738

38-
/* Full application window (wizard steps, session views). */
39-
.rst-content img.screenshot-full,
40-
.wy-nav-content img.screenshot-full {
41-
width: 100% !important;
42-
max-width: 100%;
43-
height: auto;
44-
}
45-
4639
/*
47-
* Dialogs, home screen, and other partial captures.
48-
* Never upscale beyond the PNG's intrinsic width; shrink only on narrow viewports.
40+
* Prose on the light panel — pin body colour so it does not inherit from the
41+
* dark outer wrap (tables/list-tables were unreadable when text stayed pale).
4942
*/
50-
.rst-content img.screenshot-native,
51-
.wy-nav-content img.screenshot-native {
52-
width: auto !important;
53-
max-width: 100%;
54-
height: auto;
43+
.wy-nav-content .rst-content {
44+
color: #404040;
45+
}
46+
47+
.wy-nav-content .rst-content table.docutils,
48+
.wy-nav-content .wy-table-responsive table {
49+
color: #404040;
50+
border-color: #e1e4e5;
51+
}
52+
53+
.wy-nav-content .rst-content table.docutils th,
54+
.wy-nav-content .wy-table-responsive table thead th {
55+
background-color: #f3f6f6;
56+
color: #404040;
57+
border-color: #e1e4e5;
58+
}
59+
60+
.wy-nav-content .rst-content table.docutils td,
61+
.wy-nav-content .wy-table-responsive table td {
62+
background-color: #ffffff;
63+
color: #404040;
64+
border-color: #e1e4e5;
65+
}
66+
67+
.wy-nav-content .rst-content table.docutils tr:nth-child(2n) td,
68+
.wy-nav-content .wy-table-responsive table tr:nth-child(2n) td {
69+
background-color: #f3f6f6;
70+
}
71+
72+
/* Breadcrumbs sit on the dark canvas, outside the light panel. */
73+
.wy-nav-content-wrap .wy-breadcrumbs li,
74+
.wy-nav-content-wrap .wy-breadcrumbs li a {
75+
color: #b3b3b3;
76+
}
77+
78+
.wy-nav-content-wrap .wy-breadcrumbs li a:hover {
79+
color: #ffffff;
5580
}
5681

57-
/* Back-compat alias (older docs / branches). */
82+
.wy-nav-content-wrap footer,
83+
.wy-nav-content-wrap footer span,
84+
.wy-nav-content-wrap .rst-footer-buttons {
85+
color: #b3b3b3;
86+
}
87+
88+
/* ---- Screenshots & figures (max 60% width, centered) ---- */
89+
.rst-content img.screenshot-full,
90+
.rst-content img.screenshot-native,
5891
.rst-content img.screenshot-medium,
59-
.wy-nav-content img.screenshot-medium {
92+
.rst-content .figure img,
93+
.wy-nav-content img.screenshot-full,
94+
.wy-nav-content img.screenshot-native,
95+
.wy-nav-content img.screenshot-medium,
96+
.wy-nav-content .figure img {
97+
display: block;
6098
width: auto !important;
61-
max-width: 100%;
99+
max-width: var(--dbs-docs-screenshot-max);
62100
height: auto;
101+
margin-inline: auto;
102+
border-radius: 4px;
103+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
104+
}
105+
106+
/* Home-page logo keeps its explicit :width: from RST. */
107+
.rst-content img[src*="logo.png"],
108+
.wy-nav-content img[src*="logo.png"] {
109+
max-width: none;
110+
box-shadow: none;
63111
}

docs/_static/home_screen.png

3.99 KB
Loading

docs/_static/home_screen_dark.png

3.57 KB
Loading
8.98 KB
Loading

docs/_static/longitudinal_view.png

7.68 KB
Loading
9.75 KB
Loading
923 Bytes
Loading

0 commit comments

Comments
 (0)