/* Box2D look on top of doxygen's built-in dark theme (HTML_COLORSTYLE DARK). Restores the Box2D cyan accent and grays, backs the transparent SVG diagrams, and styles screenshots, prose width, and callouts. Loaded after doxygen.css, so plain overrides win by order. */ /* Doxygen's DARK style bakes its colors, so these only feed the overrides below */ :root { --b3-page: #292a2d; --b3-panel: #32363d; --b3-edge: #3c4048; --b3-edge-hover: #5f6670; --b3-text: #D8D8D8; --b3-muted: #9aa0a6; --b3-accent: #67d8ef; --b3-warm: #e5b567; --b3-plate: #CCCCCC; } /* Page */ /* Soften contrast. Doxygen's dark is near black, restore the Box2D grays */ body { background-color: var(--b3-page); color: var(--b3-text); } #titlearea, div.header, #side-nav, #nav-tree { background-color: var(--b3-page); } #titlearea, div.header { border-bottom-color: var(--b3-edge); } /* Panels and selection sit one step lighter than the page */ #nav-tree .selected, div.fragment, pre.fragment, span.tt, .memItemLeft, .memItemRight, .memTemplParams, .memtitle, .memname, .memname td, .memproto, dl.reflist dt, div.toc, table.doxtable th, .fieldtable th, th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone, table.doxtable tr:nth-child(even) td, .directory tr.even { background-color: var(--b3-panel); } .directory tr.odd { background-color: var(--b3-page); } /* Cap line length for readability */ div.contents { max-width: 1000px; } /* Prose reads best near 75 characters, the reference tables keep the wider cap */ .textblock { max-width: 820px; } /* Links and headings */ /* Box2D cyan for links, symbol cross references, and section headings */ a, a:link, a:visited, .contents a:visited, a.el, a.el:visited, a.code, a.code:visited, a.line, a.line:visited, a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { color: var(--b3-accent); } /* Doxygen bolds internal links only, so prose would mix two link weights */ .textblock a.el { font-weight: normal; } .contents a:hover { text-decoration: underline; } h2.groupheader, .memtitle { color: var(--b3-accent); } h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { text-shadow: 0 0 15px var(--b3-accent); } /* A page's # heading is the title and its ## headings render as h1 at 200% bold, so the title has to outrank them */ div.headertitle .title { font-size: 240%; font-weight: 600; line-height: 1.2; } /* Doxygen draws the group underline with side shadows filled in its black page color */ h2.groupheader { box-shadow: 12px 0 var(--b3-page), -12px 0 var(--b3-page), 12px 1px var(--b3-edge), -12px 1px var(--b3-edge); } td h2.groupheader { box-shadow: 13px 0 var(--b3-page), -13px 0 var(--b3-page), 13px 1px var(--b3-edge), -13px 1px var(--b3-edge); } /* Reference members */ /* Typedef types left aligned and free to wrap, so a long opaque struct typedef doesn't widen the column, push the short callback return types right and squeeze the signatures */ table.memberdecls:has(#header-typedef-members) td.memItemLeft { text-align: left; white-space: normal; } /* Member list and field table edges in the border gray instead of navy */ .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplParams, td.ititle, tr.heading + tr[class^='memitem'] td.memItemLeft, tr.groupHeader + tr[class^='memitem'] td.memItemLeft, tr.inherit_header + tr[class^='memitem'] td.memItemLeft, tr.heading + tr[class^='memitem'] td.memItemRight, tr.groupHeader + tr[class^='memitem'] td.memItemRight, tr.inherit_header + tr[class^='memitem'] td.memItemRight, tr.heading + tr[class^='memitem'] td.memTemplParams, tr.heading + tr td.ititle, tr.groupHeader + tr[class^='memitem'] td.memTemplParams, tr.groupHeader + tr td.ititle, tr.inherit_header + tr[class^='memitem'] td.memTemplParams, table.fieldtable, table.memberdecls-inline, .fieldtable td.fieldtype, .fieldtable td.fieldname, .fieldtable td.fieldinit, .fieldtable td.fielddoc, .memberdecls-inline th, .fieldtable th { border-color: var(--b3-edge); } /* The member tab joins its box with a shadow and a strip, both in doxygen's navy */ .memtitle { box-shadow: 0 10px 0 -1px var(--b3-panel), 0 2px 8px 0 rgba(0, 0, 0, 0.075); } .memtitle:after { background: var(--b3-panel); } .memtitle, .memproto, dl.reflist dt, .memdoc, dl.reflist dd { border-color: var(--b3-edge); } .memberdecls-inline th, .fieldtable th { background-color: var(--b3-panel); color: var(--b3-text); } /* Images */ /* Doxygen embeds SVG with object. The diagrams are transparent, so back them with a light plate to stay legible on a dark page */ .image:has(object) { background-color: var(--b3-plate); border: 10px solid var(--b3-plate); } /* Raster images are screenshots, already opaque, so no plate */ .image:has(img) img { border: 1px solid var(--b3-edge); border-radius: 6px; } /* Fit wide images to the page, a link around a screenshot opens it full size */ .image img, .image object { max-width: 100%; height: auto; } /* Caption sits on the light plate */ .caption { padding-top: 10px; color: black; } .image:has(img) .caption { color: var(--b3-muted); font-weight: normal; font-size: 90%; } /* Callouts */ /* Callouts share one panel with an accent edge. @note and > [!NOTE] give dl.note, @warning and > [!WARNING] give dl.warning, > [!CAUTION] gives dl.attention, a plain quote like > [!caution]: gives blockquote.doxtable */ dl.note, dl.remark, dl.warning, dl.attention, dl.important, blockquote.doxtable { background-color: var(--b3-panel); color: var(--b3-text); border: none; border-left: 4px solid var(--b3-accent); border-radius: 4px; padding: 10px 16px; margin: 12px 0; } dl.warning, dl.attention, dl.important, blockquote.doxtable { border-left-color: var(--b3-warm); } dl.note dt, dl.remark dt { color: var(--b3-accent); } dl.warning dt, dl.attention dt, dl.important dt, blockquote.doxtable b:first-child { color: var(--b3-warm); } blockquote.doxtable p { margin: 0; } /* Doxygen titles > [!CAUTION] as Attention, overlay the GitHub title in the same font */ dl.attention dt { visibility: hidden; position: relative; } dl.attention dt::after { content: "Caution"; visibility: visible; position: absolute; left: 0; top: 0; } /* Search */ /* Search box on the panel gray with the cyan accent on focus, in place of the black field and blue edge */ #MSearchBox { background-color: var(--b3-panel); border: 1px solid var(--b3-edge); border-radius: 6px; padding: 2px 6px 2px 2px; transition: border-color 0.15s, box-shadow 0.15s; } #MSearchBox:hover { border-color: var(--b3-edge-hover); } #MSearchBox.MSearchBoxActive, #MSearchBox:focus-within { border-color: var(--b3-accent); box-shadow: 0 0 0 2px rgba(103, 216, 239, 0.2); } #MSearchField { width: 12em; background-color: transparent; color: var(--b3-text); font-family: inherit; font-size: 14px; } #MSearchField::placeholder { color: var(--b3-muted); } /* The lens circle is filled to hide the handle behind it, so it must match the box */ .search-icon::before { background: var(--b3-panel); border-color: var(--b3-muted); } .search-icon::after { border-color: var(--b3-muted); } .search-icon-dropdown { border-top-color: var(--b3-muted); } #MSearchSelectWindow, #MSearchResultsWindow { background-color: var(--b3-page); border: 1px solid var(--b3-edge); border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); } a.SelectItem { color: var(--b3-text); } a.SelectItem:hover { color: var(--b3-text); background-color: var(--b3-panel); } /* Tree */ /* Plain text so the tree doesn't compete with the page's links, cyan only on hover. Doxygen sets its own small font here */ #nav-tree .label { font: 13px system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif; line-height: 22px; } #nav-tree a { color: var(--b3-text); } #nav-tree a:hover { color: var(--b3-accent); } /* Doxygen dims the current page, mark it bright with an accent edge instead */ #nav-tree .selected { box-shadow: inset 3px 0 var(--b3-accent); } #nav-tree .selected a { color: white; } span.arrowhead { border-right-color: var(--b3-muted); border-bottom-color: var(--b3-muted); } .selected span.arrowhead { border-right-color: var(--b3-text); border-bottom-color: var(--b3-text); } /* Tree sync toggle in the panel grays with the cyan accent on hover */ div.nav-sync-icon { background-color: var(--b3-panel); border: 1px solid var(--b3-edge); border-radius: 3px; } div.nav-sync-icon:hover { background-color: var(--b3-edge); } div.nav-sync-icon.active:after { background-color: var(--b3-panel); border-top-color: var(--b3-muted); } div.nav-sync-icon.active:hover:after { border-top-color: var(--b3-accent); } span.sync-icon-left { border-left-color: var(--b3-muted); border-top-color: var(--b3-muted); } span.sync-icon-right { border-right-color: var(--b3-muted); border-bottom-color: var(--b3-muted); } div.nav-sync-icon:hover span.sync-icon-left { border-left-color: var(--b3-accent); border-top-color: var(--b3-accent); } div.nav-sync-icon:hover span.sync-icon-right { border-right-color: var(--b3-accent); border-bottom-color: var(--b3-accent); } /* Tree resize handle, shown on hover */ .ui-resizable-e { background-color: var(--b3-edge); } .ui-resizable-e:after { border-left-color: var(--b3-muted); border-right-color: var(--b3-muted); } /* Footer */ /* Footer bar on the page gray, doxygen fills it black. The directory pages put a breadcrumb in it */ #nav-path ul { background: var(--b3-page); border-top: 1px solid var(--b3-edge); border-bottom: none; color: var(--b3-muted); } .navpath li, .navpath li.footer { color: var(--b3-muted); } .navpath li.navelem a { color: var(--b3-accent); } #nav-path li.navelem:after { background: var(--b3-page); box-shadow: 2px -2px 0 2px var(--b3-edge); } #nav-path li.navelem:hover, #nav-path li.navelem:hover:after { background-color: var(--b3-panel); }