From 51a594f88cae452c27be60a1264c6f0e4173ebb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Thu, 8 Aug 2019 22:19:21 -0400 Subject: [PATCH] Allow images to upscale so we can do fancy cover article images --- web/themes/custom/geofresco/geofresco.theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/themes/custom/geofresco/geofresco.theme b/web/themes/custom/geofresco/geofresco.theme index 8bd3624..003202d 100644 --- a/web/themes/custom/geofresco/geofresco.theme +++ b/web/themes/custom/geofresco/geofresco.theme @@ -23,7 +23,7 @@ function geofresco_preprocess_page(&$variables) { * * In order to do an incredibly ugly hack to prevent responsive images from * upscaling themselves. - */ +WE DECIDED WE WANT TO ALLOW UPSCALING ON THIS SITE function geofresco_preprocess_responsive_image_formatter(array &$variables) { $width = $variables['item']->width; if ($width > 1199) { @@ -31,3 +31,4 @@ function geofresco_preprocess_responsive_image_formatter(array &$variables) { } $variables['responsive_image']['#attributes']['style'] = 'width: ' . $width . 'px'; } + */