fix: scroll-to-top visible class + reading progress dark mode
- Wire visible state to className in ScrollToTop component - Replace hard-coded rgba with color-mix() for theme-aware background - Dark mode reading progress uses 15% ink color mix
This commit is contained in:
@@ -396,16 +396,13 @@ html.dark code[data-theme*=" "] span {
|
||||
|
||||
/* === Reading progress vertical bar === */
|
||||
.reading-progress {
|
||||
position: fixed;
|
||||
right: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 3px;
|
||||
height: 60px;
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
border-radius: 2px;
|
||||
z-index: 9998;
|
||||
overflow: hidden;
|
||||
position: fixed; right: 12px; top: 50%; transform: translateY(-50%);
|
||||
width: 3px; height: 60px;
|
||||
background: color-mix(in oklch, var(--color-ink) 8%, transparent);
|
||||
border-radius: 2px; z-index: 9998; overflow: hidden;
|
||||
}
|
||||
.dark .reading-progress {
|
||||
background: color-mix(in oklch, var(--color-ink) 15%, transparent);
|
||||
}
|
||||
.reading-progress-fill {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user