Skip to content

Commit ea118c2

Browse files
committed
Update styles of details, summary and figure
Signed-off-by: Max Wu <jackymaxj@gmail.com>
1 parent 95e9f96 commit ea118c2

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

public/css/markdown.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,22 @@
190190
}
191191

192192
/* Make details boxes look like on GitHub */
193+
.markdown-body summary {
194+
display: list-item;
195+
}
196+
197+
.markdown-body summary:focus {
198+
outline: none;
199+
}
200+
193201
.markdown-body details summary {
194202
cursor: pointer;
195203
}
196204

197-
.markdown-body summary {
198-
display: list-item;
205+
.markdown-body details:not([open]) > *:not(summary) {
206+
display: none;
207+
}
208+
209+
.markdown-body figure {
210+
margin: 1em 40px;
199211
}

0 commit comments

Comments
 (0)