feat(frontend_nuxt): wire up nprogress plugin

This commit is contained in:
Tim
2025-08-08 15:05:33 +08:00
parent af9028190d
commit af2cf99041
4 changed files with 56 additions and 0 deletions

View File

@@ -273,4 +273,34 @@ body {
position: relative;
min-width: 0;
}
}
/* NProgress styles */
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: var(--primary-color);
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 3px;
}
#nprogress .peg {
display: block;
position: absolute;
right: 0;
width: 100px;
height: 100%;
box-shadow: 0 0 10px var(--primary-color), 0 0 5px var(--primary-color);
opacity: 1;
transform: rotate(3deg) translate(0px, -4px);
}
#nprogress .spinner {
display: none;
}