Skip to content

Commit 7561eff

Browse files
kartbendanieldegrasse
authored andcommitted
doc: _doxygen: fix doxygen awesome dark theme
Fix issues with Doxygen 1.14 and dark theme. Upstream PRs to doxygen-awesome will be submitted in parallel. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 4591461 commit 7561eff

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

doc/_doxygen/doxygen-awesome-zephyr.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ html {
1515
--side-nav-background: #333f67;
1616
--side-nav-foreground: #c3e3ff;
1717

18+
--page-outline-vis: #3b4978;
19+
1820
--searchbar-background: var(--page-background-color);
1921
--searchbar-foreground: var(--page-foreground-color);
2022

@@ -38,6 +40,8 @@ html {
3840
--side-nav-background: #252628;
3941
--side-nav-foreground: var(--page-foreground-color);
4042

43+
--page-outline-vis: #44568d;
44+
4145
--param-color: #ef9a9a;
4246
}
4347
}

doc/_doxygen/doxygen-awesome.css

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ html {
160160
--toc-background: var(--side-nav-background);
161161
--toc-foreground: var(--side-nav-foreground);
162162

163+
/* page navigation colors */
164+
--page-outline-vis: #f0f2f4;
165+
163166
/* height of an item in any tree / collapsible table */
164167
--tree-item-height: 30px;
165168

@@ -202,6 +205,7 @@ html {
202205
--page-secondary-foreground-color: #859399;
203206
--separator-color: #38393b;
204207
--side-nav-background: #252628;
208+
--page-outline-vis: #323539;
205209

206210
--code-background: #2a2c2f;
207211

@@ -263,6 +267,7 @@ html.dark-mode {
263267
--page-secondary-foreground-color: #859399;
264268
--separator-color: #38393b;
265269
--side-nav-background: #252628;
270+
--page-outline-vis: #323539;
266271

267272
--code-background: #2a2c2f;
268273

@@ -363,6 +368,7 @@ a.anchor {
363368
#main-nav {
364369
flex-grow: 5;
365370
padding: var(--spacing-small) var(--spacing-medium);
371+
border-bottom: none;
366372
}
367373

368374
#titlearea {
@@ -776,7 +782,7 @@ html.dark-mode iframe#MSearchResults {
776782
Tree view
777783
*/
778784

779-
#side-nav {
785+
#side-nav, #page-nav {
780786
padding: 0 !important;
781787
background: var(--side-nav-background);
782788
min-width: 8px;
@@ -793,9 +799,14 @@ html.dark-mode iframe#MSearchResults {
793799
}
794800
}
795801

802+
ul.page-outline li.vis {
803+
background-color: var(--page-outline-vis);
804+
}
805+
796806
#nav-tree {
797807
background: transparent;
798808
margin-right: 1px;
809+
border-right: none;
799810
}
800811

801812
#nav-tree .label {
@@ -841,7 +852,7 @@ html.dark-mode iframe#MSearchResults {
841852
}
842853

843854

844-
#nav-tree a {
855+
#nav-tree a, #page-nav-tree a {
845856
color: var(--side-nav-foreground) !important;
846857
font-weight: normal;
847858
}
@@ -860,7 +871,8 @@ html.dark-mode iframe#MSearchResults {
860871
cursor: pointer;
861872
font-size: 45%;
862873
vertical-align: middle;
863-
margin-right: 2px;
874+
padding-bottom: 4px;
875+
padding-right: 4px;
864876
font-family: serif;
865877
height: auto;
866878
text-align: right;
@@ -989,7 +1001,7 @@ html.dark-mode div.contents .dotgraph iframe
9891001
filter: brightness(89%) hue-rotate(180deg) invert();
9901002
}
9911003

992-
h2.groupheader {
1004+
td h2.groupheader, h2.groupheader {
9931005
border-bottom: 0px;
9941006
color: var(--page-foreground-color);
9951007
box-shadow:
@@ -1799,6 +1811,7 @@ table.memberdecls .memTemplParams {
17991811
border-top: 1px solid var(--separator-color);
18001812
border-bottom: 1px solid var(--separator-color);
18011813
background-color: var(--fragment-background);
1814+
border-top-color: var(--separator-color) !important;
18021815
}
18031816

18041817
table.memberdecls .memTemplItemLeft,
@@ -1843,6 +1856,9 @@ table.memberdecls .memItemRight {
18431856
}
18441857

18451858
table.memberdecls .mdescLeft, table.memberdecls .mdescRight {
1859+
border-bottom-color: var(--separator-color);
1860+
border-left: none;
1861+
border-right: none;
18461862
background: none;
18471863
color: var(--page-foreground-color);
18481864
padding: var(--spacing-small) 0;

0 commit comments

Comments
 (0)