Skip to content

Commit 16f8264

Browse files
authored
Merge pull request #7 from wardeiling/dev
fix and the reduced text sizes make more comprehensive
2 parents 2b3e98e + 53f219b commit 16f8264

10 files changed

Lines changed: 37 additions & 38 deletions

File tree

app/static/css/input.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,17 @@
6767
}
6868
}
6969

70-
/* ── Mobile-first font scaling ─────────────────────────────────────────────
71-
Tailwind uses rem throughout, so reducing the root font-size proportionally
72-
shrinks all text, padding, and spacing on small screens without touching
73-
individual templates.
74-
16px (default) on sm+ screens, 14px on phones. ─────────────────────────── */
70+
/* Responsive root font-size: shrinks all rem-based Tailwind utilities on
71+
smaller viewports so the UI feels proportional on mobile.
72+
Mobile (<640px): 14px | sm (640-767px): 15px | md+ (≥768px): 16px */
7573
html {
7674
font-size: 14px;
7775
}
7876
@media (min-width: 640px) {
79-
html {
80-
font-size: 16px;
81-
}
77+
html { font-size: 15px; }
78+
}
79+
@media (min-width: 768px) {
80+
html { font-size: 16px; }
8281
}
8382

8483
body {

app/static/css/tailwind.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/templates/_book_header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% set active_highlights = book.highlights | selectattr("is_discarded", "equalto", false) | list if book.highlights else [] %}
22
{% set discarded_highlights = book.highlights | selectattr("is_discarded", "equalto", true) | list if book.highlights else [] %}
33
<div id="book-header" class="text-center mb-8">
4-
<h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">
4+
<h1 class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">
55
{{ book.title }}
66
</h1>
77

