Skip to content

Commit fd284ac

Browse files
Made major improvements to the mobile book view in dark mode
1 parent 45b8478 commit fd284ac

2 files changed

Lines changed: 124 additions & 43 deletions

File tree

cps/static/css/caliBlur.css

Lines changed: 38 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cps/static/css/caliBlur_override.css

Lines changed: 86 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,93 @@ div#Downloads_list {
9898
}
9999
}
100100

101-
/* Fixes add to shelf elements positioning */
102-
/* Temporarily disabled as it screws up the book pages */
103-
/* @media (max-width: 915px) {
104-
div#shelf-actions {
105-
float: left !important;
106-
padding: 2rem;
101+
/* Fixing mobile book view */
102+
@media only screen and (max-width: 767px) {
103+
.identifiers {
104+
margin-left: 220px !important;
105+
max-height: 26px;
106+
overflow: auto;
107+
}
108+
.publishers {
109+
margin-left: 220px !important;
110+
}
111+
.publishing-date {
112+
margin-left: 220px !important;
113+
display: flex;
114+
flex-wrap: wrap;
115+
}
116+
.more-stuff {
117+
margin-left: 220px !important;
118+
}
119+
.languages {
120+
margin-left: 220px !important;
121+
display: flex;
122+
flex-wrap: wrap;
123+
}
124+
.book-meta > .bookinfo > .comments, .book-meta > .description {
125+
font-size: 13px;
126+
height: 350px !important;
127+
margin-top: 40px;
128+
}
129+
#bookDetailsModal > .modal-dialog.modal-lg > .modal-content > .modal-body > div > div > div > div.col-sm-3.col-lg-3.col-xs-5 > div.cover, body > div.container-fluid > div > div.col-sm-10 > div > div > div.col-sm-3.col-lg-3.col-xs-5 > div.cover {
130+
width: 100%;
131+
max-width: 200px;
107132
}
108133
}
109-
@media (max-width: 768px) {
110-
div#shelf-actions {
111-
float: left;
112-
display: inline-flex;
113-
margin-top: 2rem;
134+
135+
@media only screen and (max-width: 545px) {
136+
.book-meta > .bookinfo > .hr {
137+
margin: 30px;
114138
}
115139
}
116-
div#shelf-actions {
117-
float: none;
118-
} */
140+
141+
@media only screen and (max-width: 470px) {
142+
.book-meta > h2 {
143+
position: absolute;
144+
top: 380px;
145+
left: -220px;
146+
}
147+
body.book .author {
148+
position: absolute;
149+
top: 440px;
150+
left: -220px;
151+
width: 100% !important;
152+
max-width: none;
153+
}
154+
.book-meta > .bookinfo > .comments, .book-meta > .description {
155+
margin-top: 40rem;
156+
}
157+
.publishers {
158+
position: absolute;
159+
top: 465px;
160+
left: -220px !important;
161+
margin-top: 0 !important;
162+
}
163+
.publishing-date {
164+
position: absolute;
165+
top: 465px;
166+
left: -80px !important;
167+
margin-top: 0 !important;
168+
}
169+
.more-stuff {
170+
display: none;
171+
}
172+
.languages {
173+
position: absolute;
174+
top: 465px;
175+
left: 36px !important;
176+
margin-top: 0 !important;
177+
}
178+
.identifiers {
179+
display: none;
180+
}
181+
body > div.container-fluid > div > div.col-sm-10 > div > div > div.col-sm-3.col-lg-3.col-xs-5 {
182+
justify-self: center;
183+
}
184+
}
185+
186+
@media only screen and (max-width: 445px) {
187+
.btn-group {
188+
height: 30px;
189+
}
190+
}

0 commit comments

Comments
 (0)