diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-01 21:24:48 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-01 21:24:48 +0200 |
commit | afe6a6c8b77a7f1ae99190ab782cdba1f5ee422d (patch) | |
tree | 75ea25561cde327a9feb8d81aa81e89dbdee54c6 /src/templates/coins-designs.html.tmpl | |
parent | 86dd0a1c532f44ae605640c31c62098d14459db4 (diff) |
Move .country-grid styling to the correct file
Diffstat (limited to 'src/templates/coins-designs.html.tmpl')
-rw-r--r-- | src/templates/coins-designs.html.tmpl | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/templates/coins-designs.html.tmpl b/src/templates/coins-designs.html.tmpl index def1e98..83164f3 100644 --- a/src/templates/coins-designs.html.tmpl +++ b/src/templates/coins-designs.html.tmpl @@ -1,3 +1,24 @@ +{{ define "header" }} +<style> + .country-grid { + --button-min-width: 20ch; + + row-gap: var(--spacing); + + a { + display: flex; + padding-left: 0; + padding-block: 1ch; + + > :first-child { + font-weight: bold; + width: calc(var(--form-element-spacing-horizontal) * 2 + 2ch); + } + } + } +</style> +{{ end }} + {{ define "content" }} <header> {{ template "navbar" . }} @@ -17,7 +38,8 @@ role="button" href="/coins/designs/{{ .Code }}" > - {{ .Name }} + <span>{{ .Code | toUpper }}</span> + <span>{{ .Name }}</span> </a> {{ end }} </div> |