From 18e9aa59a9dd57ee2954214bafdbe857780093c1 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 15 Sep 2026 18:25:59 +1000 Subject: [PATCH 1/3] .first-letter should only style ::first-letter doh --- themes/V3/5ePHB/style.less | 3 ++- themes/V3/Journal/style.less | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index 28bde8a2f..0dd333e9e 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -87,7 +87,8 @@ -moz-column-span : all; & + p::first-line { font-variant : small-caps; } } - .first-letter, .drop-cap, + p.first-letter::first-letter, + p.drop-cap::first-letter, h1 + p::first-letter { float : left; padding-bottom : 2px; diff --git a/themes/V3/Journal/style.less b/themes/V3/Journal/style.less index 9b9b7d024..8d6f3f9ff 100644 --- a/themes/V3/Journal/style.less +++ b/themes/V3/Journal/style.less @@ -82,7 +82,8 @@ line-height : 1em; & + p::first-line { font-variant : small-caps; } } - .first-letter, .drop-cap, + p.first-letter::first-letter, + p.drop-cap::first-letter, h1 + p::first-letter { float : left; padding-top : 0.3em; From 5d72609ac61271cc0091c2ddf25203336e3d8ad6 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 15 Sep 2026 18:26:55 +1000 Subject: [PATCH 2/3] and snippet too --- themes/V3/5ePHB/snippets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/V3/5ePHB/snippets.js b/themes/V3/5ePHB/snippets.js index 73ac5cb43..2f69399ea 100644 --- a/themes/V3/5ePHB/snippets.js +++ b/themes/V3/5ePHB/snippets.js @@ -30,7 +30,8 @@ export default [ name : 'Tweak Drop Cap', icon : 'fas fa-sliders-h', gen : dedent`/* Drop Cap settings */ - .page .first-letter, .page .drop-cap, + .page .first-letter::first-letter, + .page .drop-cap::first-letter, .page h1 + p::first-letter { font-family: SolberaImitationRemake; font-size: 3.5cm; From fa86a623560b2bf4d54e6dadc68c926d0764897b Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 21 Sep 2026 14:08:39 +1000 Subject: [PATCH 3/3] specificity normalisation across themes/snippets --- themes/V3/5eDMG/style.less | 3 ++- themes/V3/5ePHB/snippets.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/V3/5eDMG/style.less b/themes/V3/5eDMG/style.less index 8aad90315..b0452d882 100644 --- a/themes/V3/5eDMG/style.less +++ b/themes/V3/5eDMG/style.less @@ -14,7 +14,8 @@ .note table tbody tr:nth-child(odd) { background : #FFFFFF; } /* DROP CAP */ - .first-letter, .drop-cap + p.first-letter::first-letter, + p.drop-cap::first-letter, h1 + p::first-letter { color : black; background-image : unset; diff --git a/themes/V3/5ePHB/snippets.js b/themes/V3/5ePHB/snippets.js index 2f69399ea..fd2a3758c 100644 --- a/themes/V3/5ePHB/snippets.js +++ b/themes/V3/5ePHB/snippets.js @@ -30,8 +30,8 @@ export default [ name : 'Tweak Drop Cap', icon : 'fas fa-sliders-h', gen : dedent`/* Drop Cap settings */ - .page .first-letter::first-letter, - .page .drop-cap::first-letter, + .page p.first-letter::first-letter, + .page p.drop-cap::first-letter, .page h1 + p::first-letter { font-family: SolberaImitationRemake; font-size: 3.5cm;