From df52e00856463bbca656ebf47a4e0002a04f054c Mon Sep 17 00:00:00 2001 From: julientaq <julien@coko.foundation> Date: Wed, 12 Jan 2022 10:50:37 +0100 Subject: [PATCH] styles for logo on home page --- src/layouts/home.njk | 2 +- static/css/theme-coko/main.css | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/layouts/home.njk b/src/layouts/home.njk index 664de03..cb382a3 100644 --- a/src/layouts/home.njk +++ b/src/layouts/home.njk @@ -44,7 +44,7 @@ <section class="section-partners"> <h2 class="section-title">we work with</h2> - <ul> + <ul class="sponsors"> {% for item in sponsors.entities %} <li class="sponsorLogo"> <a target="_blank" href="{{item.url}}"> diff --git a/static/css/theme-coko/main.css b/static/css/theme-coko/main.css index a53b3e1..4d9bd1f 100644 --- a/static/css/theme-coko/main.css +++ b/static/css/theme-coko/main.css @@ -664,3 +664,18 @@ footer section.infos a:hover { margin: 2em auto; text-align:right; } +.sponsors { +list-style-type: none; +display: grid; +grid-template-columns: repeat(4, minmax(1px, 1fr)); +} + +.sponsors li { + padding: 2em; +} + +.sponsors li img { + max-width: 100%; + max-height: 100%; + object-fit: contain; +} -- GitLab