astro-pure 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/pages/BackToTop.astro +2 -3
- package/package.json +1 -1
- package/bunfig.toml +0 -2
|
@@ -5,13 +5,13 @@ const { header: headerName, content: contentName, needPercent = true } = Astro.p
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<div
|
|
8
|
-
class='z-
|
|
8
|
+
class='z-10 group fixed bottom-8 end-4 transition-all flex flex-col gap-y-4 sm:end-8'
|
|
9
9
|
id='action-buttons'
|
|
10
10
|
>
|
|
11
11
|
<slot name='other-icons' />
|
|
12
12
|
<button
|
|
13
13
|
aria-label='Back to Top'
|
|
14
|
-
class='relative
|
|
14
|
+
class='relative size-10 flex items-center justify-center rounded-full border-2 border-transparent bg-muted text-muted-foreground duration-300 hover:border-border/75 sm:size-12 opacity-0'
|
|
15
15
|
id='to-top-btn'
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
@@ -47,7 +47,6 @@ const { header: headerName, content: contentName, needPercent = true } = Astro.p
|
|
|
47
47
|
} else {
|
|
48
48
|
console.error(`Element with ID ${headerName} not found.`)
|
|
49
49
|
}
|
|
50
|
-
|
|
51
50
|
if (needPercent) {
|
|
52
51
|
// scroll percentage
|
|
53
52
|
const scrollHeight = articleElement.scrollHeight // total height
|
package/package.json
CHANGED
package/bunfig.toml
DELETED