Skip to content

Commit 32d03d5

Browse files
Finishing touches on mobile dark mode book view
1 parent 732191b commit 32d03d5

2 files changed

Lines changed: 24 additions & 10 deletions

File tree

cps/static/css/caliBlur_override.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,15 @@ div#Downloads_list {
136136
.tags {
137137
position: absolute;
138138
left: 220px;
139-
top: 200px;
139+
top: 190px;
140140
display: flex;
141141
flex-direction: column;
142142
flex-wrap: wrap;
143-
max-height: 50px;
143+
max-height: 40px;
144144
overflow: auto;
145145
}
146146
}
147147

148-
@media only screen and (max-width: 545px) {
149-
.book-meta > .bookinfo > .hr {
150-
margin: 30px;
151-
}
152-
}
153-
154148
@media only screen and (max-width: 470px) {
155149
.book-meta > h2 {
156150
position: absolute;
@@ -172,6 +166,9 @@ div#Downloads_list {
172166
top: 465px;
173167
left: -220px !important;
174168
margin-top: 0 !important;
169+
max-width: 115px;
170+
text-overflow: ellipsis !important;
171+
white-space: nowrap !important;
175172
}
176173
.publishing-date {
177174
position: absolute;
@@ -202,15 +199,32 @@ div#Downloads_list {
202199
flex-wrap: nowrap;
203200
flex-direction: column;
204201
overflow-y: auto;
202+
max-height: 26px;
203+
max-width: 130px;
204+
overflow-x: clip;
205+
flex-wrap: nowrap;
205206
}
206207
.tags a.btn.btn-xs.btn-info {
207-
position: fixed;
208+
position: sticky;
209+
}
210+
.bookinfo p#book_of {
211+
position: absolute;
212+
top: 535px;
213+
padding: 0;
214+
margin: 0;
215+
max-width: 400px;
216+
white-space: nowrap;
217+
text-overflow: ellipsis;
218+
overflow: hidden;
219+
max-height: 20px;
220+
height: 100%;
208221
}
209222
}
210223

211224
@media only screen and (max-width: 445px) {
212225
.btn-group {
213226
height: 30px;
227+
min-width: max-content;
214228
}
215229
}
216230

cps/templates/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ <h2 id="title">{{ entry.title }}</h2>
155155
</div>
156156
{% endif %}
157157
{% if entry.series|length > 0 %}
158-
<p>{{ _("Book %(index)s of %(range)s", index=entry.series_index|formatfloat(2), range=(url_for('web.books_list', data='series', sort_param='stored', book_id=entry.series[0].id)|escapedlink(entry.series[0].name))|safe) }}</p>
158+
<p id="book_of">{{ _("Book %(index)s of %(range)s", index=entry.series_index|formatfloat(2), range=(url_for('web.books_list', data='series', sort_param='stored', book_id=entry.series[0].id)|escapedlink(entry.series[0].name))|safe) }}</p>
159159

160160
{% endif %}
161161

0 commit comments

Comments
 (0)