fix(chemistry7): тема главы + фон para-hero (область §-заголовка сливалась)

Страницы глав наследовали amber-палитру chem8-textbook.css и базовый
.para-hero без фона (нужен модификатор .ph-N) → блок заголовка § сливался
с фоном. Добавлен per-chapter <style>: своя палитра (emerald/cyan/violet/blue,
как карточки в хабе) + сплошной градиент .para-hero. Тесты chem7: 15/15.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maxim Dolgolyov
2026-05-30 19:09:17 +03:00
parent 7574d16678
commit 26eaee5c57
4 changed files with 24 additions and 0 deletions
+6
View File
@@ -10,6 +10,12 @@
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=Unbounded:wght@700;800;900&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<link rel="stylesheet" href="/css/chem8-textbook.css">
<style>/* Химия 7 · тема главы 3 — violet (переопределяет amber chem8-textbook.css) */
:root{--bg:#f5f3ff;--border:#ddd6fe;--pri:#7c3aed;--pri-d:#6d28d9;--pri-l:#a78bfa;--pri-soft:#ede9fe;--sec-acc:#7c3aed;--sec-acc-d:#6d28d9;--sec-acc-soft:#ede9fe;--warn:#6d28d9;--warn-bg:#ede9fe}
html.dark{--bg:#140a24;--border:#3b2a63;--pri-soft:rgba(124,58,237,.18);--sec-acc-soft:rgba(124,58,237,.18)}
.hdr{background:linear-gradient(110deg,#4c1d95 0%,#7c3aed 55%,#a78bfa 100%)}
.hero{background:linear-gradient(135deg,var(--pri-soft),rgba(167,139,250,.12))}
.para-hero{background:linear-gradient(135deg,#4c1d95,#7c3aed 55%,#a78bfa)}</style>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"></script>
<script src="/js/api.js" defer></script>