From 224d96e4a7797f69dfbf3031d3f6daf710ebf73c Mon Sep 17 00:00:00 2001 From: mst Date: Sat, 23 Aug 2025 01:52:48 +0200 Subject: [PATCH] Fix bottom margin in admonitions and card text + fix card margin on 'Donating to Codeberg' page (#668) **Before:** ![Screenshot 2025-08-22 at 23-58-56 Your First Repository Codeberg Documentation](/attachments/ef01b002-5c3a-4132-8a36-e84f5a09b110) ![Screenshot 2025-08-23 at 00-07-41 Your First Repository Codeberg Documentation](/attachments/b16328c6-3f3e-45df-93b7-9ef5e6eafff5) ![Screenshot 2025-08-23 at 00-16-37 Donating to Codeberg Codeberg Documentation](/attachments/db873806-9de6-4324-9eef-d6f95ea13f0f) **After:** ![Screenshot 2025-08-23 at 00-07-01 Your First Repository Codeberg Documentation](/attachments/a7fce9ee-ced5-45b6-9e93-c4ce3234b07b) ![Screenshot 2025-08-23 at 00-08-13 Your First Repository Codeberg Documentation](/attachments/c04acf6c-a293-4824-a90e-2650ed05d810) ![Screenshot 2025-08-23 at 00-17-21 Donating to Codeberg Codeberg Documentation](/attachments/e5caf5ee-00c0-4a18-8ed8-a6790989b0f0) Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/668 Reviewed-by: Bastian Greshake Tzovaras Co-authored-by: mst Co-committed-by: mst --- assets/css/codeberg-docs.css | 14 ++++++++++++++ content/improving-codeberg/donate.md | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/assets/css/codeberg-docs.css b/assets/css/codeberg-docs.css index ff0caab..bbe2a4c 100644 --- a/assets/css/codeberg-docs.css +++ b/assets/css/codeberg-docs.css @@ -242,3 +242,17 @@ a.show-on-focus:focus { [data-bs-theme='light'] .navbar-brand img { content: url(https://design.codeberg.org/logo-kit/icon.svg); } + +.alert-heading { + margin-bottom: 0.5rem; +} + +/* fix bottom margin in admonitions and cards */ + +.alert p:not(ul p):nth-last-child(2), +.alert p:not(ul p):last-child, +.alert li:last-child p, +.alert ul:last-child, +.card-text p:last-child { + margin-bottom: 0; +} diff --git a/content/improving-codeberg/donate.md b/content/improving-codeberg/donate.md index 6298ba4..04a62d2 100644 --- a/content/improving-codeberg/donate.md +++ b/content/improving-codeberg/donate.md @@ -11,7 +11,7 @@ develop new features and sustain the Free Software ecosystem around. ## How to Donate -
+
Liberapay

@@ -23,7 +23,7 @@ develop new features and sustain the Free Software ecosystem around.

-
+
SEPA wire transfer