Files
kjvstudy.org/kjvstudy_org/static/style.css
T
kennethreitz afc8126617 Add categorized Bible book navigation with visual styling
Add categorized Bible book navigation with visual styling

AI:

Add categorized Bible book navigation with visual styling
2025-05-26 13:34:37 -04:00

603 lines
11 KiB
CSS

:root {
--primary-color: #4b2e83;
--primary-light: #6d4bb3;
--primary-dark: #2f1a4f;
--accent-color: #8b5cf6;
--background-color: #fdfcf9;
--surface-color: #ffffff;
--text-primary: #1a1a1a;
--text-secondary: #6b7280;
--text-muted: #9ca3af;
--border-color: #e5e7eb;
--border-light: #f3f4f6;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--font-serif: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-display: 'Lora', var(--font-serif);
/* Bible Book Category Colors */
--torah-color: #8B4513;
--historical-color: #CD853F;
--wisdom-color: #DAA520;
--major-prophets-color: #A0522D;
--minor-prophets-color: #A52A2A;
--gospels-color: #4169E1;
--acts-color: #6495ED;
--pauline-color: #1E90FF;
--general-epistles-color: #4682B4;
--apocalyptic-color: #191970;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-serif);
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--text-primary);
line-height: 1.6;
font-size: 16px;
}
/* Layout */
.layout {
min-height: 100vh;
display: flex;
}
.sidebar {
width: 280px;
background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
color: white;
overflow-y: auto;
padding: 2rem 0;
box-shadow: var(--shadow-lg);
position: fixed;
height: 100vh;
z-index: 30;
transition: transform 0.3s ease;
}
.sidebar-header {
padding: 0 1.5rem 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 1.5rem;
}
.sidebar-title {
font-family: var(--font-display);
font-size: 1.5rem;
font-weight: 600;
margin: 0;
color: white;
display: flex;
align-items: center;
gap: 0.5rem;
}
.sidebar-subtitle {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.7);
margin: 0.25rem 0 0;
font-weight: 400;
}
.sidebar-nav {
padding: 0 1rem;
}
.sidebar-nav h3 {
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: rgba(255, 255, 255, 0.6);
margin: 1.5rem 0.5rem 0.75rem;
}
.sidebar-nav a {
display: block;
color: rgba(255, 255, 255, 0.8);
padding: 0.625rem 0.75rem;
text-decoration: none;
border-radius: var(--radius-sm);
margin-bottom: 0.25rem;
transition: all 0.2s ease;
font-size: 0.9rem;
}
.sidebar-nav a:hover {
background-color: rgba(255, 255, 255, 0.1);
color: white;
transform: translateX(4px);
}
.sidebar-nav a.active {
background-color: rgba(255, 255, 255, 0.15);
color: white;
font-weight: 500;
}
.sidebar-nav a.coming-soon {
opacity: 0.6;
cursor: not-allowed;
position: relative;
}
.sidebar-nav a.coming-soon small {
display: block;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.5);
margin-top: 0.25rem;
}
.sidebar-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 20;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.sidebar-overlay.open {
opacity: 1;
visibility: visible;
}
.main-content {
flex: 1;
margin-left: 280px;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 3rem 2rem;
}
.narrow-container {
max-width: 800px;
margin: 0 auto;
padding: 3rem 2rem;
}
/* Typography */
.page-title {
font-family: var(--font-display);
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 600;
color: var(--primary-color);
text-align: center;
margin: 0 0 3rem;
line-height: 1.2;
}
.section-title {
font-family: var(--font-display);
font-size: 2rem;
font-weight: 600;
color: var(--primary-color);
margin: 0 0 1.5rem;
line-height: 1.3;
}
.chapter-title {
font-family: var(--font-display);
font-size: 2.5rem;
font-weight: 600;
color: var(--primary-color);
text-align: center;
margin: 0 0 3rem;
line-height: 1.2;
}
/* Cards and Components */
.card {
background: var(--surface-color);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-light);
overflow: hidden;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.card-body {
padding: 1.5rem;
}
/* Book Grid */
.book-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
margin-top: 2rem;
}
.book-card {
background: var(--surface-color);
border-radius: var(--radius-md);
padding: 1rem;
text-decoration: none;
box-shadow: var(--shadow-sm);
transition: transform 0.2s ease, box-shadow 0.2s ease;
border: 1px solid var(--border-light);
color: var(--text-primary);
}
.book-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
/* Testament Divider */
.testament-divider {
border: none;
height: 3px;
background: linear-gradient(90deg, var(--torah-color) 0%, var(--gospels-color) 100%);
margin: 2rem 0;
opacity: 0.7;
border-radius: 1px;
box-shadow: var(--shadow-sm);
width: 100%;
}
.book-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
transform: scaleX(0);
transition: transform 0.3s ease;
}
.book-card:hover::before {
transform: scaleX(1);
}
.book-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-4px);
border-color: var(--primary-color);
}
.book-title {
font-family: var(--font-display);
font-size: 1.25rem;
font-weight: 600;
color: var(--primary-color);
margin: 0;
line-height: 1.3;
}
.book-meta {
margin: 0.25rem 0 0 0;
font-size: 0.75rem;
color: var(--text-secondary);
font-style: italic;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Chapter Grid */
.chapter-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 1rem;
margin-top: 2rem;
}
.chapter-link {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: var(--surface-color);
color: var(--primary-color);
border-radius: var(--radius-md);
text-decoration: none;
font-weight: 600;
font-size: 1.125rem;
border: 2px solid var(--border-light);
transition: all 0.2s ease;
min-height: 60px;
}
.chapter-link:hover {
background: var(--primary-color);
color: white;
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
/* Verses */
.verses-container {
max-width: 800px;
margin: 0 auto;
}
.verse {
margin-bottom: 1.5rem;
line-height: 1.75;
font-size: 1.125rem;
position: relative;
padding-left: 3rem;
}
.verse-number {
position: absolute;
left: 0;
top: 0;
font-size: 0.875rem;
color: var(--text-muted);
font-weight: 600;
width: 2.5rem;
text-align: right;
font-family: var(--font-sans);
}
.verse-text {
color: var(--text-primary);
}
/* Navigation */
.breadcrumb {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 2rem;
font-size: 0.875rem;
color: var(--text-secondary);
}
.breadcrumb a {
color: var(--primary-color);
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
.breadcrumb-separator {
color: var(--text-muted);
}
.navigation {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 4rem;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
}
.nav-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: var(--surface-color);
color: var(--primary-color);
text-decoration: none;
border-radius: var(--radius-md);
border: 2px solid var(--border-color);
font-weight: 500;
transition: all 0.2s ease;
}
.nav-button:hover {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.nav-button-primary {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.nav-button-primary:hover {
background: var(--primary-dark);
border-color: var(--primary-dark);
}
/* Search */
.search-container {
position: relative;
margin-bottom: 2rem;
}
.search-input {
width: 100%;
padding: 1rem 1rem 1rem 3rem;
font-size: 1rem;
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
background: var(--surface-color);
color: var(--text-primary);
transition: border-color 0.2s ease;
}
.search-input:focus {
outline: none;
border-color: var(--primary-color);
}
.search-icon {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
}
/* Mobile Responsiveness */
.mobile-menu-button {
display: none;
position: fixed;
top: 1rem;
left: 1rem;
z-index: 20;
background: var(--primary-color);
color: white;
border: none;
border-radius: var(--radius-md);
padding: 0.75rem;
cursor: pointer;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
width: 100%;
max-width: 320px;
}
.sidebar.open {
transform: translateX(0);
}
.main-content {
margin-left: 0;
padding-top: 4rem;
}
.mobile-menu-button {
display: block;
}
.container,
.narrow-container {
padding: 2rem 1rem;
}
.page-title {
font-size: 2rem;
margin-bottom: 2rem;
}
.chapter-title {
font-size: 2rem;
margin-bottom: 2rem;
}
.book-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.chapter-grid {
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 0.75rem;
}
.chapter-link {
padding: 0.75rem;
font-size: 1rem;
min-height: 50px;
}
.verse {
font-size: 1rem;
padding-left: 2.5rem;
}
.verse-number {
width: 2rem;
}
.navigation {
flex-direction: column;
gap: 1rem;
}
.sidebar-nav {
max-height: calc(100vh - 200px);
overflow-y: auto;
}
}
/* Utilities */
.text-center {
text-align: center;
}
.text-muted {
color: var(--text-muted);
}
.mb-4 {
margin-bottom: 2rem;
}
.mt-4 {
margin-top: 2rem;
}
.hidden {
display: none;
}
/* Loading and States */
.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 3rem;
color: var(--text-muted);
}
.spinner {
width: 24px;
height: 24px;
border: 3px solid var(--border-color);
border-top: 3px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 0.75rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
:root {
--background-color: #0f0f0f;
--surface-color: #1a1a1a;
--text-primary: #f5f5f5;
--text-secondary: #a3a3a3;
--text-muted: #737373;
--border-color: #2a2a2a;
--border-light: #262626;
}
}