all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [ELPA] CSS improvements
@ 2022-09-11 13:38 Adam Porter
  2022-09-11 14:06 ` Stefan Monnier
  2022-09-11 14:22 ` Philip Kaludercic
  0 siblings, 2 replies; 8+ messages in thread
From: Adam Porter @ 2022-09-11 13:38 UTC (permalink / raw)
  To: emacs-devel, Stefan Monnier, Philip Kaludercic

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

Hi Stefan, Philip, et al,

ELPA's CSS currently has a few small issues: some elements have no top 
margins, so they run into preceding elements; and some heading levels 
have the same appearance as normal body text.

The attached patches resolve these problems and make, especially, 
package documentation much easier to read.

Thanks,
Adam

[-- Attachment #2: 0001-html-layout.css-p-Improve-margins.patch --]
[-- Type: text/x-patch, Size: 803 bytes --]

From c846798ff3f4cb19308c875cc37bf0a48537aa6d Mon Sep 17 00:00:00 2001
From: Adam Porter <adam@alphapapa.net>
Date: Sun, 11 Sep 2022 08:25:48 -0500
Subject: [PATCH 1/2] * html/layout.css (p): Improve margins

Previously, paragraphs only had bottom margins, which caused them to
have nearly no spacing between them and other, non-paragraph page
elements.  This change maintains the same spacing between paragraphs,
while adding space after other elements, which looks *much* better.
---
 html/layout.css | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/layout.css b/html/layout.css
index 48f9aa5fc7..59d88a3bec 100644
--- a/html/layout.css
+++ b/html/layout.css
@@ -127,7 +127,7 @@ pre .kw {
 }
 
 p {
-  margin-bottom: 2em;
+  margin: 1em 0 1em 0;
 }
 
 p.centered {
-- 
2.34.0


[-- Attachment #3: 0002-html-layout.css-h4-h5-Margins-text-decoration.patch --]
[-- Type: text/x-patch, Size: 856 bytes --]

From 5596bf6d98b1f00f2250f0c86f119b83bcda2131 Mon Sep 17 00:00:00 2001
From: Adam Porter <adam@alphapapa.net>
Date: Sun, 11 Sep 2022 08:33:51 -0500
Subject: [PATCH 2/2] * html/layout.css (h4, h5): Margins, text-decoration

The margin changes add whitespace after other page elements, matching
the margins of other heading levels.  The text decorations visually
distinguish them from normal body text.  The result is much more
readable.
---
 html/layout.css | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/html/layout.css b/html/layout.css
index 59d88a3bec..dbd7a9626e 100644
--- a/html/layout.css
+++ b/html/layout.css
@@ -92,6 +92,14 @@ h3 {
   font-size: 1.5em;
   margin: 1.2em 0px;
 }
+h4 {
+  margin: 1em 0px;
+  text-decoration: underline;
+}
+h5 {
+  margin: 1em 0px;
+  text-decoration: italic;
+}
 
 a {
   color: #c73a6c;
-- 
2.34.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-12  8:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-11 13:38 [ELPA] CSS improvements Adam Porter
2022-09-11 14:06 ` Stefan Monnier
2022-09-11 14:22 ` Philip Kaludercic
2022-09-11 14:55   ` Stefan Monnier
2022-09-11 15:04     ` Philip Kaludercic
2022-09-11 20:09       ` Adam Porter
2022-09-11 21:27         ` Stefan Monnier
2022-09-12  8:30           ` Adam Porter

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.