/* Sigma-9 动画化 */
/* Sigma-9 animated by Blanxers_lwwl14 */
/*================*/
/*网站标题*/
:where(#header > :nth-child(1)) {
animation-name: main-title;
animation-duration: 2s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
@keyframes main-title {
0% {
opacity: 0;
transform:translate(0,-20px);
}
100% {
opacity: 1;
transform:translate(0,0);
}
}
:where(#header > :nth-child(2)) {
animation-name: sub-title;
animation-duration: 2s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
@keyframes sub-title {
0% {
opacity: 0;
transform:translate(0,20px);
}
100% {
opacity: 1;
transform:translate(0,0);
}
}
/*=========================*/
/*隐藏搜索输入框,因为没用。*/
#search-top-box-input { display: none !important;}
/*=========================*/
/*搜索*/
#search-top-box-form input[type=submit] {
animation-name: search-top-box;
animation-duration: 1s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
@keyframes search-top-box {
0% {
transform: scale(0,0);
}
100% {
transform: scale(1,1);
}
}
/*=======================*/
/*用户*/
#login-status {
animation-name: login-status;
animation-duration: 2s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
@keyframes login-status {
0% {
transform: translate(0,-30px) rotate3d(1,0,0,90deg);
}
100% {
transform: translate(0,0) rotate3d(1,0,0,0deg);
}
}
/*==================*/
/*顶栏*/
.top-bar,
.mobile-top-bar>ul {
animation-name: top-bar;
animation-duration: 2s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
@keyframes top-bar {
0% {
transform: rotate3d(1,0,0,90deg);
}
100% {
transform: rotate3d(1,0,0,0deg);
}
}
/*=================*/
/*页面内容渐显*/
/*代码来自 渐显 组件*/
:where(:root) {
--fade-in: fadeIn;
--fade-in-delay: 0.25s;
}
/* 中心页禁用,因为读者可能想从页面顶部以外的其他地方开始阅读 */
:root:has(#page-tags a[href*=中心]),
/* 带有目录的页面禁用,因为用户可能会直接跳转到他们想要开始阅读的地方 */
:root:has(#toc) {
--fade-in: none !important;
}
@media (prefers-reduced-motion: no-preference) {
:where(#page-title, #breadcrumbs, #page-content > *) {
animation-name: var(--fade-in);
animation-duration: 0.8s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
}
:where(#page-title) { animation-delay: 0s; }
@keyframes fadeIn {
from {
opacity: 0;
transform: translate(0,30px);
}
to {
opacity: 1;
transform: translate(0,0);
}
}
:where(#page-content > :nth-child(1)) { animation-delay: calc(1 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(2)) { animation-delay: calc(2 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(3)) { animation-delay: calc(3 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(4)) { animation-delay: calc(4 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(5)) { animation-delay: calc(5 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(6)) { animation-delay: calc(6 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(7)) { animation-delay: calc(7 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(8)) { animation-delay: calc(8 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(9)) { animation-delay: calc(9 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(10)) { animation-delay: calc(10 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(11)) { animation-delay: calc(11 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(12)) { animation-delay: calc(12 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(13)) { animation-delay: calc(13 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(14)) { animation-delay: calc(14 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(15)) { animation-delay: calc(15 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(16)) { animation-delay: calc(16 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(17)) { animation-delay: calc(17 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(18)) { animation-delay: calc(18 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(19)) { animation-delay: calc(19 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(20)) { animation-delay: calc(20 * var(--fade-in-delay)); }
:where(#page-content > :nth-child(n+20)) { animation-delay: calc(21 * var(--fade-in-delay)); }