Skip to content

Commit ea77b55

Browse files
committed
Add syntax highlighting for code signatures
1 parent 7d03da4 commit ea77b55

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

great_docs/assets/styles.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@
88
text-decoration-thickness: 2px;
99
}
1010

11+
/* Signature highlighting - class name (e.g., "Graph" in Graph.add_node) */
12+
code span.sig-class {
13+
color: #0e84b5;
14+
font-weight: 600;
15+
}
16+
17+
/* Signature highlighting - method/function name (e.g., "add_node" in Graph.add_node) */
18+
code span.sig-name {
19+
color: #4758AB;
20+
font-weight: 600;
21+
}
22+
23+
/* Signature highlighting - None constant */
24+
code span.cn-none {
25+
color: #7D4E9E;
26+
font-weight: 500;
27+
}
28+
29+
/* Signature highlighting - True/False boolean constants */
30+
code span.cn-bool {
31+
color: #0077AA;
32+
font-weight: 600;
33+
}
34+
35+
/* Signature highlighting - operators (=, **, etc.) - override Quarto default */
36+
#cb1 code span.op {
37+
color: #D14D00;
38+
font-weight: 500;
39+
}
40+
1141
.navbar-brand img {
1242
max-height: 45px;
1343
padding-right: 0px;

0 commit comments

Comments
 (0)