diff --git a/src/components/Feed/ArticleCard.module.scss b/src/components/Feed/ArticleCard.module.scss index 4c323463..57ee7921 100644 --- a/src/components/Feed/ArticleCard.module.scss +++ b/src/components/Feed/ArticleCard.module.scss @@ -325,7 +325,9 @@ } .shoutCardWithCover { - padding: 56.2% 2.4rem 0; + aspect-ratio: 16/9; + padding: 0 2.4rem 0; + width: 100%; @include media-breakpoint-down(sm) { padding-top: 100%; @@ -393,6 +395,11 @@ .shoutCardTitle { @include font-size(3.2rem); } + + .shoutTopic a:hover { + background: #fff !important; + color: #000 !important; + } } .shoutCardContentTop { @@ -505,12 +512,20 @@ .shoutCardVertical { aspect-ratio: auto; height: 100%; + min-height: 250px; margin: 0; - padding: 0 0 20%; + padding: 0; - @include media-breakpoint-up(xl) { - aspect-ratio: 1 / 1.6; - padding: 0; + @include media-breakpoint-up(sm) { + aspect-ratio: 2/1; + } + + @include media-breakpoint-up(md) { + aspect-ratio: 1/1; + } + + @include media-breakpoint-up(lg) { + aspect-ratio: 1/1.6; } .shoutCardTitle, diff --git a/src/components/Feed/ArticleCard.tsx b/src/components/Feed/ArticleCard.tsx index 775230e4..cd693ce2 100644 --- a/src/components/Feed/ArticleCard.tsx +++ b/src/components/Feed/ArticleCard.tsx @@ -129,6 +129,7 @@ export const ArticleCard = (props: ArticleCardProps) => { } slug={mainTopic.slug} isFloorImportant={props.settings?.isFloorImportant} + class={styles.shoutTopic} /> diff --git a/src/components/Feed/CardTopic.tsx b/src/components/Feed/CardTopic.tsx index 0b51c3f0..aa1fd84c 100644 --- a/src/components/Feed/CardTopic.tsx +++ b/src/components/Feed/CardTopic.tsx @@ -7,12 +7,13 @@ type CardTopicProps = { title: string slug: string isFloorImportant?: boolean + class?: string } export const CardTopic = (props: CardTopicProps) => { return (
diff --git a/src/components/Feed/RowShort.tsx b/src/components/Feed/RowShort.tsx index e63f2924..afa70088 100644 --- a/src/components/Feed/RowShort.tsx +++ b/src/components/Feed/RowShort.tsx @@ -5,10 +5,10 @@ import { ArticleCard } from './ArticleCard' export default (props: { articles: Shout[] }) => (
-
+
{(a) => ( -
+