Yocto Project Documentation
 help / color / mirror / Atom feed
From: Antonin Godard <antonin.godard@bootlin.com>
To: docs@lists.yoctoproject.org
Cc: Antonin Godard <antonin.godard@bootlin.com>,
	 Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [PATCH 4/8] sphinx-static/theme_overrides.css: customize tags appearance
Date: Wed, 28 Oct 2026 09:04:56 +0100	[thread overview]
Message-ID: <20261028-tags-v1-4-d5ad01019eae@bootlin.com> (raw)
In-Reply-To: <20261028-tags-v1-0-d5ad01019eae@bootlin.com>

Customize the tags appearance so that they match our color theme. This
is a customization of the sphinx-design badges CSS the sphinx-tags
extension makes use of when badges are enabled.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/sphinx-static/theme_overrides.css | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/documentation/sphinx-static/theme_overrides.css b/documentation/sphinx-static/theme_overrides.css
index 3823db820..4fe701dc7 100644
--- a/documentation/sphinx-static/theme_overrides.css
+++ b/documentation/sphinx-static/theme_overrides.css
@@ -140,6 +140,29 @@ section#welcome-to-the-yocto-project-documentation p.caption {
     border-radius: 0 0 4px 4px;
 }
 
+/* Custom sphinx-design badge */
+.sd-badge {
+    display: inline-block;
+    padding: .35em .65em;
+    font-size: .75em;
+    font-weight: 700;
+    line-height: 1;
+    text-align: center;
+    white-space: nowrap;
+    vertical-align: baseline;
+    border-radius: .25rem;
+    color: #00557d !important;
+    background-color: #fcfcfc;
+    border-color: #00557d;
+    border-width: 1px;
+    border-style: solid;
+}
+
+/* Remove the underline from the link in the badge */
+a.sd-badge {
+    text-decoration: none;
+}
+
 @media screen {
     .wy-nav-content {
        max-width: 1000px;

-- 
2.55.0


  parent reply	other threads:[~2026-10-28  8:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28  8:04 [PATCH 0/8] Add support for documentation tags Antonin Godard
2026-10-28  8:04 ` [PATCH 1/8] Pipfile: update dependencies for sphinx-tags Antonin Godard
2026-10-28  8:04 ` [PATCH 2/8] tools/host_packages_scripts/pip3_docs.sh: update " Antonin Godard
2026-10-28  8:04 ` [PATCH 3/8] conf.py: enable the sphinx-tags extension Antonin Godard
2026-10-28  8:04 ` Antonin Godard [this message]
2026-10-28  8:04 ` [PATCH 5/8] Makefile: use splithtml tag for html target Antonin Godard
2026-10-28  8:04 ` [PATCH 6/8] docs-wide: tag sections Antonin Godard
2026-10-28  8:04 ` [PATCH 7/8] index.rst: link to the tags overview page for splithtml Antonin Godard
2026-10-28  8:05 ` [PATCH 8/8] standards.md: add note about document tags Antonin Godard

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=20261028-tags-v1-4-d5ad01019eae@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=thomas.petazzoni@bootlin.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox