hexo-theme-keep/source/css/layout/_partial/progress-bar.styl

79 lines
1.5 KiB
Stylus
Raw Normal View History

2021-01-06 18:36:28 +08:00
.progress-bar-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: $z-index-9;
if (hexo-config('pjax.enable') == true) {
2021-01-06 18:36:28 +08:00
.pjax-progress-bar {
position: absolute;
top: 0;
left: 0;
height: 2px;
width: 0;
background: var(--pjax-progress-bar-color);
visibility: hidden;
opacity: 0;
z-index: $z-index-8;
2021-01-06 18:36:28 +08:00
transition();
&.show {
transition();
opacity: 1;
visibility: visible;
}
2021-01-06 18:36:28 +08:00
}
.pjax-progress-icon {
position: absolute;
top: 0;
right: 0;
z-index: $z-index-8;
display: flex;
align-items: center;
justify-content: center;
2021-01-11 00:10:59 +08:00
padding: 7px 6px 0 0;
color: var(--default-text-color);
visibility: hidden;
2021-01-11 00:10:59 +08:00
font-size: 1.1rem;
transition();
2021-01-06 23:31:00 +08:00
2021-01-11 00:10:59 +08:00
+keep-tablet() {
padding: 6px 5px 0 0;
font-size: 1rem;
}
&.show {
transition: visibility 0.1s linear;
visibility: visible;
}
2021-01-06 23:31:00 +08:00
}
}
if (hexo-config('style.scroll.progress_bar.enable') == true) {
2021-01-06 18:36:28 +08:00
.scroll-progress-bar {
position: absolute;
top: 0;
left: 0;
width: 0;
height: $scroll-progress-bar-height;
2021-01-06 18:36:28 +08:00
visibility: hidden;
background: var(--primary-color);
transition: all 0.1s ease;
z-index: $z-index-7;
&.hide {
//transition: none;
display: none;
//visibility: hidden !important;
}
2021-01-06 18:36:28 +08:00
}
2021-01-06 18:36:28 +08:00
}
}