diff options
author | Max Wu | 2018-02-26 21:05:13 +0800 |
---|---|---|
committer | Max Wu | 2018-02-26 21:05:13 +0800 |
commit | ea118c2ec8089fdde95cdbc71d19d05d72d7e673 (patch) | |
tree | 625479956368806296202624c3a7610b3e80745b /public | |
parent | 95e9f96aa0fb8a0112ec3b01f1ad79e1d76224ba (diff) |
Update styles of details, summary and figure
Signed-off-by: Max Wu <jackymaxj@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | public/css/markdown.css | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/public/css/markdown.css b/public/css/markdown.css index 36e45781..eaa9ab5c 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -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; } |