aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/default.css3
-rw-r--r--themes/default/layouts/shortcodes/disclose.html4
2 files changed, 5 insertions, 2 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index 691bc58..c4afd21 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -1365,6 +1365,7 @@ profile-box footer p {
}
micro-summary details[data-disclosure] summary {
+ display: inline-block;
margin: 0 -0.25rem 0.5rem -0.25rem;
padding: 0.25rem;
}
@@ -1391,7 +1392,6 @@ micro-summary details[data-disclosure][open] summary:after {
display: inline;
font-size: 85%;
vertical-align: bottom;
- margin-left: 0.25rem;
}
micro-summary details[data-disclosure] summary:hover,
@@ -1820,6 +1820,7 @@ following-list details[data-expand="more"] summary:after,
following-list details[open][data-expand="more"] summary:after {
padding: 0 0.5rem;
font-size: 100%;
+ margin-left: 0.25rem;
}
author-list:hover h1,
diff --git a/themes/default/layouts/shortcodes/disclose.html b/themes/default/layouts/shortcodes/disclose.html
index 7f0f805..5422366 100644
--- a/themes/default/layouts/shortcodes/disclose.html
+++ b/themes/default/layouts/shortcodes/disclose.html
@@ -5,6 +5,8 @@
{{- end -}}
<details data-disclosure="">
- <summary>{{- (or $.Page.Params.title $text) | markdownify -}}</summary>
+ <summary>
+ {{- (or $.Page.Params.title $text) | markdownify }}
+ </summary>
</details>
{{- /* This comment removes trailing newlines and white spaces. */ -}}