Update styles of details, summary and figure

Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
Max Wu 2018-02-26 21:05:13 +08:00
parent 95e9f96aa0
commit ea118c2ec8

View file

@ -190,10 +190,22 @@
}
/* Make details boxes look like on GitHub */
.markdown-body summary {
display: list-item;
}
.markdown-body summary:focus {
outline: none;
}
.markdown-body details summary {
cursor: pointer;
}
.markdown-body summary {
display: list-item;
.markdown-body details:not([open]) > *:not(summary) {
display: none;
}
.markdown-body figure {
margin: 1em 40px;
}