Update styles of details, summary and figure
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
95e9f96aa0
commit
ea118c2ec8
1 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue