Skip to content

Commit 225cef1

Browse files
Remove <details> / <summary> css (#290)
Co-authored-by: Fons van der Plas <[email protected]>
1 parent e37a19a commit 225cef1

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

src/Details.jl

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -37,51 +37,11 @@ const testslider = html"<input>"
3737
# ╔═╡ 13e81634-3b72-4b1d-a89b-36d184698d21
3838
const details_css = @htl("""
3939
<style type="text/css">
40-
pluto-output details {
41-
border: 1px solid var(--rule-color);
42-
border-radius: 4px;
43-
padding: 0.5em 0.5em 0;
44-
margin-block-start: 0;
45-
margin-block-end: var(--pluto-cell-spacing);
46-
}
47-
48-
pluto-output details:first-child {
49-
margin-block-start: 0;
50-
}
51-
52-
pluto-output details:last-child {
53-
margin-block-end: 0;
54-
}
55-
56-
pluto-output details summary {
57-
cursor: pointer;
58-
font-weight: bold;
59-
margin: -0.5em -0.5em 0;
60-
padding: 0.5em;
61-
font-family: var(--system-ui-font-stack);
62-
border-radius: 3px;
63-
transition: color .25s ease-in-out, background-color .25s ease-in-out;
64-
}
65-
66-
pluto-output details summary:hover {
67-
color: var(--blockquote-color);
68-
background-color: var(--blockquote-bg);
69-
}
70-
71-
pluto-output details[open] {
72-
padding: 0.5em;
73-
}
74-
75-
pluto-output details[open] summary {
76-
border-radius: 3px 3px 0 0;
77-
border-bottom: 1px solid var(--rule-color);
78-
margin-bottom: 0.5em;
79-
}
80-
8140
plutoui-detail {
8241
display: block;
8342
margin-block-end: var(--pluto-cell-spacing);
8443
}
44+
8545
plutoui-detail:last-child {
8646
margin-block-end: 0;
8747
}
@@ -207,7 +167,7 @@ begin
207167
- Build **volcanic lair** 🌋
208168
""",
209169
@htl("<p style='font-variant: small-caps'>fantastic!</p>"),
210-
["Cat", "Laser (Pointer) ", "Volcano"],
170+
["Cat", "Laser (Pointer)", "Volcano"],
211171
Dict(
212172
:cat => "Fluffy",
213173
:laser => "Pointy",

0 commit comments

Comments
 (0)