This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/styles/nprogress.css

82 lines
1.5 KiB
CSS
Raw Normal View History

/* Make clicks pass-through */
#nprogress {
2020-08-03 14:14:45 +02:00
pointer-events: none;
}
#nprogress .bar {
2020-08-03 14:14:45 +02:00
background: var(--important);
2020-08-03 14:14:45 +02:00
position: fixed;
z-index: 1031;
top: 0;
left: 0;
2020-08-03 14:14:45 +02:00
width: 100%;
height: 2px;
}
/* Fancy blur effect */
#nprogress .peg {
2020-08-03 14:14:45 +02:00
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px var(--important), 0 0 5px var(--important);
opacity: 1;
2020-08-03 14:14:45 +02:00
-webkit-transform: rotate(3deg) translate(0px, -4px);
-ms-transform: rotate(3deg) translate(0px, -4px);
transform: rotate(3deg) translate(0px, -4px);
}
/* Remove these to get rid of the spinner */
#nprogress .spinner {
2020-08-03 14:14:45 +02:00
display: block;
position: fixed;
z-index: 1031;
top: 15px;
right: 15px;
}
#nprogress .spinner-icon {
2020-08-03 14:14:45 +02:00
width: 18px;
height: 18px;
box-sizing: border-box;
2020-08-03 14:14:45 +02:00
border: solid 2px transparent;
border-top-color: var(--important);
border-left-color: var(--important);
border-radius: 50%;
2020-08-03 14:14:45 +02:00
-webkit-animation: nprogress-spinner 400ms linear infinite;
animation: nprogress-spinner 400ms linear infinite;
}
.nprogress-custom-parent {
2020-08-03 14:14:45 +02:00
overflow: hidden;
position: relative;
}
.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
2020-08-03 14:14:45 +02:00
position: absolute;
}
@-webkit-keyframes nprogress-spinner {
2020-08-03 14:14:45 +02:00
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes nprogress-spinner {
2020-08-03 14:14:45 +02:00
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}