Files
kjvstudy.org/kjvstudy_org/templates/base.html
T
kennethreitz 0807a8b5ed Make sidebar narrower and more compact
Reduce sidebar width from 280px to 220px:
- Decrease padding from 1.5rem to 1.25rem
- Reduce font-size from 0.85rem to 0.8rem
- Tighten line-height from 1.6 to 1.5
- Adjust article margin-left from 340px to 280px

Creates a more elegant, space-efficient navigation sidebar.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 18:09:52 -05:00

328 lines
9.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>{% block title %}Authorized King James Version Bible{% endblock %}</title>
<meta name="description" content="{% block description %}Study the Authorized King James Version Bible{% endblock %}"/>
<link rel="stylesheet" href="/static/tufte.css"/>
{% block head %}{% endblock %}
<style>
/* Enhanced typography and spacing */
body {
counter-reset: sidenote-counter;
}
article {
padding: 2rem 5%;
}
h1, h2, h3 {
font-weight: 400;
font-style: normal;
}
h1 {
font-size: 2.8rem;
line-height: 1.2;
margin-top: 3rem;
margin-bottom: 1.5rem;
letter-spacing: -0.02em;
}
h2 {
font-size: 2rem;
line-height: 1.3;
margin-top: 3rem;
margin-bottom: 1rem;
font-style: italic;
}
p {
font-size: 1.4rem;
line-height: 2;
margin-top: 1.4rem;
}
/* Drop cap for opening paragraphs */
.newthought {
font-variant: small-caps;
letter-spacing: 0.05em;
}
/* Refined breadcrumb navigation */
.breadcrumb {
margin: 2rem 0 3rem 0;
font-size: 0.95rem;
color: #666;
font-style: italic;
border-bottom: 1px solid #eee;
padding-bottom: 1rem;
}
.breadcrumb a {
color: #333;
text-decoration: none;
transition: color 0.2s;
}
.breadcrumb a:hover {
color: #000;
}
.breadcrumb-separator {
margin: 0 0.75rem;
color: #999;
}
/* Enhanced link styling */
a {
color: #333;
text-decoration: none;
border-bottom: 1px solid #ddd;
transition: all 0.2s;
}
a:hover {
color: #000;
border-bottom-color: #000;
}
/* Section dividers */
section {
margin-top: 3rem;
padding-top: 2rem;
}
section:not(:first-of-type) {
border-top: 1px solid #eee;
}
/* Ornamental breaks */
.ornament {
text-align: center;
margin: 3rem 0;
color: #999;
font-size: 1.5rem;
letter-spacing: 1rem;
}
/* Floating Navigation Sidebar */
.nav-sidebar {
position: fixed;
top: 2rem;
left: 2rem;
width: 220px;
max-height: calc(100vh - 4rem);
overflow-y: auto;
background: linear-gradient(to bottom, #fafafa 0%, #f8f8f8 100%);
border: 1px solid #ddd;
border-radius: 2px;
padding: 1.25rem;
font-size: 0.8rem;
line-height: 1.5;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
z-index: 100;
}
.nav-sidebar::-webkit-scrollbar {
width: 6px;
}
.nav-sidebar::-webkit-scrollbar-track {
background: #f0f0f0;
}
.nav-sidebar::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 3px;
}
.nav-sidebar h3 {
font-size: 0.9rem;
font-weight: 600;
font-style: italic;
margin: 0 0 0.75rem 0;
padding-bottom: 0.5rem;
border-bottom: 1px solid #ddd;
color: #333;
}
.nav-sidebar ul {
list-style: none;
padding: 0;
margin: 0 0 1.5rem 0;
}
.nav-sidebar li {
margin: 0.35rem 0;
}
.nav-sidebar a {
color: #555;
text-decoration: none;
border-bottom: none;
display: block;
padding: 0.25rem 0.5rem;
border-radius: 2px;
transition: all 0.2s;
}
.nav-sidebar a:hover {
color: #000;
background: rgba(0,0,0,0.05);
}
.nav-sidebar a.current {
color: #000;
background: rgba(0,0,0,0.08);
font-weight: 600;
border-left: 3px solid #333;
padding-left: 0.75rem;
}
.nav-sidebar .testament-section {
margin-bottom: 1.5rem;
}
.nav-sidebar .testament-title {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #888;
margin-bottom: 0.5rem;
font-weight: 600;
}
.nav-sidebar .book-list {
font-size: 0.8rem;
}
.nav-sidebar .context-path {
background: #f0f0f0;
padding: 0.75rem;
margin-bottom: 1rem;
border-left: 3px solid #666;
font-size: 0.8rem;
line-height: 1.8;
color: #555;
}
.nav-sidebar .context-path strong {
color: #000;
font-weight: 600;
}
/* Hide sidebar on smaller screens */
@media (max-width: 1200px) {
.nav-sidebar {
display: none;
}
}
/* Adjust article position when sidebar is present */
@media (min-width: 1201px) {
article {
margin-left: 280px;
}
}
</style>
</head>
<body>
<article>
{% if breadcrumbs %}
<nav class="breadcrumb">
{% for crumb in breadcrumbs %}
{% if not loop.last %}
<a href="{{ crumb.url }}">{{ crumb.text }}</a>
<span class="breadcrumb-separator">&gt;</span>
{% else %}
<span>{{ crumb.text }}</span>
{% endif %}
{% endfor %}
</nav>
{% endif %}
{% block content %}{% endblock %}
</article>
<!-- Floating Navigation Sidebar -->
<nav class="nav-sidebar">
<h3>Navigation</h3>
{% if current_book or current_chapter or current_verse %}
<div class="context-path">
{% if current_book %}
<strong>{{ current_book }}</strong>
{% if current_chapter %}
<br>Chapter {{ current_chapter }}
{% if current_verse %}
<br>Verse {{ current_verse }}
{% endif %}
{% endif %}
{% endif %}
</div>
{% endif %}
<ul>
<li><a href="/" {% if request.url.path == "/" %}class="current"{% endif %}>Home</a></li>
<li><a href="/verse-of-the-day">Verse of the Day</a></li>
<li><a href="/search">Search</a></li>
</ul>
{% if books %}
<div class="testament-section">
<div class="testament-title">Old Testament</div>
<ul class="book-list">
{% for book in ['Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy', 'Joshua', 'Judges', 'Ruth', '1 Samuel', '2 Samuel', '1 Kings', '2 Kings', '1 Chronicles', '2 Chronicles', 'Ezra', 'Nehemiah', 'Esther', 'Job', 'Psalms', 'Proverbs', 'Ecclesiastes', 'Song of Solomon', 'Isaiah', 'Jeremiah', 'Lamentations', 'Ezekiel', 'Daniel', 'Hosea', 'Joel', 'Amos', 'Obadiah', 'Jonah', 'Micah', 'Nahum', 'Habakkuk', 'Zephaniah', 'Haggai', 'Zechariah', 'Malachi'] %}
{% if book in books %}
<li><a href="/book/{{ book }}" {% if current_book == book %}class="current"{% endif %}>{{ book }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="testament-section">
<div class="testament-title">New Testament</div>
<ul class="book-list">
{% for book in ['Matthew', 'Mark', 'Luke', 'John', 'Acts', 'Romans', '1 Corinthians', '2 Corinthians', 'Galatians', 'Ephesians', 'Philippians', 'Colossians', '1 Thessalonians', '2 Thessalonians', '1 Timothy', '2 Timothy', 'Titus', 'Philemon', 'Hebrews', 'James', '1 Peter', '2 Peter', '1 John', '2 John', '3 John', 'Jude', 'Revelation'] %}
{% if book in books %}
<li><a href="/book/{{ book }}" {% if current_book == book %}class="current"{% endif %}>{{ book }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
<h3>Resources</h3>
<ul>
<li><a href="/biblical-maps">Biblical Geography</a></li>
<li><a href="/family-tree">Genealogies</a></li>
<li><a href="/biblical-timeline">Timeline</a></li>
<li><a href="/study-guides">Study Guides</a></li>
</ul>
</nav>
<script type="text/javascript">
// Gauges analytics
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '6834bd650d851064ae28dc13');
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
t.src = 'https://d2fuc4clr7gvcn.cloudfront.net/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
</body>
</html>