2021-03-05 21:09:56 +00:00
|
|
|
html {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
|
|
|
|
2021-04-15 19:51:14 +00:00
|
|
|
body {
|
|
|
|
min-height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2020-11-24 20:07:00 +00:00
|
|
|
.image {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-10-01 20:53:52 +00:00
|
|
|
.navbar .logo {
|
|
|
|
max-height: 50px;
|
|
|
|
}
|
2021-01-07 03:56:56 +00:00
|
|
|
|
|
|
|
.card {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2021-03-26 17:32:42 +00:00
|
|
|
.scroll-x {
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
2021-03-31 20:56:26 +00:00
|
|
|
.modal-card.is-fullwidth {
|
|
|
|
min-width: 75% !important;
|
|
|
|
}
|
|
|
|
|
2021-04-22 18:57:24 +00:00
|
|
|
/** Utilities not covered by Bulma
|
2021-04-21 20:32:14 +00:00
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
@media only screen and (max-width: 768px) {
|
2021-04-21 20:36:07 +00:00
|
|
|
.is-sr-only-mobile {
|
2021-04-21 20:32:14 +00:00
|
|
|
border: none !important;
|
2021-04-21 20:36:07 +00:00
|
|
|
clip: rect(0, 0, 0, 0) !important;
|
|
|
|
height: 0.01em !important;
|
2021-04-21 20:32:14 +00:00
|
|
|
overflow: hidden !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
position: absolute !important;
|
|
|
|
white-space: nowrap !important;
|
2021-04-21 20:36:07 +00:00
|
|
|
width: 0.01em !important;
|
2021-04-21 20:32:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.m-0-mobile {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button.is-transparent {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2021-04-25 18:05:31 +00:00
|
|
|
.card.is-stretchable {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card.is-stretchable .card-content {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2021-04-07 15:33:28 +00:00
|
|
|
/** Shelving
|
|
|
|
******************************************************************************/
|
2021-03-31 14:15:30 +00:00
|
|
|
|
|
|
|
/** @todo Replace icons with SVG symbols.
|
|
|
|
@see https://www.youtube.com/watch?v=9xXBYcWgCHA */
|
2021-01-30 19:43:40 +00:00
|
|
|
.shelf-option:disabled > *::after {
|
2021-03-31 14:15:30 +00:00
|
|
|
font-family: "icomoon"; /* stylelint-disable font-family-no-missing-generic-family-keyword */
|
2021-01-30 19:43:40 +00:00
|
|
|
content: "\e918";
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2021-04-07 15:33:28 +00:00
|
|
|
/** Toggles
|
|
|
|
******************************************************************************/
|
|
|
|
|
2021-03-31 14:15:30 +00:00
|
|
|
.toggle-button[aria-pressed=true],
|
|
|
|
.toggle-button[aria-pressed=true]:hover {
|
2021-01-17 03:57:20 +00:00
|
|
|
background-color: hsl(171, 100%, 41%);
|
|
|
|
color: white;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
|
|
|
.hide-active[aria-pressed=true],
|
|
|
|
.hide-inactive[aria-pressed=false] {
|
2021-01-17 16:26:28 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-01-17 03:57:20 +00:00
|
|
|
|
2021-04-10 17:50:36 +00:00
|
|
|
.transition-x.is-hidden,
|
|
|
|
.transition-y.is-hidden {
|
2021-03-24 00:52:58 +00:00
|
|
|
display: block !important;
|
|
|
|
visibility: hidden !important;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-10 17:50:36 +00:00
|
|
|
.transition-x,
|
2021-03-24 00:52:58 +00:00
|
|
|
.transition-y {
|
|
|
|
transition-duration: 0.5s;
|
|
|
|
transition-timing-function: ease;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-03-24 00:52:58 +00:00
|
|
|
.transition-x {
|
|
|
|
transition-property: width, margin-left, margin-right, padding-left, padding-right;
|
2021-04-10 17:50:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.transition-y {
|
|
|
|
transition-property: height, margin-top, margin-bottom, padding-top, padding-bottom;
|
2021-03-24 00:52:58 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-03-24 00:52:58 +00:00
|
|
|
@media (prefers-reduced-motion: reduce) {
|
2021-03-31 14:15:30 +00:00
|
|
|
.transition-x,
|
|
|
|
.transition-y {
|
2021-03-24 00:52:58 +00:00
|
|
|
transition-duration: 0.001ms !important;
|
|
|
|
}
|
|
|
|
}
|
2020-09-28 21:47:53 +00:00
|
|
|
|
2021-04-24 11:23:03 +00:00
|
|
|
/** Stars
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
.stars {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2021-04-04 13:08:42 +00:00
|
|
|
/** Stars in a review form
|
2021-03-31 14:15:30 +00:00
|
|
|
*
|
2021-04-04 13:08:42 +00:00
|
|
|
* Specificity makes hovering taking over checked inputs.
|
|
|
|
*
|
|
|
|
* \e9d9: filled star
|
|
|
|
* \e9d7: empty star;
|
|
|
|
******************************************************************************/
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-04 13:08:42 +00:00
|
|
|
.form-rate-stars {
|
|
|
|
width: max-content;
|
2020-09-29 18:00:54 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-04 13:08:42 +00:00
|
|
|
/* All stars are visually filled by default. */
|
|
|
|
.form-rate-stars .icon::before {
|
2020-09-29 18:00:54 +00:00
|
|
|
content: '\e9d9';
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-04 13:08:42 +00:00
|
|
|
/* Icons directly following inputs that follow the checked input are emptied. */
|
|
|
|
.form-rate-stars input:checked ~ input + .icon::before {
|
2020-09-29 18:00:54 +00:00
|
|
|
content: '\e9d7';
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-04 13:08:42 +00:00
|
|
|
/* When a label is hovered, repeat the fill-all-then-empty-following pattern. */
|
|
|
|
.form-rate-stars:hover .icon.icon::before {
|
2021-03-04 18:27:03 +00:00
|
|
|
content: '\e9d9';
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-04 13:08:42 +00:00
|
|
|
.form-rate-stars .icon:hover ~ .icon::before {
|
2020-09-29 18:00:54 +00:00
|
|
|
content: '\e9d7';
|
|
|
|
}
|
|
|
|
|
2021-04-07 15:33:28 +00:00
|
|
|
/** Book covers
|
|
|
|
******************************************************************************/
|
|
|
|
|
2020-09-29 20:11:52 +00:00
|
|
|
.cover-container {
|
|
|
|
height: 250px;
|
2020-09-30 16:00:33 +00:00
|
|
|
width: max-content;
|
2020-12-17 20:57:56 +00:00
|
|
|
max-width: 250px;
|
2020-09-29 20:11:52 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-01-03 19:10:04 +00:00
|
|
|
.cover-container.is-large {
|
2021-01-03 19:24:26 +00:00
|
|
|
height: max-content;
|
2021-01-10 17:50:17 +00:00
|
|
|
max-width: 330px;
|
2021-01-03 19:10:04 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-01-03 19:24:26 +00:00
|
|
|
.cover-container.is-large img {
|
|
|
|
max-height: 500px;
|
2021-01-10 17:50:17 +00:00
|
|
|
height: auto;
|
2021-01-03 19:24:26 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-09-30 00:43:30 +00:00
|
|
|
.cover-container.is-medium {
|
2021-01-03 20:53:51 +00:00
|
|
|
height: 150px;
|
2020-09-30 00:43:30 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-11-05 16:21:00 +00:00
|
|
|
.cover-container.is-small {
|
2021-01-03 20:53:51 +00:00
|
|
|
height: 100px;
|
2020-11-05 16:21:00 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-11-05 16:21:00 +00:00
|
|
|
@media only screen and (max-width: 768px) {
|
|
|
|
.cover-container {
|
|
|
|
height: 200px;
|
|
|
|
width: max-content;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-11-05 16:21:00 +00:00
|
|
|
.cover-container.is-medium {
|
|
|
|
height: 100px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-29 04:08:42 +00:00
|
|
|
.book-cover {
|
2020-09-29 21:11:55 +00:00
|
|
|
height: 100%;
|
2020-09-29 20:11:52 +00:00
|
|
|
object-fit: scale-down;
|
2020-09-29 04:08:42 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-09-29 04:08:42 +00:00
|
|
|
.no-cover {
|
|
|
|
position: relative;
|
2020-09-30 00:43:30 +00:00
|
|
|
white-space: normal;
|
2020-09-29 04:08:42 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2020-09-29 04:08:42 +00:00
|
|
|
.no-cover div {
|
|
|
|
position: absolute;
|
|
|
|
padding: 1em;
|
|
|
|
color: white;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2021-03-31 14:15:30 +00:00
|
|
|
.cover-container.is-medium .no-cover div {
|
|
|
|
font-size: 0.9em;
|
|
|
|
padding: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cover-container.is-small .no-cover div {
|
|
|
|
font-size: 0.7em;
|
|
|
|
padding: 0.1em;
|
|
|
|
}
|
2020-09-29 04:08:42 +00:00
|
|
|
|
2021-04-07 15:33:28 +00:00
|
|
|
/** Avatars
|
|
|
|
******************************************************************************/
|
|
|
|
|
2020-09-29 04:08:42 +00:00
|
|
|
.avatar {
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-03-27 14:36:14 +00:00
|
|
|
.is-32x32 {
|
|
|
|
min-width: 32px;
|
|
|
|
min-height: 32px;
|
2021-01-12 02:09:12 +00:00
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-03-27 14:36:14 +00:00
|
|
|
.is-96x96 {
|
|
|
|
min-width: 96px;
|
|
|
|
min-height: 96px;
|
|
|
|
}
|
|
|
|
|
2021-04-07 16:07:32 +00:00
|
|
|
/** Statuses: Quotes
|
|
|
|
*
|
|
|
|
* \e906: icon-quote-open
|
|
|
|
* \e905: icon-quote-close
|
|
|
|
*
|
|
|
|
* The `content` class on the blockquote allows to apply styles to markdown
|
|
|
|
* generated HTML in the quote: https://bulma.io/documentation/elements/content/
|
|
|
|
*
|
|
|
|
* ```html
|
|
|
|
* <div class="quote block">
|
|
|
|
* <blockquote dir="auto" class="content mb-2">
|
|
|
|
* User generated quote in markdown…
|
|
|
|
* </blockquote>
|
|
|
|
*
|
|
|
|
* <p> — <a…>Book Title</a> by <a…class="author">Author</a></p>
|
|
|
|
* </div>
|
|
|
|
* ```
|
2021-04-07 15:33:28 +00:00
|
|
|
******************************************************************************/
|
|
|
|
|
2021-04-07 16:07:32 +00:00
|
|
|
.quote > blockquote {
|
2020-09-29 21:45:04 +00:00
|
|
|
position: relative;
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-07 16:07:32 +00:00
|
|
|
.quote > blockquote::before,
|
|
|
|
.quote > blockquote::after {
|
2020-09-29 21:45:04 +00:00
|
|
|
font-family: 'icomoon';
|
|
|
|
position: absolute;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-07 16:07:32 +00:00
|
|
|
.quote > blockquote::before {
|
2021-01-16 16:54:16 +00:00
|
|
|
content: "\e906";
|
2020-09-29 21:45:04 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
2021-03-31 14:15:30 +00:00
|
|
|
|
2021-04-07 16:07:32 +00:00
|
|
|
.quote > blockquote::after {
|
2021-01-16 16:54:16 +00:00
|
|
|
content: "\e905";
|
2020-09-29 21:45:04 +00:00
|
|
|
right: 0;
|
|
|
|
}
|
2021-04-07 07:24:34 +00:00
|
|
|
|
2021-04-07 15:31:00 +00:00
|
|
|
/* States
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/* "disabled" for non-buttons */
|
|
|
|
|
|
|
|
.is-disabled {
|
|
|
|
background-color: #dbdbdb;
|
|
|
|
border-color: #dbdbdb;
|
|
|
|
box-shadow: none;
|
|
|
|
color: #7a7a7a;
|
|
|
|
opacity: 0.5;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2021-04-21 19:25:37 +00:00
|
|
|
|
|
|
|
/* Book preview table
|
|
|
|
******************************************************************************/
|
|
|
|
|
2021-04-21 19:26:20 +00:00
|
|
|
.book-preview td {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2021-04-21 19:25:37 +00:00
|
|
|
@media only screen and (max-width: 768px) {
|
2021-04-21 19:29:28 +00:00
|
|
|
table.is-mobile,
|
|
|
|
table.is-mobile tbody {
|
2021-04-21 19:25:37 +00:00
|
|
|
display: block;
|
|
|
|
}
|
2021-04-21 19:29:28 +00:00
|
|
|
|
2021-04-21 19:25:37 +00:00
|
|
|
table.is-mobile tr {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
border-top: 1px solid #dbdbdb;
|
|
|
|
}
|
2021-04-21 19:29:28 +00:00
|
|
|
|
2021-04-21 19:25:37 +00:00
|
|
|
table.is-mobile td {
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
flex: 1 0 100%;
|
|
|
|
order: 2;
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2021-04-21 19:29:28 +00:00
|
|
|
|
2021-04-21 19:25:37 +00:00
|
|
|
table.is-mobile td.book-preview-top-row {
|
|
|
|
order: 1;
|
|
|
|
flex-basis: auto;
|
|
|
|
}
|
2021-04-21 19:29:28 +00:00
|
|
|
|
2021-04-21 19:25:37 +00:00
|
|
|
table.is-mobile td[data-title]:not(:empty)::before {
|
|
|
|
content: attr(data-title);
|
|
|
|
display: block;
|
2021-04-21 19:29:28 +00:00
|
|
|
font-size: 0.75em;
|
2021-04-21 19:25:37 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2021-04-21 19:29:28 +00:00
|
|
|
|
2021-04-21 19:25:37 +00:00
|
|
|
table.is-mobile td:empty {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-04-21 19:29:28 +00:00
|
|
|
|
|
|
|
table.is-mobile th,
|
|
|
|
table.is-mobile thead {
|
2021-04-21 19:25:37 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|