Skip to content

Commit fb6a24e

Browse files
authored
remove unused parts
1 parent f7e4fd4 commit fb6a24e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1301
-2963
lines changed

.astro/data-store.json

Lines changed: 777 additions & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"preview": "astro preview",
1313
"astro": "astro",
1414
"type-check": "tsc --noEmit --isolatedDeclarations",
15-
"new-post": "node scripts/new-post.js",
1615
"format": "biome format --write ./src",
1716
"lint": "biome check --write ./src"
1817
},

src/components/ArchivePanel.svelte

Lines changed: 0 additions & 157 deletions
This file was deleted.

src/components/Navbar.astro

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ import TranslateButton from "./widget/TranslateButton.svelte";
1414
1515
const className = Astro.props.class;
1616
17-
// 获取导航栏透明模式配置 - 根据当前壁纸模式读取正确的配置
18-
const navbarTransparentMode = getNavbarTransparentModeForWallpaperMode(
19-
siteConfig.wallpaper.mode,
20-
);
21-
2217
// 检查是否为首页
2318
const isHomePage = Astro.url.pathname === "/" || Astro.url.pathname === "";
2419
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.back-to-top-wrapper
2+
width: 3.57rem
3+
height: 3.57rem
4+
position: absolute
5+
right: 0
6+
top: 0
7+
pointer-events: none
8+
9+
.back-to-top-btn
10+
color: var(--primary)
11+
font-size: 2.25rem
12+
font-weight: bold
13+
border: none
14+
position: fixed
15+
bottom: 9.9rem
16+
opacity: 1
17+
right: 5.31rem
18+
cursor: pointer
19+
transform: translateX(5rem)
20+
pointer-events: auto
21+
transition: box-shadow 1s ease-in-out
22+
23+
i
24+
font-size: 1.75rem
25+
26+
&.hide
27+
transform: translateX(5rem) scale(0.9)
28+
opacity: 0
29+
pointer-events: none
30+
31+
&:active
32+
transform: translateX(5rem) scale(0.9)
33+
34+
// Desktop
35+
@media (max-width: 1560px)
36+
.back-to-top-btn
37+
box-shadow:
38+
0 0 0 1px var(--btn-regular-bg),
39+
0 0 1em var(--btn-regular-bg);
40+
41+
// Mobile
42+
@media (max-width: 768px)
43+
.back-to-top-wrapper
44+
display: none

src/components/misc/AnimationTest.astro

Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#display-setting
2+
input[type="range"]
3+
-webkit-appearance none
4+
height 1.5rem
5+
background-image var(--color-selection-bar)
6+
transition background-image 0.15s ease-in-out
7+
8+
/* Input Thumb */
9+
&::-webkit-slider-thumb
10+
-webkit-appearance none
11+
height 1rem
12+
width 0.5rem
13+
border-radius 0.125rem
14+
background rgba(255, 255, 255, 0.7)
15+
box-shadow none
16+
&:hover
17+
background rgba(255, 255, 255, 0.8)
18+
&:active
19+
background rgba(255, 255, 255, 0.6)
20+
21+
&::-moz-range-thumb
22+
-webkit-appearance none
23+
height 1rem
24+
width 0.5rem
25+
border-radius 0.125rem
26+
border-width 0
27+
background rgba(255, 255, 255, 0.7)
28+
box-shadow none
29+
&:hover
30+
background rgba(255, 255, 255, 0.8)
31+
&:active
32+
background rgba(255, 255, 255, 0.6)
33+
34+
&::-ms-thumb
35+
-webkit-appearance none
36+
height 1rem
37+
width 0.5rem
38+
border-radius 0.125rem
39+
background rgba(255, 255, 255, 0.7)
40+
box-shadow none
41+
&:hover
42+
background rgba(255, 255, 255, 0.8)
43+
&:active
44+
background rgba(255, 255, 255, 0.6)

0 commit comments

Comments
 (0)