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

69 lines
1.1 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;
2021-01-08 16:07:54 +08:00
.pjax-progress-bar {
2021-01-06 18:36:28 +08:00
position: absolute;
top: 0;
left: 0;
2021-01-08 16:07:54 +08:00
height: 2px;
2021-01-06 18:36:28 +08:00
width: 0;
2021-01-08 16:07:54 +08:00
background: var(--pjax-progress-bar-color);
2021-01-06 18:36:28 +08:00
visibility: hidden;
opacity: 0;
z-index: $z-index-8;
transition();
&.show {
transition();
opacity: 1;
visibility: visible;
}
}
2021-01-08 16:07:54 +08:00
.pjax-progress-icon {
2021-01-06 23:31:00 +08:00
position: absolute;
top: 0;
right: 0;
z-index: $z-index-8;
display: flex;
align-items: center;
justify-content: center;
padding: 8px 8px 0 0;
color: var(--default-text-color);
visibility: hidden;
transition();
&.show {
transition: visibility 0.1s linear;
visibility: visible;
}
i {
font-size: 1.12rem;
}
}
2021-01-06 18:36:28 +08:00
.scroll-progress-bar {
position: absolute;
top: 0;
left: 0;
width: 0;
height: $scroll-progress-bar-height;
visibility: hidden;
background: var(--primary-color);
transition: all 0.1s ease;
z-index: $z-index-7;
&.hide {
transition: none;
visibility: hidden;
}
}
}