coryd.dev/src/assets/styles/pages/reading.css

85 lines
1.5 KiB
CSS

:is(.book-entry, .book-focus) img {
height: auto;
aspect-ratio: var(--aspect-ratio-vertical);
border: var(--border-gray);
}
.book-years a:first-of-type {
font-weight: var(--font-weight-bold);
}
.book-entry {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-sm);
&:not(:last-of-type) {
padding-bottom: var(--spacing-base);
border-bottom: var(--border-gray);
}
@media screen and (min-width: 768px) {
flex-direction: row;
gap: var(--spacing-base);
align-items: start;
}
img {
max-width: calc(var(--sizing-3xl) * 4);
}
.media-meta {
margin-top: var(--sizing-base);
align-items: center;
@media screen and (min-width: 768px) {
margin-top: 0;
align-items: start;
}
.description p:last-of-type {
margin-bottom: 0;
}
progress {
margin-bottom: 0;
@media screen and (min-width: 768px) {
margin-top: 0;
}
}
}
}
.book-focus .book-display {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-base);
margin-bottom: var(--spacing-base);
@media screen and (min-width: 768px) {
flex-direction: row;
align-items: start;
}
.media-meta {
align-items: center;
@media screen and (min-width: 768px) {
align-items: start;
}
}
}
.book-entry,
.book-focus .book-display {
progress {
max-width: 85%;
@media screen and (min-width: 768px) {
max-width: 60%;
}
}
}