Skip to content

Commit

Permalink
Style: Make Contents more clickable & discoverable on desktop & mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Mar 17, 2022
1 parent 93cec69 commit f92bd9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pep_sphinx_extensions/pep_theme/static/mq.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f92bd9b

Please sign in to comment.