Skip to content

Commit

Permalink
Remove <details> / <summary> css (#290)
Browse files Browse the repository at this point in the history
Co-authored-by: Fons van der Plas <[email protected]>
  • Loading branch information
genericallyterrible and fonsp authored Oct 2, 2024
1 parent e37a19a commit 225cef1
Showing 1 changed file with 2 additions and 42 deletions.
44 changes: 2 additions & 42 deletions src/Details.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,51 +37,11 @@ const testslider = html"<input>"
# ╔═╡ 13e81634-3b72-4b1d-a89b-36d184698d21
const details_css = @htl("""
<style type="text/css">
pluto-output details {
border: 1px solid var(--rule-color);
border-radius: 4px;
padding: 0.5em 0.5em 0;
margin-block-start: 0;
margin-block-end: var(--pluto-cell-spacing);
}
pluto-output details:first-child {
margin-block-start: 0;
}
pluto-output details:last-child {
margin-block-end: 0;
}
pluto-output details summary {
cursor: pointer;
font-weight: bold;
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;
}
plutoui-detail {
display: block;
margin-block-end: var(--pluto-cell-spacing);
}
plutoui-detail:last-child {
margin-block-end: 0;
}
Expand Down Expand Up @@ -207,7 +167,7 @@ begin
- Build **volcanic lair** 🌋
""",
@htl("<p style='font-variant: small-caps'>fantastic!</p>"),
["Cat", "Laser (Pointer) ", "Volcano"],
["Cat", "Laser (Pointer)", "Volcano"],
Dict(
:cat => "Fluffy",
:laser => "Pointy",
Expand Down

0 comments on commit 225cef1

Please sign in to comment.