From f92bd9b4ebbd3472a1e0f7f84438633498800fbe Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Wed, 16 Mar 2022 23:15:18 -0500 Subject: [PATCH] Style: Make Contents more clickable & discoverable on desktop & mobile --- pep_sphinx_extensions/pep_theme/static/mq.css | 5 +++++ pep_sphinx_extensions/pep_theme/static/style.css | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/pep_sphinx_extensions/pep_theme/static/mq.css b/pep_sphinx_extensions/pep_theme/static/mq.css index dd6a02cb2ac..aad55e31aa2 100644 --- a/pep_sphinx_extensions/pep_theme/static/mq.css +++ b/pep_sphinx_extensions/pep_theme/static/mq.css @@ -62,6 +62,11 @@ float: left; margin-right: 2%; } + /* Make Contents more visible on mobile */ + details > summary { + font-size: 1rem; + width: max-content; + } } @media (min-width: 60em) { section#pep-page-section > article { diff --git a/pep_sphinx_extensions/pep_theme/static/style.css b/pep_sphinx_extensions/pep_theme/static/style.css index 54ab534a64b..6429362bf46 100644 --- a/pep_sphinx_extensions/pep_theme/static/style.css +++ b/pep_sphinx_extensions/pep_theme/static/style.css @@ -121,7 +121,13 @@ pre { /* Contents rules */ details > summary { + cursor: pointer; + font-size: 1.6rem; font-weight: bold; + margin-bottom: 1em; +} +details > summary:hover { + text-decoration: underline; } /* Definition list rules */