🏗️ First time sync the css & js files from hexo theme NexT
This commit is contained in:
27
assets/css/_common/components/reading-progress.scss
Normal file
27
assets/css/_common/components/reading-progress.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
@if hexo-config('reading_progress.enable') {
|
||||
.reading-progress-bar {
|
||||
--progress: 0;
|
||||
background: convert(hexo-config('reading_progress.color'));
|
||||
height: convert(hexo-config('reading_progress.height'));
|
||||
position: fixed;
|
||||
z-index: $zindex-5;
|
||||
|
||||
@if hexo-config('reading_progress.reversed') {
|
||||
width: calc(100% - var(--progress));
|
||||
} @else {
|
||||
width: var(--progress);
|
||||
}
|
||||
|
||||
@if hexo-config('reading_progress.start_at') == 'right' {
|
||||
right: 0;
|
||||
} @else {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@if hexo-config('reading_progress.position') == 'bottom' {
|
||||
bottom: 0;
|
||||
} @else {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user