Skip to content

Commit 4939f2e

Browse files
committed
窗口底部添加进度提示条
1 parent f71ddb4 commit 4939f2e

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/assets/styles/app.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,25 @@ starlight-tabs::before {
119119
html.dark .prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *)) {
120120
background-color: rgba(220, 220, 220, 0.13) !important;
121121
color: #f8fafc;
122-
}
122+
}
123+
124+
/* Reading progress bar using modern CSS scroll-driven animations */
125+
@media (min-width: 768px) {
126+
body::before {
127+
content: '';
128+
position: fixed;
129+
bottom: 0;
130+
left: 0;
131+
height: 2px;
132+
background: hsl(var(--primary));
133+
width: 0%;
134+
z-index: 9999;
135+
animation: progress-bar linear;
136+
animation-timeline: scroll(root);
137+
}
138+
}
139+
140+
@keyframes progress-bar {
141+
from { width: 0%; }
142+
to { width: 100%; }
143+
}

src/content/blog/coding/bloom_filter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ai-model:
1212
- gemini-2.5-pro
1313
heroImage:
1414
src: ./attachments/bloom_filter_2.png
15-
color: '#047677'
15+
color: '#faf5e7'
1616
---
1717

1818
import Paper from '@/custom/components/pages/Paper.astro'

0 commit comments

Comments
 (0)