Skip to content

Commit

Permalink
Fancy <summary> hover
Browse files Browse the repository at this point in the history
  • Loading branch information
genericallyterrible committed Feb 15, 2024
1 parent 4c6e7c8 commit 0045bab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Details.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,21 @@ pluto-output details summary {
margin: -0.5em -0.5em 0;
padding: 0.5em;
font-family: var(--system-ui-font-stack);
border-radius: 3px;
transition: color .25s ease-in-out, background-color .25s ease-in-out;
}
pluto-output details summary:hover {
color: var(--blockquote-color);
background-color: var(--blockquote-bg);
}
pluto-output details[open] {
padding: 0.5em;
}
pluto-output details[open] summary {
border-radius: 3px 3px 0 0;
border-bottom: 1px solid var(--rule-color);
margin-bottom: 0.5em;
}
Expand Down

0 comments on commit 0045bab

Please sign in to comment.