all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: emacs-devel <emacs-devel@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	Philip Kaludercic <philipk@posteo.net>
Subject: [ELPA] CSS improvements
Date: Sun, 11 Sep 2022 08:38:12 -0500	[thread overview]
Message-ID: <6028bb14-780f-c24c-3e3c-1e5b500e2c46@alphapapa.net> (raw)

[-- 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


             reply	other threads:[~2022-09-11 13:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-11 13:38 Adam Porter [this message]
2022-09-11 14:06 ` [ELPA] CSS improvements 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6028bb14-780f-c24c-3e3c-1e5b500e2c46@alphapapa.net \
    --to=adam@alphapapa.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.