Skip to content

Commit c6be01f

Browse files
committed
custom css
1 parent 7a2b7a0 commit c6be01f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

docs/_static/custom.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* Minimal CSS for visual hierarchy: Class Names > Section Headers > Methods/Attributes */
2+
3+
/* ============================================
4+
TOP-LEVEL CLASS NAMES (Most Prominent)
5+
============================================ */
6+
7+
/* Target only top-level class signatures */
8+
dl.py.class > dt {
9+
font-size: 110% !important;
10+
color: #2c3e50 !important;
11+
}
12+
13+
/* ============================================
14+
METHODS/ATTRIBUTES (Normal Size)
15+
============================================ */
16+
17+
/* Keep methods and attributes at normal size - don't enlarge them */
18+
dl.py.method > dt,
19+
dl.py.function > dt,
20+
dl.py.attribute > dt {
21+
font-size: 100% !important;
22+
}
23+
24+
/* ============================================
25+
SECTION HEADERS (Distinguished with Color)
26+
============================================ */
27+
28+
/* Target bold paragraphs that are section headers (Parameters, Returns, etc.) */
29+
dd > p > strong:only-child {
30+
font-size: 108%;
31+
display: inline-block;
32+
color: #2980b9;
33+
}
34+
35+
/* Also target any standalone bold text that serves as headers */
36+
.py dd > p:first-child > strong:first-child:last-child {
37+
font-size: 108%;
38+
color: #2980b9;
39+
}

0 commit comments

Comments
 (0)