html { scroll-behavior: smooth; } body { min-height: 100vh; display: flex; flex-direction: column; } .image { overflow: hidden; } .navbar .logo { max-height: 50px; } .card { overflow: visible; } .scroll-x { overflow: hidden; overflow-x: auto; } .modal-card.is-fullwidth { min-width: 75% !important; } /** Utilities not covered by Bulma ******************************************************************************/ @media only screen and (max-width: 768px) { .is-sr-only-mobile { border: none !important; clip: rect(0, 0, 0, 0) !important; height: 0.01em !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; white-space: nowrap !important; width: 0.01em !important; } .m-0-mobile { margin: 0 !important; } } .button.is-transparent { background-color: transparent; } .card.is-stretchable { display: flex; flex-direction: column; height: 100%; } .card.is-stretchable .card-content { flex-grow: 1; } /** Shelving ******************************************************************************/ /** @todo Replace icons with SVG symbols. @see https://www.youtube.com/watch?v=9xXBYcWgCHA */ .shelf-option:disabled > *::after { font-family: "icomoon"; /* stylelint-disable font-family-no-missing-generic-family-keyword */ content: "\e918"; margin-left: 0.5em; } /** Toggles ******************************************************************************/ .toggle-button[aria-pressed=true], .toggle-button[aria-pressed=true]:hover { background-color: hsl(171, 100%, 41%); color: white; } .hide-active[aria-pressed=true], .hide-inactive[aria-pressed=false] { display: none; } .transition-x.is-hidden, .transition-y.is-hidden { display: block !important; visibility: hidden !important; height: 0; width: 0; margin: 0; padding: 0; } .transition-x, .transition-y { transition-duration: 0.5s; transition-timing-function: ease; } .transition-x { transition-property: width, margin-left, margin-right, padding-left, padding-right; } .transition-y { transition-property: height, margin-top, margin-bottom, padding-top, padding-bottom; } @media (prefers-reduced-motion: reduce) { .transition-x, .transition-y { transition-duration: 0.001ms !important; } } /** Stars ******************************************************************************/ .stars { white-space: nowrap; } /** Stars in a review form * * Specificity makes hovering taking over checked inputs. * * \e9d9: filled star * \e9d7: empty star; * -------------------------------------------------------------------------- */ .form-rate-stars { width: max-content; } /* All stars are visually filled by default. */ .form-rate-stars .icon::before { content: '\e9d9'; } /* Icons directly following inputs that follow the checked input are emptied. */ .form-rate-stars input:checked ~ input + .icon::before { content: '\e9d7'; } /* When a label is hovered, repeat the fill-all-then-empty-following pattern. */ .form-rate-stars:hover .icon.icon::before { content: '\e9d9'; } .form-rate-stars .icon:hover ~ .icon::before { content: '\e9d7'; } /** Book covers * * - The context gives the extrinsic dimensions. * - .cover-container gives the intrinsic dimensions and position. * - .book-cover is positioned and sized based on its container. ******************************************************************************/ .cover-container { display: flex; position: relative; overflow: hidden; min-width: 80px; min-height: 100px; max-width: max-content; outline: solid 1px #dbdbdb; } /* Book cover * -------------------------------------------------------------------------- */ .book-cover { display: block; max-width: 100%; max-height: 100%; /* Useful when stretching under-sized images. */ image-rendering: optimizeQuality; image-rendering: smooth; } /* Cover caption * -------------------------------------------------------------------------- */ .no-cover .cover_caption { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 0.25em; font-size: 0.75em; color: white; background-color: #002549; } /** Avatars ******************************************************************************/ .avatar { vertical-align: middle; display: inline; } /** 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 *
*
* User generated quote in markdown… *
* *

Book Title by Author

*
* ``` ******************************************************************************/ .quote > blockquote { position: relative; padding-left: 2em; } .quote > blockquote::before, .quote > blockquote::after { font-family: 'icomoon'; position: absolute; } .quote > blockquote::before { content: "\e906"; top: 0; left: 0; } .quote > blockquote::after { content: "\e905"; right: 0; } /* States ******************************************************************************/ /* "disabled" for non-buttons */ .is-disabled { background-color: #dbdbdb; border-color: #dbdbdb; box-shadow: none; color: #7a7a7a; opacity: 0.5; cursor: not-allowed; } /* Dimensions ******************************************************************************/ .is-32x32 { min-width: 32px !important; min-height: 32px !important; } .is-96x96 { min-width: 96px !important; min-height: 96px !important; } .is-h-small { height: 100px !important; } .is-h-medium { height: 150px !important; } @media only screen and (max-width: 768px) { .is-h-medium-mobile { height: 150px; } } .is-min-w-none { min-width: auto !important; } /* Alignments ******************************************************************************/ /* Flex item position * * This is for a default `flex-direction: row`. * -------------------------------------------------------------------------- */ .align-r { justify-content: flex-end; } @media screen and (min-width: 769px) { .align-r-tablet { justify-content: flex-end; } } /* Spacings ******************************************************************************/ @media screen and (max-width: 768px) { .my-3-mobile { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; } } @media screen and (min-width: 769px) { .ml-3-tablet { margin-left: 0.75rem !important; } .mx-3-tablet { margin-right: 0.75rem !important; margin-left: 0.75rem !important; } } /* Book preview table ******************************************************************************/ .book-preview td { vertical-align: middle; } @media only screen and (max-width: 768px) { table.is-mobile, table.is-mobile tbody { display: block; } table.is-mobile tr { display: flex; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid #dbdbdb; } table.is-mobile td { display: block; box-sizing: border-box; flex: 1 0 100%; order: 2; border-bottom: 0; } table.is-mobile td.book-preview-top-row { order: 1; flex-basis: auto; } table.is-mobile td[data-title]:not(:empty)::before { content: attr(data-title); display: block; font-size: 0.75em; font-weight: bold; } table.is-mobile td:empty { padding: 0; } table.is-mobile th, table.is-mobile thead { display: none; } }