style: refactor layout and replace fixed spacing with font-relative units

This commit is contained in:
Erzbir
2025-08-05 14:50:52 +08:00
parent 8e3cd1ae8d
commit 6e0c6973f2
15 changed files with 287 additions and 233 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
.moment-media {
display: grid;
gap: 0.5rem;
margin: 1rem 0;
gap: calc(var(--font-theme-size) * 0.5);
margin: var(--font-theme-size) 0;
width: 80%;
}
.moment-media video {
width: 100%;
height: 200px;
height: calc(var(--font-theme-size) * 12.5);
object-fit: cover;
border-radius: 8px;
border-radius: var(--font-theme-size);
transition: transform 0.3s ease;
}