Skip to content

Commit

Permalink
docs: doxygen font
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradBkd committed Sep 27, 2024
1 parent 98aa5c4 commit 37a1a2b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
background: none;
}

/* custom styling for literals + links: center properly and change color */
.rst-content code.xref {
position: relative;
top: -0.08rem;
Expand All @@ -32,37 +33,42 @@

/* custom doxygenfunction style */

:root {
--doxygen-font-family: Lato, proxima-nova, Helvetica Neue, Arial, sans-serif;
--codeblock-font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
}

/* Font, size, weight for the function signature */
.cpp.function dt.sig.sig-object.cpp {
font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
.cpp dt.sig.sig-object.cpp {
font-family: var(--doxygen-font-family) !important;
font-size: 14px !important;
font-weight: 400;
}

/* Color for function namespace in function signature */
.cpp.function dt.sig.sig-object.cpp span.sig-prename.descclassname {
/*.cpp dt.sig.sig-object.cpp span.sig-prename.descclassname {
color: #00008B
}
}*/

/* Color for function name in function signature */
.cpp.function dt.sig.sig-object.cpp span.sig-name.descname {
.cpp dt.sig.sig-object.cpp span.sig-name.descname {
color: #00008B !important;
font-weight: 700;
}

/* Color for function parameters in function signature */
.cpp.function dt.sig.sig-object.cpp span.n.sig-param {
.cpp dt.sig.sig-object.cpp span.n.sig-param {
color: #00008B
}

/* Font and color for function parameters in list */
.cpp.function strong {
font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
font-family: var(--doxygen-font-family);
color: #0047AB
}

/* Font and color for exceptions in list */
.cpp.function .cpp-expr.sig.sig-inline.cpp {
font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
font-family: var(--doxygen-font-family);
color: #E97451
}

0 comments on commit 37a1a2b

Please sign in to comment.