Files
OpenIPC_RTL8812AU_Forword_cpp/3rd/CLI11/docs/doxygen-custom.css
T
2026-09-13 13:30:21 +08:00

38 lines
1.2 KiB
CSS

/* CLI11 tweaks on top of doxygen-awesome (sidebar-only layout). */
/* doxygen-awesome hides the sidebar expander arrows until hover, which makes
collapsed sections (Guide, Examples, API Reference) easy to miss. Keep them
visible. */
html {
--side-nav-arrow-opacity: 0.4;
--side-nav-arrow-hover-opacity: 0.9;
/* The theme reserves --top-height for the sidebar header (title + search).
Its 120px default is a few pixels too short for our logo + two-line brief,
which clips the bottom of the search bar. */
--top-height: 140px;
}
/* The sidebar header already shows the project name, so the always-expanded
"CLI11" root node in the navtree is redundant. Hide its row and shift the
remaining rows left one indent level (the tree indents 16px per level with
inline padding, so a fixed negative margin promotes every row equally). */
#nav-tree-contents > ul > li > div.item {
display: none;
}
#nav-tree-contents ul.children_ul .arrow {
margin-left: -16px;
}
/* Place the dark-mode toggle in the top-right corner of the sidebar header. */
#titlearea {
position: relative;
}
doxygen-awesome-dark-mode-toggle {
position: absolute;
top: 2px;
right: 8px;
}