From 13daf8422cd69e6beee1315e6a0fbc67ea0d4dd0 Mon Sep 17 00:00:00 2001 From: Nicolas Peugnet Date: Sat, 27 Jul 2024 14:55:44 +0200 Subject: [PATCH] =?UTF-8?q?Nouveau=20style=20pour=20les=20d=C3=A9finitions?= =?UTF-8?q?=20de=20commandes=20(#304)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uniquement avec le builder html, pour le moment. --- _static/club1.css | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/_static/club1.css b/_static/club1.css index d14f8b07..b1588510 100644 --- a/_static/club1.css +++ b/_static/club1.css @@ -1,3 +1,8 @@ +/* Define some variables */ +:root { + --color-highlight: #f1c40f; +} + /* Override blockquotes style */ .rst-content blockquote { border-left: #bbb solid 4px; @@ -6,6 +11,21 @@ padding-left: 20px; } +/* Override "commande" terms style (using #force fake id to increase specificity) */ +#force, +dl.commande { + dt { + background: #222; + --color-highlight: #806600 ; + } + dt span { + color: white; + } + dt a { + color: #e7f2fa; + } +} + /* Style links on hover */ a:not(.btn):hover { text-decoration: underline solid 1px !important; @@ -54,8 +74,8 @@ section:target > h5, figure:target figcaption, .target:target, dt:target { - background: #F1C40F !important; - box-shadow: 0 0 0 2px #F1C40F; + background: var(--color-highlight) !important; + box-shadow: 0 0 0 2px var(--color-highlight); } /* Fix navbar scroll until bottom */