Kris 972cc6e5d9
UX: restyling for 2025 (#28)
This generally updates the styles for the 2025 version. I also made more
features work in development environments (so it's easier to test) and
fixed an issue with invites that was causing the report to not show.


<img width="400" alt="image"
src="https://github.com/user-attachments/assets/69a62b79-12e3-4539-a82c-9bbf9673abe2"
/>

<img width="1554" height="896" alt="image"
src="https://github.com/user-attachments/assets/60fabac5-6f20-4e01-9679-fd228c6850c2"
/>

<img width="754" height="459" alt="image"
src="https://github.com/user-attachments/assets/6725c6e2-1bac-417e-b4ee-190841ab656b"
/>

<img width="1472" height="490" alt="image"
src="https://github.com/user-attachments/assets/87c95e6a-5d78-4fb6-9f2d-dad13bcc9788"
/>

<img width="1480" height="702" alt="image"
src="https://github.com/user-attachments/assets/67bec8f9-dce5-4077-a07d-fe9e13696958"
/>
2025-11-18 09:03:41 -05:00

221 lines
3.6 KiB
SCSS

.reading-time__book {
display: flex;
align-items: center;
justify-content: center;
perspective: 1000px;
}
.book {
width: 150px;
height: 200px;
position: relative;
transform-style: preserve-3d;
transform: rotateY(-20deg);
z-index: 2;
@media screen and (width <= 475px) {
width: 100px;
height: 133px;
}
}
p.reading-time__text {
font-family: var(--pixel-text);
}
.reading-time code {
background-color: var(--rewind-white);
color: var(--rewind-black);
}
.book img {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 200px;
transform: translateZ(17.5px);
background-color: #01060f;
border-radius: 0 5px 5px 0;
box-shadow: 5px 5px 20px rgb(0 0 0 / 0.05);
image-rendering: crisp-edges;
@media screen and (width <= 475px) {
width: 100px;
height: 133px;
}
}
.book::before {
position: absolute;
content: " ";
left: 0;
top: 4px;
width: 33px;
height: 192px;
transform: translateX(128.5px) rotateY(90deg);
background: linear-gradient(
90deg,
#fff 0%,
#f9f9f9 5%,
#fff 10%,
#f9f9f9 15%,
#fff 20%,
#f9f9f9 25%,
#fff 30%,
#f9f9f9 35%,
#fff 40%,
#f9f9f9 45%,
#fff 50%,
#f9f9f9 55%,
#fff 60%,
#f9f9f9 65%,
#fff 70%,
#f9f9f9 75%,
#fff 80%,
#f9f9f9 85%,
#fff 90%,
#b6b6b6 95%,
#b6b6b6 100%
);
@media screen and (width <= 475px) {
left: -43px;
width: 22px;
height: 125px;
}
}
.book::after {
position: absolute;
top: 0;
left: 0;
content: " ";
width: 150px;
height: 200px;
transform: translateZ(-17.5px);
background-color: var(--book-color);
border-radius: 0 5px 5px 0;
box-shadow: 0 0 1px 1px rgb(0, 0, 0, 0.25);
@media screen and (width <= 475px) {
width: 100px;
height: 133px;
}
}
.reading-time__text {
color: var(--rewind-white);
font-weight: normal;
width: 50%;
@media screen and (width <= 475px) {
font-size: var(--font-down-2);
}
}
.reading-time .rewind-card {
gap: 1em;
padding: 1.5em;
flex-direction: row;
justify-content: space-around;
align-items: center;
text-align: left;
--book-color: var(--primary-very-high);
@include rewind-border;
@media screen and (width <= 475px) {
padding: 0.75em;
}
}
.book-series {
width: 150px;
height: 200px;
transform-style: preserve-3d;
transform: rotateY(-20deg);
position: absolute;
background-color: var(--book-color);
border-radius: 0 5px 5px 0;
box-shadow: 0 0 1px 1px rgb(0, 0, 0, 0.25);
z-index: 1;
@media screen and (width <= 475px) {
width: 100px;
height: 133px;
}
&::before {
position: absolute;
content: " ";
left: 0;
top: 4px;
width: 33px;
height: 192px;
transform: translateX(128.5px) rotateY(90deg);
background: linear-gradient(
90deg,
#fff 0%,
#f9f9f9 5%,
#fff 10%,
#f9f9f9 15%,
#fff 20%,
#f9f9f9 25%,
#fff 30%,
#f9f9f9 35%,
#fff 40%,
#f9f9f9 45%,
#fff 50%,
#f9f9f9 55%,
#fff 60%,
#f9f9f9 65%,
#fff 70%,
#f9f9f9 75%,
#fff 80%,
#f9f9f9 85%,
#fff 90%,
#b6b6b6 95%,
#b6b6b6 100%
);
@media screen and (width <= 475px) {
left: -43px;
width: 22px;
height: 125px;
}
}
&.one {
top: 3px;
left: 14px;
@media screen and (width <= 475px) {
top: 3px;
left: 11px;
}
}
&.two {
top: 5px;
left: 22px;
z-index: -1;
@media screen and (width <= 475px) {
top: 5px;
left: 17px;
}
}
&.three {
top: 7px;
left: 31px;
z-index: -2;
@media screen and (width <= 475px) {
display: none;
}
}
}