app/templates/_review_card.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class="space-y-5">
33
<!-- Progress Indicator -->
44
<div class="text-center mb-4">
5-
<h1 class="text-xl sm:text-2xl font-bold text-gray-900 dark:text-white mb-2 title-font">Daily Review</h1>
6-
<p class="text-base sm:text-lg text-gray-600 dark:text-gray-400">
5+
<h1 class="text-2xl font-bold text-gray-900 dark:text-white mb-2 title-font">Daily Review</h1>
6+
<p class="text-lg text-gray-600 dark:text-gray-400">
77
<span class="font-semibold text-primary-600 dark:text-primary-400">{{ current }}</span> of <span class="font-semibold">{{ total }}</span>
88
</p>
99
</div>
@@ -28,7 +28,7 @@ <h2 class="text-base font-semibold text-gray-900 dark:text-white">{{ highlight.b
2828
{% endif %}
2929

3030
<!-- Highlight Text -->
31-
<div class="font-serif leading-relaxed text-gray-900 dark:text-gray-100 mb-6" style="font-size: clamp(1.1rem, 4vw, 1.375rem)">
31+
<div class="font-serif leading-relaxed text-gray-900 dark:text-gray-100 mb-6 text-lg sm:text-[1.375rem]">
3232
{{ highlight.text }}
3333
</div>
3434

@@ -69,7 +69,7 @@ <h2 class="text-base font-semibold text-gray-900 dark:text-white">{{ highlight.b
6969
</div>
7070

7171
<!-- Main Action Buttons (Outside Card) -->
72-
<div class="flex items-center justify-center gap-12 mt-6">
72+
<div class="flex items-center justify-center gap-6 sm:gap-12 mt-6">
7373
<!-- Discard Button -->
7474
<button
7575
class="flex flex-col items-center group appearance-none bg-transparent border-0 p-0"
@@ -80,7 +80,7 @@ <h2 class="text-base font-semibold text-gray-900 dark:text-white">{{ highlight.b
8080
<div class="w-14 h-14 sm:w-20 sm:h-20 rounded-full bg-red-100 dark:bg-red-900/20 flex items-center justify-center group-hover:bg-red-200 dark:group-hover:bg-red-900/30 group-hover:scale-110 transition-all border-2 border-red-300 dark:border-red-700 group-hover:border-red-400 dark:group-hover:border-red-600">
8181
<i data-lucide="x" class="w-7 h-7 sm:w-10 sm:h-10 text-red-600 dark:text-red-500"></i>
8282
</div>
83-
<span class="mt-2 text-xs sm:text-sm font-semibold text-gray-900 dark:text-white">Discard</span>
83+
<span class="mt-2 text-sm font-semibold text-gray-900 dark:text-white">Discard</span>
8484
</button>
8585

8686
<!-- Review Frequency Button -->
@@ -93,7 +93,7 @@ <h2 class="text-base font-semibold text-gray-900 dark:text-white">{{ highlight.b
9393
<div class="w-12 h-12 sm:w-16 sm:h-16 rounded-full bg-blue-100 dark:bg-blue-900/20 flex items-center justify-center group-hover:bg-blue-200 dark:group-hover:bg-blue-900/30 group-hover:scale-110 transition-all border-2 border-blue-300 dark:border-blue-700 group-hover:border-blue-400 dark:group-hover:border-blue-600">
9494
<i data-lucide="sliders" class="w-6 h-6 sm:w-8 sm:h-8 text-blue-600 dark:text-blue-500"></i>
9595
</div>
96-
<span class="mt-2 text-xs sm:text-sm font-semibold text-gray-900 dark:text-white">Frequency</span>
96+
<span class="mt-2 text-sm font-semibold text-gray-900 dark:text-white">Frequency</span>
9797
</button>
9898
<div id="review-weight-controls" class="mt-3"></div>
9999
</div>
@@ -108,7 +108,7 @@ <h2 class="text-base font-semibold text-gray-900 dark:text-white">{{ highlight.b
108108
<div class="w-14 h-14 sm:w-20 sm:h-20 rounded-full bg-green-100 dark:bg-green-900/20 flex items-center justify-center group-hover:bg-green-200 dark:group-hover:bg-green-900/30 group-hover:scale-110 transition-all border-2 border-green-300 dark:border-green-700 group-hover:border-green-400 dark:group-hover:border-green-600">
109109
<i data-lucide="check" class="w-7 h-7 sm:w-10 sm:h-10 text-green-600 dark:text-green-500"></i>
110110
</div>
111-
<span class="mt-2 text-xs sm:text-sm font-semibold text-gray-900 dark:text-white">Done</span>
111+
<span class="mt-2 text-sm font-semibold text-gray-900 dark:text-white">Done</span>
112112
</button>
113113
</div>
114114
</div>

app/templates/_review_edit.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class="space-y-8">
33
<!-- Progress Indicator -->
44
<div class="text-center mb-8">
5-
<h1 class="text-xl sm:text-2xl font-bold text-gray-900 dark:text-white mb-2 title-font">Daily Review</h1>
6-
<p class="text-base sm:text-lg text-gray-600 dark:text-gray-400">
5+
<h1 class="text-2xl font-bold text-gray-900 dark:text-white mb-2 title-font">Daily Review</h1>
6+
<p class="text-lg text-gray-600 dark:text-gray-400">
77
<span class="font-semibold text-primary-600 dark:text-primary-400">{{ current }}</span> of <span class="font-semibold">{{ total }}</span>
88
</p>
99
</div>
@@ -62,7 +62,7 @@ <h2 class="text-base font-semibold text-gray-900 dark:text-white">{{ highlight.b
6262
<textarea
6363
name="text"
6464
rows="1"
65-
class="w-full px-4 py-3 font-serif leading-relaxed border-2 border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-amber-500 focus:border-amber-500 transition-colors resize-none overflow-hidden" style="font-size: clamp(1.1rem, 4vw, 1.375rem)"
65+
class="w-full px-4 py-3 font-serif leading-relaxed border-2 border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-amber-500 focus:border-amber-500 transition-colors resize-none overflow-hidden" style="font-size: 1.375rem"
6666
oninput="this.style.height = 'auto'; this.style.height = this.scrollHeight + 'px'"
6767
required>{{ highlight.text }}</textarea>
6868
</div>

app/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
<!-- Page Title -->
7272
<div class="mb-8">
73-
<h2 class="text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white title-font">
73+
<h2 class="text-3xl sm:text-4xl md:text-5xl font-bold text-gray-900 dark:text-white title-font">
7474
{% block heading %}FreeWise{% endblock %}
7575
</h2>
7676
</div>

app/templates/book_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
<!-- Book Header (Centered, No Background) -->
7676
<div id="book-header" class="text-center mb-8">
77-
<h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">
77+
<h1 class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">
7878
{{ book.title }}
7979
</h1>
8080

app/templates/dashboard.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<!-- Daily Review Call-to-Action -->
99
{% if total_highlights == 0 %}
1010
<div class="mb-8">
11-
<div class="bg-gradient-to-br from-yellow-400 to-amber-800 text-amber-50 rounded-2xl p-10 text-center shadow-xl border border-amber-700/30">
11+
<div class="bg-gradient-to-br from-yellow-400 to-amber-800 text-amber-50 rounded-2xl p-6 sm:p-10 text-center shadow-xl border border-amber-700/30">
1212
<div class="flex justify-center mb-4">
1313
<i data-lucide="book-open" class="w-16 h-16 text-amber-200"></i>
1414
</div>
15-
<h2 class="text-3xl font-semibold mb-3 text-amber-50">
15+
<h2 class="text-2xl sm:text-3xl font-semibold mb-3 text-amber-50">
1616
No Highlights Available
1717
</h2>
1818
<p class="text-lg mb-6 text-amber-100/90">
@@ -26,11 +26,11 @@ <h2 class="text-3xl font-semibold mb-3 text-amber-50">
2626
</div>
2727
{% elif active_highlights < daily_review_count and not reviewed_today %}
2828
<div class="mb-8">
29-
<div class="bg-gradient-to-br from-yellow-400 to-amber-800 text-amber-50 rounded-2xl p-10 text-center shadow-xl border border-amber-700/30">
29+
<div class="bg-gradient-to-br from-yellow-400 to-amber-800 text-amber-50 rounded-2xl p-6 sm:p-10 text-center shadow-xl border border-amber-700/30">
3030
<div class="flex justify-center mb-4">
3131
<i data-lucide="zap" class="w-16 h-16 text-amber-200"></i>
3232
</div>
33-
<h2 class="text-3xl font-semibold mb-3 text-amber-50">
33+
<h2 class="text-2xl sm:text-3xl font-semibold mb-3 text-amber-50">
3434
Only {{ active_highlights }} Highlight{{ 's' if active_highlights != 1 else '' }} Available
3535
</h2>
3636
<p class="text-lg mb-6 text-amber-100/90">
@@ -51,11 +51,11 @@ <h2 class="text-3xl font-semibold mb-3 text-amber-50">
5151
{% elif not reviewed_today %}
5252
<div class="mb-8">
5353
<a href="/highlights/ui/review" class="block no-underline">
54-
<div class="bg-gradient-to-br from-yellow-400 to-amber-800 text-amber-50 rounded-2xl p-10 text-center shadow-xl border border-amber-700/30 hover:-translate-y-1 hover:shadow-2xl transition-all cursor-pointer">
54+
<div class="bg-gradient-to-br from-yellow-400 to-amber-800 text-amber-50 rounded-2xl p-6 sm:p-10 text-center shadow-xl border border-amber-700/30 hover:-translate-y-1 hover:shadow-2xl transition-all cursor-pointer">
5555
<div class="flex justify-center mb-4">
5656
<i data-lucide="book-open" class="w-16 h-16 text-amber-200"></i>
5757
</div>
58-
<h2 class="text-3xl font-semibold mb-3 text-amber-50">
58+
<h2 class="text-2xl sm:text-3xl font-semibold mb-3 text-amber-50">
5959
Start Your Daily Review
6060
</h2>
6161
<p class="text-xl text-amber-100/90">
@@ -65,11 +65,11 @@ <h2 class="text-3xl font-semibold mb-3 text-amber-50">
6565
</a>
6666
</div>
6767
{% else %}
68-
<div class="mb-8 bg-gradient-to-br from-emerald-50 to-teal-50 dark:from-emerald-950/30 dark:to-teal-950/30 border-2 border-emerald-700 dark:border-emerald-800 rounded-2xl p-8 text-center shadow-lg">
68+
<div class="mb-8 bg-gradient-to-br from-emerald-50 to-teal-50 dark:from-emerald-950/30 dark:to-teal-950/30 border-2 border-emerald-700 dark:border-emerald-800 rounded-2xl p-5 sm:p-8 text-center shadow-lg">
6969
<div class="flex justify-center mb-4">
7070
<i data-lucide="check-circle" class="w-16 h-16 text-emerald-700 dark:text-emerald-600"></i>
7171
</div>
72-
<h2 class="text-3xl font-bold text-emerald-900 dark:text-emerald-100 mb-2">
72+
<h2 class="text-2xl sm:text-3xl font-bold text-emerald-900 dark:text-emerald-100 mb-2">
7373
Great Job!
7474
</h2>
7575
<p class="text-emerald-800 dark:text-emerald-300 text-lg mb-6">
@@ -114,7 +114,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-4 flex items-cente
114114
<div class="flex justify-center mb-4">
115115
<i data-lucide="zap" class="w-12 h-12 text-emerald-600 dark:text-emerald-400"></i>
116116
</div>
117-
<div class="text-5xl font-bold text-emerald-700 dark:text-emerald-400 mb-2">
117+
<div class="text-4xl sm:text-5xl font-bold text-emerald-700 dark:text-emerald-400 mb-2">
118118
{{ current_streak }}
119119
</div>
120120
<div class="text-emerald-800 dark:text-emerald-300 text-lg font-semibold">
@@ -130,7 +130,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-4 flex items-cente
130130
<div class="flex justify-center mb-4">
131131
<i data-lucide="trophy" class="w-12 h-12 text-amber-600 dark:text-amber-400"></i>
132132
</div>
133-
<div class="text-5xl font-bold text-amber-700 dark:text-amber-400 mb-2">
133+
<div class="text-4xl sm:text-5xl font-bold text-amber-700 dark:text-amber-400 mb-2">
134134
{{ longest_streak }}
135135
</div>
136136
<div class="text-amber-800 dark:text-amber-300 text-lg font-semibold">
@@ -179,7 +179,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-4 flex items-cente
179179
<div class="flex justify-center mb-3">
180180
<i data-lucide="book" class="w-12 h-12 text-amber-800 dark:text-amber-600"></i>
181181
</div>
182-
<div class="text-4xl font-bold text-gray-900 dark:text-white mb-2">
182+
<div class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-2">
183183
{{ total_books }}
184184
</div>
185185
<div class="text-gray-600 dark:text-gray-400 text-sm font-medium">
@@ -194,7 +194,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-4 flex items-cente
194194
<div class="flex justify-center mb-3">
195195
<i data-lucide="lightbulb" class="w-12 h-12 text-amber-500"></i>
196196
</div>
197-
<div class="text-4xl font-bold text-gray-900 dark:text-white mb-2">
197+
<div class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-2">
198198
{{ total_highlights }}
199199
</div>
200200
<div class="text-gray-600 dark:text-gray-400 text-sm font-medium">
@@ -209,7 +209,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-4 flex items-cente
209209
<div class="flex justify-center mb-3">
210210
<i data-lucide="star" class="w-12 h-12 text-yellow-500 dark:text-yellow-400"></i>
211211
</div>
212-
<div class="text-4xl font-bold text-gray-900 dark:text-white mb-2">
212+
<div class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-2">
213213
{{ total_favorited }}
214214
</div>
215215
<div class="text-gray-600 dark:text-gray-400 text-sm font-medium">
@@ -224,7 +224,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-4 flex items-cente
224224
<div class="flex justify-center mb-3">
225225
<i data-lucide="trash-2" class="w-12 h-12 text-rose-500 dark:text-rose-400"></i>
226226
</div>
227-
<div class="text-4xl font-bold text-gray-900 dark:text-white mb-2">
227+
<div class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-2">
228228
{{ total_discarded }}
229229
</div>
230230
<div class="text-gray-600 dark:text-gray-400 text-sm font-medium">

app/templates/discarded.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="max-w-2xl mx-auto px-4 py-20">
3232
<div class="text-center mb-8">
33-
<h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">Discarded Highlights</h1>
33+
<h1 class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">Discarded Highlights</h1>
3434
<p class="text-lg text-gray-600 dark:text-gray-400 mb-2">Highlights you've marked as discarded</p>
3535
<p class="text-sm text-gray-500 dark:text-gray-400">
3636
<span class="font-semibold">{{ highlights|length }}</span> discarded highlight{{ 's' if highlights|length != 1 else '' }}

app/templates/favorites.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="max-w-2xl mx-auto px-4 py-20">
3232
<div class="text-center mb-8">
33-
<h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">Favorite Highlights</h1>
33+
<h1 class="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-3 title-font">Favorite Highlights</h1>
3434
<p class="text-lg text-gray-600 dark:text-gray-400 mb-2">Your personal collection of starred highlights</p>
3535
<p class="text-sm text-gray-500 dark:text-gray-400">
3636
<span class="font-semibold">{{ highlights|length }}</span> favorite{{ 's' if highlights|length != 1 else '' }}

0 commit comments

Comments
 (0)