Adds review box to main page layout

This commit is contained in:
Mouse Reeve
2020-09-29 17:43:30 -07:00
parent b762d2c226
commit 50f2f4788e
6 changed files with 89 additions and 88 deletions

View File

@ -81,15 +81,27 @@ input.toggle-control:checked ~ .toggle-content {
.cover-container {
height: 250px;
}
.cover-container.is-medium {
height: 150px;
}
.cover-container.is-medium .no-cover div {
font-size: 0.9em;
padding: 0.3em;
}
.cover-container.is-small {
height: 100px;
}
.cover-container.is-small .no-cover div {
font-size: 0.7em;
padding: 0.1em;
}
.book-cover {
height: 100%;
object-fit: scale-down;
}
.no-cover {
position: relative;
white-space: normal;
}
.no-cover div {
position: absolute;
@ -99,10 +111,6 @@ input.toggle-control:checked ~ .toggle-content {
left: 0;
text-align: center;
}
.is-small .no-cover div {
font-size: 0.7em;
padding: 0.1em;
}
/* --- AVATAR --- */

View File

@ -32,7 +32,7 @@ function rate_stars(e) {
}
function tabChange(e) {
var target = e.target.parentElement.parentElement;
var target = e.target.closest('li')
var identifier = target.getAttribute('data-id');
var tabs = target.parentElement.children;