From cd747696375085004ead37b0f8e95c5f8c05a3d7 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 27 Sep 2018 11:53:51 -0400 Subject: [PATCH] Featured member list now responsive with only 1 or 2 items on a row --- css/front.css | 19 +++++++++++++++++++ views/front/members/list.html | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/css/front.css b/css/front.css index 5a8dcac9..f792401d 100644 --- a/css/front.css +++ b/css/front.css @@ -1125,10 +1125,29 @@ glm-member-detail-content-toggle { /* Featured Grid Start */ #featured-grid { list-style: none; + overflow: hidden; + text-align: center; } #featured-grid .featured-grid-item-wrapper { padding: 10px; list-style: none; + display: inline-block; + float: none; + vertical-align: top; + width: 33%; +} +@media (max-width: 1024px) { + #featured-grid .featured-grid-item-wrapper { + width: 48%; + } +} +@media (max-width: 640px) { + #featured-grid .featured-grid-item-wrapper { + width: 100%; + max-width: 320px; + float: none; + margin: 0 auto; + } } #featured-grid .featured-grid-item { border: 1px solid lightgrey; diff --git a/views/front/members/list.html b/views/front/members/list.html index 270b95da..f3230f4d 100755 --- a/views/front/members/list.html +++ b/views/front/members/list.html @@ -205,7 +205,7 @@

Featured {$terms.term_member_plur_cap}

-