gitlink_help_center/src/components/ReadingProgress/index.module.css

45 lines
868 B
CSS

.wrapper {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
height: 3px;
background: rgba(70, 106, 255, 0.1);
}
.progressBar {
height: 3px;
background: linear-gradient(90deg, #466aff, #6b8aff);
transition: width 0.1s ease-out;
box-shadow: 0 0 4px rgba(70, 106, 255, 0.4);
}
.percent {
position: fixed;
top: 6px;
right: 12px;
font-size: 12px;
font-weight: 600;
color: #466aff;
background: rgba(255, 255, 255, 0.9);
padding: 2px 6px;
border-radius: 4px;
line-height: 1;
transition: opacity 0.2s;
}
html[data-theme='dark'] .wrapper {
background: rgba(91, 122, 255, 0.15);
}
html[data-theme='dark'] .progressBar {
background: linear-gradient(90deg, #5b7aff, #8aa5ff);
box-shadow: 0 0 6px rgba(91, 122, 255, 0.5);
}
html[data-theme='dark'] .percent {
color: #8aa5ff;
background: rgba(30, 30, 40, 0.9);
}