fix: common aspect ratios

This commit is contained in:
Cory Dransfeldt 2024-06-28 13:58:14 -07:00
parent f7b234e7e2
commit c883db21d8
No known key found for this signature in database
6 changed files with 16 additions and 16 deletions

View file

@ -1,8 +1,6 @@
:root {
--grid-square: repeat(2,minmax(0,1fr));
--grid-vertical: repeat(3,minmax(0,1fr));
--aspect-ratio-square: 1/1;
--aspect-ratio-vertical: 2/3;
}
.media-grid {

View file

@ -101,6 +101,11 @@
--rounded-lg: .5rem;
--rounded-full: 9999px;
/* aspect ratios */
--aspect-ratio-square: 1/1;
--aspect-ratio-vertical: 2/3;
--aspect-ratio-banner: 1 / 0.5625;
/* transitions */
--transition-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
--transition-duration-default: 300ms;

View file

@ -10,6 +10,7 @@
border: 1px solid var(--accent-color);
width: 100%;
height: auto;
aspect-ratio: var(--aspect-ratio-square);
}
& .artist-display {

View file

@ -1,7 +1,3 @@
:root {
--aspect-ratio-banner: 1 / 0.5625;
}
.watching {
& img {
border: 1px solid var(--accent-color);