Release v0.2.11
This commit is contained in:
parent
44c1fdfe30
commit
5207da0792
@ -3,6 +3,20 @@ Changelog data for Novela
|
||||
"""
|
||||
|
||||
CHANGELOG = [
|
||||
{
|
||||
"version": "v0.2.11",
|
||||
"date": "2026-05-10",
|
||||
"summary": "Subheading styling now also applies when the wrapper contains a block element (e.g. <div class=\"subheading\"><p>…</p></div>) — the inner <p>/<h*> color rule no longer wins.",
|
||||
"sections": [
|
||||
{
|
||||
"title": "Bug fixes",
|
||||
"type": "bugfix",
|
||||
"changes": [
|
||||
"Reader: subheading styling now applies to descendants too — previously the inner <p> (or <h*>) had the same specificity as .subheading but applied more directly, so the wrapper's color was overridden and the paragraph kept the default text color. CSS now reads #chapter-content .subheading, #chapter-content .subheading * { … }, and the same change was made to .chat for safety.",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"version": "v0.2.10",
|
||||
"date": "2026-05-10",
|
||||
|
||||
@ -219,8 +219,10 @@
|
||||
margin-bottom: 2.5rem; padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
#chapter-content .subheading { color: rgb(224, 62, 45); font-weight: bold; }
|
||||
#chapter-content .chat { color: rgb(230, 126, 35); }
|
||||
#chapter-content .subheading,
|
||||
#chapter-content .subheading * { color: rgb(224, 62, 45); font-weight: bold; }
|
||||
#chapter-content .chat,
|
||||
#chapter-content .chat * { color: rgb(230, 126, 35); }
|
||||
#chapter-content p[style*="padding-left"] { padding-left: 40px; }
|
||||
#chapter-content .novela-comment {
|
||||
border-left: 3px solid #6b9dd6;
|
||||
|
||||
@ -1,5 +1,15 @@
|
||||
# Develop Changelog
|
||||
|
||||
## 2026-05-10
|
||||
- Reader: subheading/chat styling now also wins when the wrapper contains block elements with their own color rule (e.g. `<div class="subheading"><p>…</p></div>`)
|
||||
- Previously the `<p>`/`<h*>` rules in `reader.html` (`#chapter-content p { color: var(--text); }`, etc.) had the same specificity as `.subheading` and applied more directly to the inner element, so the parent's color was effectively overridden — the wrapped paragraph stayed in the default text color
|
||||
- CSS now applies the rule to the wrapper *and* all descendants: `#chapter-content .subheading, #chapter-content .subheading * { … }` (and the same for `.chat`)
|
||||
- Reason: bug reported after v0.2.10 — `.chat` worked because it wraps plain inline text inside a `<p>`, but `.subheading` wrapping a `<p>` lost its color
|
||||
|
||||
---
|
||||
*Released as v0.2.11 on 2026-05-10*
|
||||
|
||||
---
|
||||
*Released as v0.2.10 on 2026-05-10*
|
||||
|
||||
## 2026-05-09 (2)
|
||||
|
||||
@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## v0.2.11 — 2026-05-10
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Reader: subheading styling now also applies when the wrapper contains a block element with its own color rule, e.g. `<div class="subheading"><p>…</p></div>`. Previously the `<p>` (and `<h*>`) rules in `reader.html` had the same CSS specificity as `.subheading` but applied more directly to the inner element, so the wrapper's color was effectively overridden and the paragraph kept the default text color. The rule now applies to the wrapper and all descendants (`#chapter-content .subheading, #chapter-content .subheading * { … }`); the same change was made to `.chat` for safety. Reported right after v0.2.10 — `.chat` was unaffected because it wraps plain inline text, but `.subheading` wrapping a paragraph lost its color.
|
||||
|
||||
---
|
||||
|
||||
## v0.2.10 — 2026-05-10
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user