Fix: Tweaked the card size scaling to prevent cards from becoming too small at resolutions above 1080p
Previously: 7 posters at 1080p resolution 17 posters at 4K resolution Now: 7 posters at 1080p resolution 12 posters at 4K resolution
This commit is contained in:
@@ -478,36 +478,9 @@ html {
|
|||||||
--cardCount: 2;
|
--cardCount: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the window width is equal to or more than (at minimum) 220em then the code in the query will trigger */
|
/* if the window width is equal to or more than (at minimum) 300em then the code in the query will trigger */
|
||||||
/* 25 posters, 22 thumbs */
|
/* 21 posters, 19 thumbs */
|
||||||
@media (min-width: 220em) {
|
@media (min-width: 300em) {
|
||||||
|
|
||||||
.portraitCard,
|
|
||||||
.squareCard {
|
|
||||||
--cardCount: 25;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overflowPortraitCard,
|
|
||||||
.overflowSquareCard {
|
|
||||||
--cardCount: 24;
|
|
||||||
}
|
|
||||||
|
|
||||||
.squareCard:has(.cardFooter) {
|
|
||||||
--cardCount: 22;
|
|
||||||
}
|
|
||||||
|
|
||||||
.backdropCard {
|
|
||||||
--cardCount: 22;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overflowBackdropCard {
|
|
||||||
--cardCount: 21;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* if the window width is equal to or less than (at maximum) 220em then the code in the query will trigger */
|
|
||||||
/* 21 posters, 18 thumbs */
|
|
||||||
@media (max-width: 220em) {
|
|
||||||
|
|
||||||
.portraitCard,
|
.portraitCard,
|
||||||
.squareCard {
|
.squareCard {
|
||||||
@@ -520,21 +493,48 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.squareCard:has(.cardFooter) {
|
.squareCard:has(.cardFooter) {
|
||||||
--cardCount: 18;
|
--cardCount: 19;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdropCard {
|
.backdropCard {
|
||||||
--cardCount: 18;
|
--cardCount: 19;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overflowBackdropCard {
|
.overflowBackdropCard {
|
||||||
--cardCount: 17;
|
--cardCount: 18;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the window width is equal to or less than (at maximum) 200em then the code in the query will trigger */
|
/* if the window width is equal to or less than (at maximum) 300em then the code in the query will trigger */
|
||||||
/* 17 posters, 14 thumbs */
|
/* 19 posters, 17 thumbs */
|
||||||
@media (max-width: 200em) {
|
@media (max-width: 300em) {
|
||||||
|
|
||||||
|
.portraitCard,
|
||||||
|
.squareCard {
|
||||||
|
--cardCount: 19;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowPortraitCard,
|
||||||
|
.overflowSquareCard {
|
||||||
|
--cardCount: 18;
|
||||||
|
}
|
||||||
|
|
||||||
|
.squareCard:has(.cardFooter) {
|
||||||
|
--cardCount: 17;
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdropCard {
|
||||||
|
--cardCount: 17;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowBackdropCard {
|
||||||
|
--cardCount: 16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if the window width is equal to or less than (at maximum) 270em then the code in the query will trigger */
|
||||||
|
/* 17 posters, 15 thumbs */
|
||||||
|
@media (max-width: 270em) {
|
||||||
|
|
||||||
.portraitCard,
|
.portraitCard,
|
||||||
.squareCard {
|
.squareCard {
|
||||||
@@ -547,49 +547,103 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.squareCard:has(.cardFooter) {
|
.squareCard:has(.cardFooter) {
|
||||||
--cardCount: 14;
|
--cardCount: 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdropCard {
|
.backdropCard {
|
||||||
--cardCount: 14;
|
--cardCount: 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overflowBackdropCard {
|
.overflowBackdropCard {
|
||||||
|
--cardCount: 14;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if the window width is equal to or less than (at maximum) 240em then the code in the query will trigger */
|
||||||
|
/* 15 posters, 13 thumbs */
|
||||||
|
@media (max-width: 240em) {
|
||||||
|
|
||||||
|
.portraitCard,
|
||||||
|
.squareCard {
|
||||||
|
--cardCount: 15;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowPortraitCard,
|
||||||
|
.overflowSquareCard {
|
||||||
|
--cardCount: 14;
|
||||||
|
}
|
||||||
|
|
||||||
|
.squareCard:has(.cardFooter) {
|
||||||
--cardCount: 13;
|
--cardCount: 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.backdropCard {
|
||||||
|
--cardCount: 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowBackdropCard {
|
||||||
|
--cardCount: 12;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if the window width is equal to or less than (at maximum) 220em then the code in the query will trigger */
|
||||||
|
/* 13 posters, 11 thumbs */
|
||||||
|
@media (max-width: 220em) {
|
||||||
|
|
||||||
|
.portraitCard,
|
||||||
|
.squareCard {
|
||||||
|
--cardCount: 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowPortraitCard,
|
||||||
|
.overflowSquareCard {
|
||||||
|
--cardCount: 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
.squareCard:has(.cardFooter) {
|
||||||
|
--cardCount: 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdropCard {
|
||||||
|
--cardCount: 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowBackdropCard {
|
||||||
|
--cardCount: 10;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if the window width is equal to or less than (at maximum) 200em then the code in the query will trigger */
|
||||||
|
/* 12 posters, 10 thumbs */
|
||||||
|
@media (max-width: 200em) {
|
||||||
|
|
||||||
|
.portraitCard,
|
||||||
|
.squareCard {
|
||||||
|
--cardCount: 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowPortraitCard,
|
||||||
|
.overflowSquareCard {
|
||||||
|
--cardCount: 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
.squareCard:has(.cardFooter) {
|
||||||
|
--cardCount: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdropCard {
|
||||||
|
--cardCount: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowBackdropCard {
|
||||||
|
--cardCount: 9;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the window width is equal to or less than (at maximum) 170em then the code in the query will trigger */
|
/* if the window width is equal to or less than (at maximum) 170em then the code in the query will trigger */
|
||||||
/* 14 posters, 10 thumbs */
|
/* 10 posters, 8 thumbs */
|
||||||
@media (max-width: 170em) {
|
@media (max-width: 170em) {
|
||||||
|
|
||||||
.portraitCard,
|
|
||||||
.squareCard {
|
|
||||||
--cardCount: 14;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overflowPortraitCard,
|
|
||||||
.overflowSquareCard {
|
|
||||||
--cardCount: 13;
|
|
||||||
}
|
|
||||||
|
|
||||||
.squareCard:has(.cardFooter) {
|
|
||||||
--cardCount: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
.backdropCard {
|
|
||||||
--cardCount: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overflowBackdropCard {
|
|
||||||
--cardCount: 9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* if the window width is equal to or less than (at maximum) 150em then the code in the query will trigger */
|
|
||||||
/* 10 posters, 7 thumbs */
|
|
||||||
@media (max-width: 150em) {
|
|
||||||
|
|
||||||
.portraitCard,
|
.portraitCard,
|
||||||
.squareCard {
|
.squareCard {
|
||||||
--cardCount: 10;
|
--cardCount: 10;
|
||||||
@@ -601,7 +655,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.squareCard:has(.cardFooter) {
|
.squareCard:has(.cardFooter) {
|
||||||
--cardCount: 8;
|
--cardCount: 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdropCard {
|
.backdropCard {
|
||||||
@@ -613,6 +667,33 @@ html {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if the window width is equal to or less than (at maximum) 150em then the code in the query will trigger */
|
||||||
|
/* 9 posters, 7 thumbs */
|
||||||
|
@media (max-width: 140em) {
|
||||||
|
|
||||||
|
.portraitCard,
|
||||||
|
.squareCard {
|
||||||
|
--cardCount: 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowPortraitCard,
|
||||||
|
.overflowSquareCard {
|
||||||
|
--cardCount: 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.squareCard:has(.cardFooter) {
|
||||||
|
--cardCount: 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdropCard {
|
||||||
|
--cardCount: 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflowBackdropCard {
|
||||||
|
--cardCount: 6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* 8 posters, 7 thumbs */
|
/* 8 posters, 7 thumbs */
|
||||||
@media (max-width: 120em) {
|
@media (max-width: 120em) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user