[gimp-web] content, themes: add a 'buttons' CSS class for centered buttons.



commit b8dae5c925fbdc67265941e057c49cf2291cef9b
Author: Jehan <jehan girinstud io>
Date:   Sun Jul 25 22:42:31 2021 +0200

    content, themes: add a 'buttons' CSS class for centered buttons.

 content/donating/index.md                               | 2 +-
 content/news/2021/2021-07_fund-GIMP-developers/index.md | 4 ++--
 themes/newgimp/static/css/gimp.css                      | 4 ++++
 themes/newgimp/templates/downloads-development.html     | 8 ++++----
 themes/newgimp/templates/downloads.html                 | 6 +++---
 5 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/content/donating/index.md b/content/donating/index.md
index f3a89514..5476839b 100644
--- a/content/donating/index.md
+++ b/content/donating/index.md
@@ -10,7 +10,7 @@ project sustainability.
 
 While we don't raise funds to sponsor development as an organization yet, we encourage contributor 
fundraisers:
 
-<p>
+<p class='buttons'>
   <a href="https://www.patreon.com/pippin";>
     <span class='donate-button'>
       Fund Øyvind Kolås<sup>1</sup><br/>
diff --git a/content/news/2021/2021-07_fund-GIMP-developers/index.md 
b/content/news/2021/2021-07_fund-GIMP-developers/index.md
index 20fa0632..030e004e 100644
--- a/content/news/2021/2021-07_fund-GIMP-developers/index.md
+++ b/content/news/2021/2021-07_fund-GIMP-developers/index.md
@@ -93,7 +93,7 @@ years or more of dedication to free software and researching images? So
 yes, [the GIMP project fully endorses Øyvind's Patreon campaign and we
 encourage everyone to donate!](https://www.patreon.com/pippin)
 
-<p style='text-align:center;'>
+<p class='buttons'>
   <span class='donate-button'>
     <a href="https://www.patreon.com/pippin";>
       Fund Øyvind Kolås<br/>
@@ -168,7 +168,7 @@ project and encourages the whole community to give to this project in
 order to improve GIMP](https://www.patreon.com/zemarmot). You can
 consider it a fostered project of GIMP.
 
-<p style='text-align:center;'>
+<p class='buttons'>
   <span class='donate-button'>
     <a href="https://www.patreon.com/zemarmot";>
       Fund ZeMarmot (Aryeom and Jehan)<br/>
diff --git a/themes/newgimp/static/css/gimp.css b/themes/newgimp/static/css/gimp.css
index fdb1a8ce..67e4ecff 100644
--- a/themes/newgimp/static/css/gimp.css
+++ b/themes/newgimp/static/css/gimp.css
@@ -734,6 +734,10 @@ a.donate-orange {
     color:#f57900 !important;
 }
 
+.buttons {
+    text-align: center;
+}
+
 .donate-button {
         display: inline-block;
         border: solid 1px #666;
diff --git a/themes/newgimp/templates/downloads-development.html 
b/themes/newgimp/templates/downloads-development.html
index 9e9dff47..73a032a8 100644
--- a/themes/newgimp/templates/downloads-development.html
+++ b/themes/newgimp/templates/downloads-development.html
@@ -69,7 +69,7 @@
         the nightly repository will always contain moving
         work-in-progress code.</p>
 
-        <p>
+        <p class='buttons'>
             <span class='win-button'>
                 <a href="https://flathub.org/beta-repo/appstream/org.gimp.GIMP.flatpakref";>
                     Install GIMP development flatpak (unstable)
@@ -142,7 +142,7 @@
         working on that, please check back later.</p>
         {% endif %}
 
-        <p>
+        <p class='buttons'>
             {% for arch, file in FLATPAK_FILE_DEVELOPMENT.iteritems() %}
               <span class='win-button'>
                   <a
@@ -209,7 +209,7 @@
         <p>Note: the currently available package provides GIMP {{ MACOS_VER_DEVELOPMENT }} and has not yet 
updated to the latest version, GIMP {{ GIMP_VERSION_DEVELOPMENT }}. We're working on that, please check back 
later.</p>
         {% endif %}
 
-        <p>
+        <p class='buttons'>
             <span class='win-button' id='osx-torrent'>
                 <a href="//download.gimp.org/pub/gimp/v{{ MACOS_VER_DEVELOPMENT.split('.')[0]}}.{{ 
MACOS_VER_DEVELOPMENT.split('.')[1]}}/osx/{{ MACOS_FILE_DEVELOPMENT }}.torrent">
                     Download GIMP&nbsp;{{ MACOS_VER_DEVELOPMENT }}<br/>
@@ -280,7 +280,7 @@
     </small>
     {% endif %}
 
-    <p>
+    <p class='buttons'>
         <span class='win-button' id='win-torrent'>
             <a href="//download.gimp.org/pub/gimp/v{{ WINDOWS_VER_DEVELOPMENT.split('.')[0] }}.{{ 
WINDOWS_VER_DEVELOPMENT.split('.')[1] }}/windows/{{ WINDOWS_FILE_DEVELOPMENT }}.torrent" title="Download GIMP 
via BitTorrent" id="win-torrent-link">
                 Download GIMP&nbsp;{{ WINDOWS_VER_DEVELOPMENT }}<br/>
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index a047c670..37f463f4 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -59,7 +59,7 @@
         needs.
         </p>
 
-        <p>
+        <p class='buttons'>
             <span class='win-button'>
                 <a href="https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref";>
                     Install GIMP flatpak
@@ -139,7 +139,7 @@
         </small>
         {% endif %}
 
-        <p>
+        <p class='buttons'>
             <span class='win-button' id='osx-torrent'>
                 <a href="//download.gimp.org/pub/gimp/v{{ MACOS_MAJOR_MINOR_VER }}/osx/{{ MACOS_FILE 
}}.torrent">
                     Download GIMP&nbsp;{{ MACOS_VER }}<br/>
@@ -275,7 +275,7 @@
     </small>
     {% endif %}
 
-    <p>
+    <p class='buttons'>
         <span class='win-button' id='win-torrent'>
             <a
             href="//download.gimp.org/pub/gimp/v{{ WINDOWS_MAJOR_MINOR_VER }}/windows/{{ WINDOWS_FILE 
}}.torrent"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]