mirror of
https://github.com/spark-store-project/spark-store-abyss
synced 2025-12-18 21:31:38 +08:00
feat: 优化关于页面指示器的透明度和样式
This commit is contained in:
@@ -121,17 +121,12 @@ function scrollIntoView(id: string) {
|
|||||||
</h2>
|
</h2>
|
||||||
<Icon
|
<Icon
|
||||||
name="s:about-indicator"
|
name="s:about-indicator"
|
||||||
class="absolute left-3 bottom-0 w-20 h-[auto]! s-color-primary-100 dark:s-color-primary-500 dark:opacity-50"
|
class="absolute left-3 bottom-0 w-20 h-[auto]! s-color-primary-100 opacity-[calc(2*var(--s-opacity))] dark:s-color-primary-500 dark:opacity-[calc(0.38*var(--s-opacity))]"
|
||||||
mode="svg"
|
mode="svg"
|
||||||
:style="{
|
:style="{
|
||||||
translate: `calc(${40 * (sProgress - 1)} * var(--spacing)) 0`,
|
translate: `calc(${40 * (sProgress - 1)} * var(--spacing)) 0`,
|
||||||
opacity: sDark
|
'--s-opacity':
|
||||||
? (range(0, 0.5, sProgress - 0.5) -
|
range(0, 0.5, sProgress - 0.5) - range(0, 0.5, sProgress - 6.5),
|
||||||
range(0, 0.5, sProgress - 6.5)) *
|
|
||||||
0.38
|
|
||||||
: (range(0, 0.5, sProgress - 0.5) -
|
|
||||||
range(0, 0.5, sProgress - 6.5)) *
|
|
||||||
2,
|
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user