style: refactor layout and replace fixed spacing with font-relative units
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user