1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00
Files
docs/layouts/_partials/api-reference/manual-link.html
agent 5c858018dc docs: fix API reference banner contrast in dark mode
The API reference banner kept its light background when links switched to light colors in dark mode. Add dark background, border, and text colors matching the note callout palette.
2026-10-06 15:22:40 +00:00

14 lines
518 B
HTML

{{ if ne .Params.apiReferenceBanner false }}
{{ $data := index hugo.Data "api-reference" }}
{{ range $data.apis }}
{{ $manual := site.GetPage .manual }}
{{ if and $manual (eq $manual.RelPermalink $.RelPermalink) }}
<p
class="my-4 rounded border border-blue-200 bg-blue-50 p-4 text-sm text-blue-900 dark:border-blue-600 dark:bg-blue-950 dark:text-blue-100"
>
<a href="{{ .url }}">Explore the {{ .title }} API {{ .version }} →</a>
</p>
{{ end }}
{{ end }}
{{ end }}