From c635358078a19e09c05a16d8b8ebedf70a471d6b Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:48:03 +0200 Subject: [PATCH 1/4] "new" pill in the ToC (#2394) --- docs/css/navigation.css | 7 +++++++ theme/partials/nav-item.html | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/css/navigation.css b/docs/css/navigation.css index 7e654d43..d622a0e7 100644 --- a/docs/css/navigation.css +++ b/docs/css/navigation.css @@ -133,6 +133,13 @@ padding-bottom: 0.5rem; } +.md-nav__link .pill.new { + margin-right: 15px; + background-color: #d9e8ff; + color: #3562a0; + text-transform: lowercase; +} + .md-nav__link::after { font-weight: 700; } diff --git a/theme/partials/nav-item.html b/theme/partials/nav-item.html index af5e454d..43dffa58 100644 --- a/theme/partials/nav-item.html +++ b/theme/partials/nav-item.html @@ -16,7 +16,7 @@