From 2b704bf77508143bb2aab7710ef45983c3098e0b Mon Sep 17 00:00:00 2001 From: Knah-Tsaeb Date: Fri, 6 Dec 2024 12:13:25 +0100 Subject: [PATCH] Remove sticky TOC and add "go top" link Better posts view on smartphone --- public/assets/css/app.css | 20 +++++++++++++++++++- template/default/bone.php | 2 +- template/default/footer.php | 1 + 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/public/assets/css/app.css b/public/assets/css/app.css index 5937a39..459cf1c 100644 --- a/public/assets/css/app.css +++ b/public/assets/css/app.css @@ -363,7 +363,6 @@ article { background-color: var(--background-secondary-color); border: 1px solid var(--primary-lighten); border-radius: calc(var(--default-space) * 1.2); - position: sticky; top: calc(var(--default-space) * 2); font-size: 1.1rem; z-index: 1; @@ -407,6 +406,18 @@ pre { padding: calc(var(--default-space) * 4); } +#backtop { + bottom: 0; + border-radius: 4px; + background-color: var(--primary); + color: var(--text-color-secondary); + display: block; + margin: .5%; + padding: 1rem 4rem; + position: fixed; + right: 0; +} + /* Smaller than 992px */ @media (max-width: 992px) { @@ -442,6 +453,13 @@ pre { .last-pics { grid-area: 6 / 1 / 7 / 2; } + + .blog { + .card { + box-shadow: none; + width: 100%; + } + } } /* Larger than 992px */ diff --git a/template/default/bone.php b/template/default/bone.php index a07fa52..89b7abc 100644 --- a/template/default/bone.php +++ b/template/default/bone.php @@ -1,7 +1,7 @@ - + diff --git a/template/default/footer.php b/template/default/footer.php index 6b42f2e..02679b4 100644 --- a/template/default/footer.php +++ b/template/default/footer.php @@ -1,3 +1,4 @@ +Top