diff --git a/sass/_article.scss b/sass/_article.scss index ddf0144..3eee0b4 100644 --- a/sass/_article.scss +++ b/sass/_article.scss @@ -32,7 +32,7 @@ } } -#floating-buttons { +#buttons-container { display: flex; position: fixed; flex-direction: column; @@ -41,7 +41,10 @@ inset-inline-end: 1rem; @media only screen and (max-width: 720px) { - display: none; + position: static; + flex-direction: row-reverse; + align-items: flex-end; + margin-block-start: 2rem; } #toc summary, @@ -80,7 +83,7 @@ background-color: transparent; padding: 0; - &[open] summary ~ * { + &[open] summary~* { transform-origin: bottom right; animation: toc-dropdown-open var(--transition); @@ -123,6 +126,7 @@ display: flex; position: absolute; flex-direction: column; + z-index: 1; backdrop-filter: var(--blur); inset-block-end: 0; inset-inline-end: 3rem; diff --git a/sass/_comments.scss b/sass/_comments.scss index d5d30dc..54bc73a 100644 --- a/sass/_comments.scss +++ b/sass/_comments.scss @@ -58,7 +58,6 @@ display: flex; flex-direction: column; gap: 2rem; - margin-block-start: 2rem; #comments-status { margin-block-start: 0; @@ -80,6 +79,10 @@ column-gap: 1rem; justify-items: start; + &:first-child { + margin-block-start: 2rem; + } + &.comment-reply { position: relative; border-radius: 0.25rem; diff --git a/templates/article.html b/templates/article.html index 0ad558f..c272578 100644 --- a/templates/article.html +++ b/templates/article.html @@ -45,8 +45,6 @@ {%- include "partials/statements.html" -%} - {%- include "partials/toc.html" -%} - {{ page.content | safe }} @@ -54,25 +52,7 @@ {% include "partials/comments.html" %} {%- endif -%} -{%- if page.lower or page.higher -%} -