Skip to content

Commit b75c032

Browse files
authored
Small adjustments in support of unified docs site (#103)
* Style inline code blocks within summary titles * Style external nav content anchors the same as xref anchors * Render navigation when single list structure is used
1 parent 6194186 commit b75c032

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/css/asciidoc/doc.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150

151151
.doc p code,
152152
.doc thead code,
153+
.doc summary.title code,
153154
.doc .colist > table code {
154155
color: var(--ds-text-secondary);
155156
background: var(--ds-neutral-soft-bg);
@@ -175,6 +176,10 @@
175176
margin: 0;
176177
}
177178

179+
.doc summary.title code {
180+
margin: 0px 3px;
181+
}
182+
178183
.doc .paragraph.lead > p {
179184
font-size: calc(14 / var(--rem-base) * 1rem);
180185
}

src/partials/nav-tree.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
{{{./content}}}
2424
</a>
2525
{{else}}
26-
<span class="flex rounded text-body-small text-tertiary py-1 px-2">
26+
<span class="[&>a]:flex [&>a]:rounded [&>a]:!no-underline [&>a]:text-body-small [&>a]:text-primary [&>a]:py-1 [&>a]:px-2 [&>a:hover]:bg-level2">
2727
{{{./content}}}
2828
</span>
2929
{{/if}}
3030
</li>
3131
{{> nav-tree navigation=./items level=(increment ../level)}}
3232
{{/if}}
33+
{{else}}
34+
{{> nav-tree navigation=./items level=0}}
3335
{{/if}}
3436
{{/each}}
3537
</ul>

0 commit comments

Comments
 (0)