From c9c0ee2c7b376622797f3663c1bc4418d7cd75f0 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 4 Nov 2019 16:28:48 -0500 Subject: [PATCH] tweaked ryf-list image css for odd shaped images this way wide images won't get horizontally compressed --- css/style.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index 1841ffc..72a0448 100644 --- a/css/style.css +++ b/css/style.css @@ -303,12 +303,19 @@ nav .search-block-form { border-radius: 5px; position: relative; text-align: center; + display: flex; + align-items: center; } -.ryf-list img { +.ryf-list .field--type-image a { + display: inline-block; + margin: 0 auto; +} + +.ryf-list .field--type-image img { width: auto; - height: 100%; - margin: auto 0; + max-height: 150px; + margin: 0 auto; display: inline-block; } -- 1.9.1