From: sirgazil--- via Guix-patches via <guix-patches@gnu.org>
To: 74634@debbugs.gnu.org
Cc: Luis Felipe <sirgazil@zoho.com>
Subject: [bug#74634] [PATCH shepherd website 2/5] logo: Remove jumpy effect on focus.
Date: Sun, 1 Dec 2024 11:19:47 -0500 [thread overview]
Message-ID: <20241201161950.19049-2-sirgazil@zoho.com> (raw)
In-Reply-To: <20241201161950.19049-1-sirgazil@zoho.com>
From: Luis Felipe <sirgazil@zoho.com>
The logo is styled so that it displays vertical borders when focused
(e.g. using tab navigation). Since the logo doesn't have borders in
its initial state, focusing caused the image to move 2 pixels sideways
(the width of the border), which was particularly visible in pages
where the logo is displayed in a smaller size. This change adds a
transparent border to the logo in its initial state to avoid the
problem.
* static/css/main.css (#header a.logo img): New rule.
---
static/css/main.css | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/static/css/main.css b/static/css/main.css
index 0e8d137..c72c87a 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -95,6 +95,12 @@ p + p {
margin-bottom: 1em;
}
+#header a.logo img {
+ border-color: transparent;
+ border-style: solid;
+ border-width: 2px;
+}
+
#header a.logo:focus img {
border-left: 2px dotted #118ab2;
border-right: 2px dotted #118ab2;
--
2.46.0
next prev parent reply other threads:[~2024-12-01 16:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-01 16:10 [bug#74634] [PATCH shepherd website 0/5] Suggested style changes for 1.0.0 release sirgazil--- via Guix-patches via
2024-12-01 16:19 ` [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme sirgazil--- via Guix-patches via
2024-12-01 16:19 ` sirgazil--- via Guix-patches via [this message]
2024-12-01 16:19 ` [bug#74634] [PATCH shepherd website 3/5] logo: Use the same color of the main text sirgazil--- via Guix-patches via
2024-12-01 16:19 ` [bug#74634] [PATCH shepherd website 4/5] logo: Remove SVG margins sirgazil--- via Guix-patches via
2024-12-01 16:19 ` [bug#74634] [PATCH shepherd website 5/5] Avoid some content overflowing horizontally on narrow screens sirgazil--- via Guix-patches via
2024-12-01 16:27 ` [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme Ludovic Courtès
2024-12-01 16:34 ` Luis Felipe via Guix-patches via
2024-12-01 16:28 ` bug#74634: [PATCH shepherd website 0/5] Suggested style changes for 1.0.0 release Ludovic Courtès
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=20241201161950.19049-2-sirgazil@zoho.com \
--to=guix-patches@gnu.org \
--cc=74634@debbugs.gnu.org \
--cc=sirgazil@zoho.com \
/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/guix.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.