From eeee12d757adf1f9ede4fb3a9b92850049ff9a29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org>
Date: Sun, 20 Feb 2022 06:54:44 +0100
Subject: [PATCH] Tweak, remove some outdated CSS

---
 .../static/scipost/assets/css/_grid.scss      |  2 +-
 .../static/scipost/assets/css/_homepage.scss  | 33 -------------------
 .../scipost/_hx_participates_in.html          | 10 +++---
 .../scipost/templates/scipost/header.html     |  2 +-
 4 files changed, 7 insertions(+), 40 deletions(-)

diff --git a/scipost_django/scipost/static/scipost/assets/css/_grid.scss b/scipost_django/scipost/static/scipost/assets/css/_grid.scss
index 759b3d407..f1a5c0aa8 100644
--- a/scipost_django/scipost/static/scipost/assets/css/_grid.scss
+++ b/scipost_django/scipost/static/scipost/assets/css/_grid.scss
@@ -28,7 +28,7 @@ main {
 }
 
 img {
-    max-width: 100%;
+    //max-width: 100%;
 }
 
 .col-md-0 {
diff --git a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss
index 3d6d88ddc..e3a8740b8 100644
--- a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss
+++ b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss
@@ -1,36 +1,3 @@
-.granting-institutions > a {
-    width: 25%;
-    display: inline-block;
-    max-width: 100px;
-    padding: 0 0.25rem;
-}
-
-.supporting-partners ul {
-    height: 100px !important;
-    list-style: none;
-
-    li {
-        height: 100px !important;
-        list-style: none;
-
-        li {
-            height: 100px !important;
-
-            img {
-                max-height: 100px !important;
-                height: auto !important;
-                width: auto !important;
-            }
-        }
-    }
-}
-
-
-.teaser-box {
-    padding: 1rem;
-    border: 2px solid $scipost-orange;
-    border-radius: 3px;
-}
 
 .homepage {
     .logos a {
diff --git a/scipost_django/scipost/templates/scipost/_hx_participates_in.html b/scipost_django/scipost/templates/scipost/_hx_participates_in.html
index 85a6fa582..c9ee7203e 100644
--- a/scipost_django/scipost/templates/scipost/_hx_participates_in.html
+++ b/scipost_django/scipost/templates/scipost/_hx_participates_in.html
@@ -6,30 +6,30 @@
   </div>
   <div class="card-body logos">
     <a href="https://www.crossref.org" target="_blank" rel="noopener">
-      <img src="https://assets.crossref.org/logo/crossref-logo-200.svg" width="100" height="auto" alt="Crossref logo">
+      <img src="https://assets.crossref.org/logo/crossref-logo-200.svg" width="100" height="65" alt="Crossref logo">
     </a>
     <a href="https://www.doaj.org" target="_blank" rel="noopener">
       <picture>
 	<source type="image/webp" srcset="{% static 'scipost/images/doaj_logo_200.webp' %} 90w">
-	<img src="{% static 'scipost/images/doaj_logo_200.jpg' %}" width="90" height="auto" alt="DOAJ logo">
+	<img src="{% static 'scipost/images/doaj_logo_200.jpg' %}" width="90" height="90" alt="DOAJ logo">
       </picture>
     </a>
     <a href="https://www.clockss.org" target="_blank" rel="noopener">
       <picture>
 	<source type="image/webp" srcset="{% static 'scipost/images/clockss_original_logo_boxed_ai-cropped-90.webp' %} 80w">
-	<img src="{% static 'scipost/images/clockss_original_logo_boxed_ai-cropped-90.png' %}" width="80" height="auto" alt="Clockss logo">
+	<img src="{% static 'scipost/images/clockss_original_logo_boxed_ai-cropped-90.png' %}" width="80" height="73" alt="Clockss logo">
       </picture>
     </a>
     <a href="https://i4oc.org/" target="_blank" rel="noopener">
       <picture>
 	<source type="image/webp" srcset="{% static 'scipost/images/I4OC.webp' %} 100w">
-	<img src="{% static 'scipost/images/I4OC.png' %}" width="100" height="auto" alt="I4OC logo">
+	<img src="{% static 'scipost/images/I4OC.png' %}" width="100" height="37" alt="I4OC logo">
       </picture>
     </a>
     <a href="https://freejournals.org" target="_blank" rel="noopener">
       <picture>
 	<source type="image/webp" srcset="{% static 'scipost/images/FJN-logo-long.webp' %} 100w">
-	<img src="{% static 'scipost/images/FJN-logo-long.png' %}" width="100" height="auto" alt="FJN logo">
+	<img src="{% static 'scipost/images/FJN-logo-long.png' %}" width="100" height="46" alt="FJN logo">
       </picture>
     </a>
   </div>
diff --git a/scipost_django/scipost/templates/scipost/header.html b/scipost_django/scipost/templates/scipost/header.html
index 25e8b1c3b..9bdf9d897 100644
--- a/scipost_django/scipost/templates/scipost/header.html
+++ b/scipost_django/scipost/templates/scipost/header.html
@@ -6,7 +6,7 @@
     <div class="d-lg-flex justify-content-between p-4 pb-0 pb-lg-4 w-100">
 
       <div class="me-2 my-4 my-md-auto" style="flex: 200px">
-        <a href="{% url 'scipost:index' %}"><img src="{% static 'scipost/images/logo_scipost_RGB_HTML_groot.png' %}" class="m-0 p-0" alt="SciPost logo" style="max-width: unset;" width="180" /></a>
+        <a href="{% url 'scipost:index' %}"><img src="{% static 'scipost/images/logo_scipost_RGB_HTML_groot.png' %}" class="m-0 p-0" alt="SciPost logo" style="max-width: unset;" width="180" height="55" /></a>
       </div>
 
       {% if session_acad_field_form %}
-- 
GitLab