From d7dd50913831d1534366984d28471ab85c90c5f4 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sun, 1 Jun 2025 07:28:42 -0500 Subject: [PATCH] Tweak styling to make the lead sheet more compact. --- pco_chords.nimble | 2 +- src/pco_chordspkg/cliconstants.nim | 2 +- src/pco_chordspkg/html.nim | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pco_chords.nimble b/pco_chords.nimble index bf0428f..2e58e32 100644 --- a/pco_chords.nimble +++ b/pco_chords.nimble @@ -1,6 +1,6 @@ # Package -version = "0.5.5" +version = "0.5.6" author = "Jonathan Bernard" description = "Chord chart formatter compatible with Planning Center Online" license = "MIT" diff --git a/src/pco_chordspkg/cliconstants.nim b/src/pco_chordspkg/cliconstants.nim index 199035c..ae2cdb4 100644 --- a/src/pco_chordspkg/cliconstants.nim +++ b/src/pco_chordspkg/cliconstants.nim @@ -1,4 +1,4 @@ -const PCO_CHORDS_VERSION* = "0.5.5" +const PCO_CHORDS_VERSION* = "0.5.6" const USAGE* = """Usage: pco_chords [options] diff --git a/src/pco_chordspkg/html.nim b/src/pco_chordspkg/html.nim index d299b95..9a6e990 100644 --- a/src/pco_chordspkg/html.nim +++ b/src/pco_chordspkg/html.nim @@ -22,6 +22,7 @@ const DEFAULT_STYLESHEET* = """ html { font-family: sans-serif; } +.page-contents { line-height: 1.1; } .one-column .page-contents { column-count: 1; } .two-column .page-contents { column-count: 2; } @@ -36,7 +37,7 @@ section { h3 { font-size: 1.125rem; - margin-bottom: 0.5em; + margin-bottom: 0.125em; text-decoration: underline; } @@ -69,6 +70,7 @@ h3 .section-text { .chord { font-weight: 600; + margin-bottom: -0.25em; margin-right: 0.5em; white-space: nowrap; }