Front-end: On book page, click on cover to show/add image

Closes #1009
This commit is contained in:
Joachim
2021-12-29 16:40:19 +01:00
parent 0c0bfc046d
commit f12ba8609f
5 changed files with 65 additions and 12 deletions

View File

@ -30,6 +30,9 @@ button {
/* Corrects inability to style clickable `input` types in iOS */
-webkit-appearance: none;
/* Generalizes pointer cursor */
cursor: pointer;
}
button::-moz-focus-inner {
@ -64,6 +67,14 @@ button::-moz-focus-inner {
overflow-x: auto;
}
.modal-card {
pointer-events: none;
}
.modal-card > * {
pointer-events: all;
}
/* stylelint-disable no-descending-specificity */
.modal-card:focus {
outline-style: auto;
@ -148,6 +159,16 @@ button::-moz-focus-inner {
display: inline !important;
}
img.is-fit-cover {
object-fit: cover;
object-position: center;
}
img.is-fit-contain {
object-fit: contain;
object-position: center;
}
/** File input styles
******************************************************************************/
@ -429,6 +450,8 @@ details.dropdown .dropdown-menu a:focus-visible {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 1em;
white-space: initial;
text-align: center;
}