From ef4b70eec385c79b5ba102cdea99029c222667f1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 3 Aug 2025 02:41:22 +0200 Subject: Move styling around --- src/templates/coins-mintages.html.tmpl | 42 +++++++++++++++++++-------------- static/style.css | 43 +--------------------------------- 2 files changed, 25 insertions(+), 60 deletions(-) diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index cfac73b..7658ce7 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -1,5 +1,11 @@ {{ define "header" }} {{ template "header-navbar" . }} + + {{ end }} {{ define "content" }} @@ -53,17 +59,17 @@
{{ .Get "Standard Issue Coins" }}
- +
- - - - - - - - + + + + + + + + {{ $p := .Printer }} @@ -77,13 +83,13 @@ {{ range .Mintages }} {{ if eq . -1 }} - + {{ else if eq . -2 }} - + {{ else if eq . 0 }} - + {{ else }} - + {{ end }} {{ end }} @@ -95,7 +101,7 @@ {{ if ne (len .Mintages.Commemorative) 0 }}
{{ .Get "Commemorative Coins" }}
-
{{ .Get "Year" }}{{ .Printer.Ftom 0.01 }}{{ .Printer.Ftom 0.02 }}{{ .Printer.Ftom 0.05 }}{{ .Printer.Ftom 0.10 }}{{ .Printer.Ftom 0.20 }}{{ .Printer.Ftom 0.50 }}{{ .Printer.Ftom 1.00 }}{{ .Printer.Ftom 2.00 }}{{ .Printer.Ftom 0.01 }}{{ .Printer.Ftom 0.02 }}{{ .Printer.Ftom 0.05 }}{{ .Printer.Ftom 0.10 }}{{ .Printer.Ftom 0.20 }}{{ .Printer.Ftom 0.50 }}{{ .Printer.Ftom 1.00 }}{{ .Printer.Ftom 2.00 }}
{{ $p.Get "Unknown" }}{{ $p.Get "Unknown" }}{{ $p.Get "Error" }}{{ $p.Get "Error" }}{{ $p.Sprintf "{N}" (map "N" .) }}{{ $p.Itoa . }}
+
@@ -115,13 +121,13 @@ {{ with .Mintage }} {{ if eq . -1 }} - + {{ else if eq . -2 }} - + {{ else if eq . 0 }} - + {{ else }} - + {{ end }} {{ end }} diff --git a/static/style.css b/static/style.css index e5e40a1..327a034 100644 --- a/static/style.css +++ b/static/style.css @@ -2161,24 +2161,6 @@ textarea, text-align: right; } -#article-list td:first-child { - text-align: right; - width: 14ch; -} - -#article-list td { - white-space: nowrap; -} - -.mintage-table .mintage-table-cc { - white-space: nowrap; -} - -.mintage-table tr :is(th, td):not(:first-child), -.mintage-table-cc tr :is(th, td):last-child { - text-align: right; -} - a[role=button].outline { --background-color: transparent; --color: var(--primary); @@ -2189,16 +2171,7 @@ a[role=button].outline:is(:hover, :active, :focus) { --color: var(--primary-hover); } -.bnote-design-container { - gap: 5%; -} - -.bnote-design-container > img { - width: 100%; -} - -.design-container, -.bnote-design-container { +.design-container { display: flex; justify-content: space-around; align-items: center; @@ -2216,20 +2189,6 @@ div.grid:not(:first-of-type) { margin-top: var(--grid-spacing-vertical); } -dl.unix-style { - display: grid; - grid-template-columns: max-content auto; - row-gap: var(--spacing); -} - -dl.unix-style dt { - grid-column-start: 1; -} - -dl.unix-style dd { - grid-column-start: 2; -} - dl dt:not(:first-child) { margin-top: var(--block-spacing-vertical); } -- cgit v1.2.3
{{ .Get "Year" }} {{ .Get "Commemorated Issue" }}{{ .Name }}{{ $p.Get "Unknown" }}{{ $p.Get "Unknown" }}{{ $p.Get "Error" }}{{ $p.Get "Error" }}{{ $p.Sprintf "{N}" (map "N" .) }}{{ $p.Itoa . }}