diff options
author | tdro <tdro@noreply.example.com> | 2023-10-17 18:54:19 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-10-17 18:54:19 -0400 |
commit | a985ccf460d163a31941771d7e04e0f37981afd6 (patch) | |
tree | 9fd26b8108cb8669e9685ed5cbd2c80bfb38eef3 | |
parent | d0cd07b12c2c88f7f956bc3d1d8a2dd6177fc388 (diff) | |
download | canory-a985ccf460d163a31941771d7e04e0f37981afd6.tar.gz canory-a985ccf460d163a31941771d7e04e0f37981afd6.tar.bz2 canory-a985ccf460d163a31941771d7e04e0f37981afd6.zip |
themes/default/layouts/shortcodes/disclose: Inline block
-rw-r--r-- | assets/css/default.css | 3 | ||||
-rw-r--r-- | themes/default/layouts/shortcodes/disclose.html | 4 |
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. */ -}} |