[Git][reproducible-builds/reproducible-website][master] who: Prevent any image from being absurdly tall (especially affiliated...

Chris Lamb gitlab at salsa.debian.org
Mon Aug 3 11:26:25 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
314b6d69 by Chris Lamb at 2020-08-03T12:25:44+01:00
who: Prevent any image from being absurdly tall (especially affiliated projects), not just project sponsors.

- - - - -


2 changed files:

- assets/styles/custom.scss
- who.md


Changes:

=====================================
assets/styles/custom.scss
=====================================
@@ -34,6 +34,10 @@ main {
   img {
     max-width: 100%;
     padding-bottom: 0.5rem;
+
+    &.project-img {
+      max-height: 165px;
+    }
   }
 
   .blog-post-content {


=====================================
who.md
=====================================
@@ -58,7 +58,7 @@ The majority of sponsorship funds go directly towards supporting the Reproducibl
     <div class="col-xs-12 col-sm-6 mb-5">
         <div class="card text-center">
             <a href="{{ x.url }}" name="{{ x.name }}">
-                <img class="p-5" style="max-height: 165px;" src="{{ x.logo | prepend: "/assets/images/who/" | relative_url }}" alt="{{ x.name }}">
+                <img class="p-5 project-img" src="{{ x.logo | prepend: "/assets/images/who/" | relative_url }}" alt="{{ x.name }}">
             </a>
         </div>
     </div>
@@ -75,7 +75,7 @@ The majority of sponsorship funds go directly towards supporting the Reproducibl
     <div class="col-xs-12 col-sm-4 mb-5">
         <div class="card text-center">
             <a href="{{ x.url }}" name="{{ x.name }}">
-                <img class="px-5 pt-5 pb-2" src="{{ x.logo | prepend: "/assets/images/who/" | relative_url }}" alt="{{ x.name }}">
+                <img class="px-5 pt-5 pb-2 project-img" src="{{ x.logo | prepend: "/assets/images/who/" | relative_url }}" alt="{{ x.name }}">
             </a>
             <div class="card-body">
                 <small class="text-muted">({{ x.description }})</small>
@@ -93,7 +93,7 @@ The majority of sponsorship funds go directly towards supporting the Reproducibl
     <div class="col-xs-12 col-sm-6 col-lg-4 col-xl-3 mb-4">
         <div class="card" name="{{ project.name }}">
             <a href="{{ project.url }}" name="{{ project.name }}">
-                <img class="card-img-top p-5" src="{{ project.logo | prepend: "/images/logos/" | relative_url }}" alt="{{ project.name }}">
+                <img class="p-5 project-img" src="{{ project.logo | prepend: "/images/logos/" | relative_url }}" alt="{{ project.name }}">
             </a>
             <div class="card-body">
                 <h4 class="card-title"><a href="{{ project.url }}">{{ project.name }}</a></h4>



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/314b6d699cefe2ea8c01eeaad47b89534a7adf11

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/314b6d699cefe2ea8c01eeaad47b89534a7adf11
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200803/dc9d64f8/attachment.htm>


More information about the rb-commits mailing list