mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-07-22 01:19:30 +00:00
ca4d763eed
- study_guide_detail.html: bronze "Study Guide" kicker above the title, the shared TOC styles included (previously unstyled default list), tokenised PDF download chip, keyboard nav on the accent token - partials/_toc_styles.html: the table of contents is now an elevated card with a gold-tipped small-caps heading — shared by eleven resource pages (parables, names of God, covenants, apostles, etc.), which all inherit the upgrade - base.html: .page-kicker + h1 pairing rule so kickers sit snug above their titles everywhere All 976 tests pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
71 lines
1.5 KiB
HTML
71 lines
1.5 KiB
HTML
{# Shared table-of-contents styles for resource/study index pages.
|
|
Included inside each page's <style> block (in {% block head %}) so the
|
|
rules stay in the child's stylesheet position -- NOT hoisted to base.html,
|
|
because about/about_claude/accessibility/commentary_index/cross_references_index
|
|
define their own different .toc rules that a global base rule would clobber. #}
|
|
.toc {
|
|
max-width: 55%;
|
|
margin: 2rem 0;
|
|
padding: 1.5rem 1.75rem;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-color-dark);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.toc h2 {
|
|
position: relative;
|
|
margin: 0 0 1rem 0 !important;
|
|
font-size: 0.85rem !important;
|
|
font-weight: 600;
|
|
font-style: normal !important;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.18em;
|
|
color: var(--text-secondary) !important;
|
|
padding-bottom: 0.6rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.toc h2::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -1px;
|
|
width: 2.75rem;
|
|
height: 1px;
|
|
background: var(--gold);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.toc {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.toc ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.toc li {
|
|
margin: 0.5rem 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.toc a {
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
border-bottom: 1px solid transparent;
|
|
}
|
|
|
|
.toc a:hover {
|
|
color: var(--link-color);
|
|
border-bottom-color: var(--link-color);
|
|
}
|
|
|
|
.toc li.toc-h3 {
|
|
padding-left: 1.5rem;
|
|
font-size: 0.95rem;
|
|
}
|