mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Comprehensive mobile experience improvements
- Disable sticky breadcrumb on mobile, hide action buttons - Add mobile styles to chapter page (nav, touch targets) - Add mobile styles to verse page (share buttons, tooltips) - Add mobile styles to books page (responsive grid) - Add mobile styles to book page (chapter links, nav hints) - Add mobile styles to search page (full-width, iOS zoom fix) - Add mobile styles to topics and reading plans pages - Improve touch targets across all pages (44px min) - Fix max-width containers for mobile (100%) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1120,14 +1120,33 @@ div {
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
position: static !important;
|
||||
font-size: 0.9rem;
|
||||
margin: 0.5rem 0 1rem 0;
|
||||
padding-bottom: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem 0.5rem;
|
||||
gap: 0.25rem 0.4rem;
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.breadcrumb.stuck {
|
||||
box-shadow: none !important;
|
||||
padding-top: 0;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.breadcrumb-actions {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
font-size: 1rem;
|
||||
font-size: 0.9rem;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.breadcrumb-separator {
|
||||
margin: 0 0.3rem;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
|
||||
@@ -1221,27 +1221,45 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Optimize breadcrumbs with strong contrast */
|
||||
/* Optimize breadcrumbs for mobile - disable sticky, hide actions */
|
||||
.breadcrumb {
|
||||
font-size: 0.95rem;
|
||||
position: static;
|
||||
font-size: 0.9rem;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 3px solid #999;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding-bottom: 0.75rem;
|
||||
margin: 1rem 0 1.5rem 0;
|
||||
background: transparent;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.breadcrumb.stuck {
|
||||
box-shadow: none;
|
||||
padding-top: 0;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
/* Hide breadcrumb action buttons on mobile */
|
||||
.breadcrumb-actions {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .breadcrumb {
|
||||
border-bottom-color: #666;
|
||||
border-bottom-color: var(--border-color);
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
font-weight: 600;
|
||||
border-bottom: 2px solid #999;
|
||||
color: #000;
|
||||
font-weight: 500;
|
||||
border-bottom: none;
|
||||
color: var(--link-color);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .breadcrumb a {
|
||||
border-bottom-color: #666;
|
||||
color: #e0e0e0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.breadcrumb-separator {
|
||||
margin: 0 0.4rem;
|
||||
}
|
||||
|
||||
/* Improve button visibility on mobile with strong contrast */
|
||||
|
||||
@@ -148,6 +148,37 @@ section ul li strong {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.chapters-section h2 + p a {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.book-meta {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
section blockquote {
|
||||
margin: 0.75rem 0 1rem;
|
||||
padding-left: 0.75rem;
|
||||
}
|
||||
|
||||
.print-btn {
|
||||
padding: 0.75rem 1rem;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.nav-hint {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.chapters-section h2 + p a {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
@@ -221,6 +221,74 @@
|
||||
background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
|
||||
border-left: 3px solid rgba(220, 38, 38, 0.4);
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.book-grid {
|
||||
max-width: 100%;
|
||||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.book-card {
|
||||
padding: 0.9rem;
|
||||
min-height: 70px;
|
||||
}
|
||||
|
||||
.book-name {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.book-info {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.testament-header {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.intro-text {
|
||||
max-width: 100%;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.legend {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.legend-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.legend-item {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.legend-color {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.book-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.book-card {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.book-name {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.legend-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -282,6 +282,79 @@ p[id^="verse-"].selected {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.chapter-nav {
|
||||
max-width: 100%;
|
||||
padding: 1rem;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.chapter-nav-controls {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.chapter-nav-btn {
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 1rem;
|
||||
min-height: 44px;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chapter-select {
|
||||
padding: 0.75rem;
|
||||
font-size: 1rem;
|
||||
min-height: 44px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.nav-help {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chapter-actions {
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
padding: 0.6rem 0.8rem;
|
||||
font-size: 0.85rem;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.verse-number-link {
|
||||
font-size: 0.85rem;
|
||||
padding: 0.25rem;
|
||||
margin-right: 0.15rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.chapter-nav-controls {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.chapter-nav-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.chapter-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.chapter-actions {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -149,6 +149,46 @@
|
||||
line-height: 1.9;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.plan-grid {
|
||||
max-width: 100%;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.plan-card {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.plan-name {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.plan-description {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.intro-text {
|
||||
max-width: 100%;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.your-plans-section {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.your-plan-item {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.your-plan-next {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -156,6 +156,42 @@
|
||||
.search-tips ul {
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.search-input-wrapper {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
font-size: 16px; /* Prevents zoom on iOS */
|
||||
padding: 0.9rem;
|
||||
}
|
||||
|
||||
.search-button {
|
||||
width: 100%;
|
||||
padding: 0.9rem 1.5rem;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.search-result {
|
||||
margin: 1.5rem 0;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.search-tips {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.search-dropdown {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.search-result-item {
|
||||
padding: 0.75rem;
|
||||
min-height: 44px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -60,6 +60,32 @@
|
||||
line-height: 1.9;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.topic-grid {
|
||||
max-width: 100%;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.topic-card {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.topic-name {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.topic-description {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.intro-text {
|
||||
max-width: 100%;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -644,6 +644,33 @@
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.verse-text {
|
||||
font-size: 1.4rem;
|
||||
line-height: 2rem;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.share-container {
|
||||
max-width: 100%;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
.share-buttons {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.share-btn {
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
min-height: 44px;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.cross-ref-tooltip {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.interlinear-flow {
|
||||
line-height: 4.5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user