Redesign UI with modern dark theme and improved styling
- Unified color scheme using CSS variables across all pages - Fixed spacing issues in verse display (removed <br> joins for rich view) - Updated all HTML pages with proper HTML5 structure - Added responsive design with mobile breakpoints - Created shared stylesheet (styles/page.css) for form pages - Fixed unclosed div tag in scripture_response - Improved typography with serif fonts for scripture text - Added verse container cards with hover effects - Inline dark background to prevent white flash on navigation All endpoints remain backward compatible with existing functionality.
This commit is contained in:
+259
-54
@@ -1,70 +1,275 @@
|
||||
<style>
|
||||
/* Dark Theme */
|
||||
/* Modern KJV API Styling - Header & Layout */
|
||||
|
||||
:root {
|
||||
/* Color Palette */
|
||||
--color-bg-primary: #1a1a1a;
|
||||
--color-bg-secondary: #252525;
|
||||
--color-bg-tertiary: #2f2f2f;
|
||||
--color-text-primary: #e8e8e8;
|
||||
--color-text-secondary: #b8b8b8;
|
||||
--color-text-muted: #888888;
|
||||
--color-accent-primary: #6b9bd1;
|
||||
--color-accent-hover: #85aede;
|
||||
--color-link: #6b9bd1;
|
||||
--color-link-hover: #85aede;
|
||||
--color-border: #3a3a3a;
|
||||
--color-shadow: rgba(0, 0, 0, 0.3);
|
||||
|
||||
/* Typography */
|
||||
--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--font-scripture: Georgia, "Crimson Text", "Times New Roman", serif;
|
||||
--font-mono: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
|
||||
|
||||
/* Spacing */
|
||||
--space-xs: 0.25rem;
|
||||
--space-sm: 0.5rem;
|
||||
--space-md: 1rem;
|
||||
--space-lg: 1.5rem;
|
||||
--space-xl: 2rem;
|
||||
--space-2xl: 3rem;
|
||||
|
||||
/* Layout */
|
||||
--content-max-width: 820px;
|
||||
--header-height: 160px;
|
||||
--border-radius: 8px;
|
||||
--border-radius-sm: 4px;
|
||||
|
||||
/* Transitions */
|
||||
--transition-fast: 150ms ease;
|
||||
--transition-normal: 250ms ease;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #222;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Style the header */
|
||||
.responses {
|
||||
font-family: sans-serif;
|
||||
font-size: 14.5pt;
|
||||
width: 768px;
|
||||
padding: 1px;
|
||||
margin-top: 100px;
|
||||
color: #fff; /* Text color */
|
||||
width: auto;
|
||||
max-width: 100%; /* Ensure it doesn't exceed the container width */
|
||||
white-space: pre-wrap; /* Allow word wrapping */
|
||||
}
|
||||
|
||||
a {
|
||||
color: #007bff; /* Link color */
|
||||
background-color: var(--color-bg-primary);
|
||||
color: var(--color-text-primary);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: var(--font-ui);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Header Styling */
|
||||
.header {
|
||||
font-family: sans-serif;
|
||||
padding: 10px 16px;
|
||||
background: #333; /* Dark background */
|
||||
color: #fff; /* Text color */
|
||||
position: fixed;
|
||||
top: 5px;
|
||||
width: 98vw;
|
||||
max-width: 100%; /* Ensure it doesn't exceed the container width */
|
||||
min-height: 50px;
|
||||
font-family: var(--font-ui);
|
||||
padding: var(--space-lg);
|
||||
background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg-tertiary));
|
||||
color: var(--color-text-primary);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 4px 12px var(--color-shadow);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.header a {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
padding: var(--space-xs) var(--space-sm);
|
||||
transition: color var(--transition-fast);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.header a:hover {
|
||||
color: var(--color-link-hover);
|
||||
}
|
||||
|
||||
/* Response Container */
|
||||
.responses {
|
||||
font-family: var(--font-scripture);
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.8;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
padding: var(--space-md);
|
||||
margin-top: var(--header-height);
|
||||
color: var(--color-text-primary);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* Results Count */
|
||||
.results-count {
|
||||
font-family: var(--font-ui);
|
||||
font-size: 0.9rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--space-md);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
transition: color var(--transition-fast);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--color-link-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Form Inputs */
|
||||
input[type=text] {
|
||||
width: 75%;
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
box-sizing: border-box;
|
||||
text-align: left;
|
||||
font-size: 14.5pt;
|
||||
background-color: #333; /* Dark background */
|
||||
color: #fff; /* Text color */
|
||||
border: 1px solid #555; /* Border color */
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
margin: var(--space-sm) 0;
|
||||
font-size: 1rem;
|
||||
font-family: var(--font-ui);
|
||||
background-color: var(--color-bg-tertiary);
|
||||
color: var(--color-text-primary);
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: var(--border-radius-sm);
|
||||
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
input[type=button], input[type=submit], input[type=reset] {
|
||||
font-family: sans-serif;
|
||||
background-color: #555; /* Dark button background */
|
||||
border: none;
|
||||
color: #fff; /* Button text color */
|
||||
padding: 16px 32px;
|
||||
text-decoration: none;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
input[type=text]:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-accent-primary);
|
||||
box-shadow: 0 0 0 3px rgba(107, 155, 209, 0.1);
|
||||
}
|
||||
|
||||
input[type=text]::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
input[type=button],
|
||||
input[type=submit],
|
||||
input[type=reset],
|
||||
button {
|
||||
font-family: var(--font-ui);
|
||||
font-weight: 600;
|
||||
background-color: var(--color-accent-primary);
|
||||
border: none;
|
||||
color: var(--color-bg-primary);
|
||||
padding: var(--space-sm) var(--space-lg);
|
||||
text-decoration: none;
|
||||
margin: var(--space-xs) var(--space-sm);
|
||||
cursor: pointer;
|
||||
border-radius: var(--border-radius-sm);
|
||||
transition: background-color var(--transition-fast), transform var(--transition-fast);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
input[type=button]:hover,
|
||||
input[type=submit]:hover,
|
||||
input[type=reset]:hover,
|
||||
button:hover {
|
||||
background-color: var(--color-accent-hover);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
input[type=button]:active,
|
||||
input[type=submit]:active,
|
||||
input[type=reset]:active,
|
||||
button:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Definition Styling */
|
||||
.definition {
|
||||
padding: 8px;
|
||||
font-family: sans-serif;
|
||||
font-size: 14.5pt;
|
||||
width: 768px;
|
||||
padding: 1px;
|
||||
color: #fff; /* Text color */
|
||||
background-color: #222; /* Dark background */
|
||||
padding: var(--space-lg);
|
||||
font-family: var(--font-scripture);
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.7;
|
||||
max-width: var(--content-max-width);
|
||||
margin: var(--space-md) auto;
|
||||
color: var(--color-text-secondary);
|
||||
background-color: var(--color-bg-secondary);
|
||||
border-left: 4px solid var(--color-accent-primary);
|
||||
border-radius: var(--border-radius-sm);
|
||||
}
|
||||
|
||||
/* Verse Container Styling */
|
||||
.verse-container {
|
||||
background-color: var(--color-bg-secondary);
|
||||
border-left: 3px solid var(--color-accent-primary);
|
||||
border-radius: var(--border-radius-sm);
|
||||
padding: 0.75rem 1.25rem;
|
||||
margin: 0.5rem 0;
|
||||
transition: background-color var(--transition-fast), border-color var(--transition-fast);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.verse-container:hover {
|
||||
background-color: var(--color-bg-tertiary);
|
||||
border-left-color: var(--color-accent-hover);
|
||||
}
|
||||
|
||||
.verse-reference {
|
||||
font-family: var(--font-ui);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.2;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.verse-reference a {
|
||||
color: var(--color-accent-primary);
|
||||
text-decoration: none;
|
||||
transition: color var(--transition-fast);
|
||||
}
|
||||
|
||||
.verse-reference a:hover {
|
||||
color: var(--color-accent-hover);
|
||||
}
|
||||
|
||||
.verse-text {
|
||||
font-family: var(--font-scripture);
|
||||
font-size: 1.15rem;
|
||||
line-height: 1.8;
|
||||
color: var(--color-text-primary);
|
||||
text-indent: 0;
|
||||
margin: 0.35rem 0 0 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--header-height: 180px;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.responses {
|
||||
font-size: 1rem;
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
input[type=text] {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.header a {
|
||||
font-size: 0.9rem;
|
||||
padding: var(--space-xs);
|
||||
}
|
||||
|
||||
input[type=button],
|
||||
input[type=submit],
|
||||
input[type=reset],
|
||||
button {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user