diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index b37405d63..271fa6bdb 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2869,11 +2869,19 @@ table { .figure-card { display: flex; margin: 0 0 $line-height; + overflow: hidden; position: relative; + @include breakpoint(medium down) { + min-height: $line-height * 4; + } + @include breakpoint(medium) { max-height: rem-calc(185); - overflow: hidden; + } + + @include breakpoint(large) { + min-height: rem-calc(185); } a { @@ -2905,8 +2913,16 @@ table { h3, .title { - font-size: rem-calc(24); - line-height: rem-calc(24); + font-size: $base-font-size; + + @include breakpoint(medium) { + font-size: rem-calc(20); + } + + @include breakpoint(large) { + font-size: rem-calc(24); + line-height: rem-calc(24); + } } span { diff --git a/app/views/pages/_card.html.erb b/app/views/pages/_card.html.erb index 18e642a5b..eb4e351a1 100644 --- a/app/views/pages/_card.html.erb +++ b/app/views/pages/_card.html.erb @@ -1,4 +1,5 @@ -
+
<%= link_to card.link_url do %>