From 122a3e1116911cbca802c6717cd6d7e57dcf2b87 Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Wed, 25 Oct 2023 22:31:30 -0700 Subject: [PATCH] tweak hint/solution CSS --- htdocs/js/Problem/problem.scss | 6 ++++++ macros/core/PGbasicmacros.pl | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/js/Problem/problem.scss b/htdocs/js/Problem/problem.scss index 20c10cf4b2..653b19f411 100644 --- a/htdocs/js/Problem/problem.scss +++ b/htdocs/js/Problem/problem.scss @@ -123,6 +123,12 @@ border: 1px solid black; } } + + /* Hints and Solutions */ + .hint summary, .solution summary { + font-weight: bold; + color: var(--bs-primary); + } } /* rtl:raw: diff --git a/macros/core/PGbasicmacros.pl b/macros/core/PGbasicmacros.pl index 2df5a54fdc..6b28fc53a1 100644 --- a/macros/core/PGbasicmacros.pl +++ b/macros/core/PGbasicmacros.pl @@ -1190,7 +1190,7 @@ sub SOLUTION { class => 'accordion-item', tag( 'summary', - class => 'accordion-button collapsed', + class => 'accordion-button collapsed p-2', tag('div', class => 'accordion-header user-select-none', SOLUTION_HEADING()) ) . tag( @@ -1232,7 +1232,7 @@ sub HINT { class => 'accordion-item', tag( 'summary', - class => 'accordion-button collapsed', + class => 'accordion-button collapsed p-2', tag('div', class => 'accordion-header user-select-none', HINT_HEADING()) ) . tag(