2020-08-04 15:56:37 -04:00
|
|
|
@keyframes isloadingspin {
|
2020-08-25 15:48:53 -04:00
|
|
|
0% { transform: translate(-50%, -50%) rotate(0deg); }
|
|
|
|
100% { transform: translate(-50%, -50%) rotate(360deg); }
|
2020-08-04 15:56:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.is-loading {
|
2020-08-25 15:48:53 -04:00
|
|
|
pointer-events: none !important;
|
|
|
|
position: relative !important;
|
|
|
|
overflow: hidden !important;
|
2020-08-04 15:56:37 -04:00
|
|
|
}
|
|
|
|
|
2023-06-14 04:01:37 -04:00
|
|
|
.is-loading > * {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
2020-11-10 13:28:07 -05:00
|
|
|
.is-loading::after {
|
2020-08-25 15:48:53 -04:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
2023-06-29 00:16:04 -04:00
|
|
|
height: min(4em, 66.6%);
|
|
|
|
aspect-ratio: 1;
|
2020-08-25 15:48:53 -04:00
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
animation: isloadingspin 500ms infinite linear;
|
|
|
|
border-width: 4px;
|
|
|
|
border-style: solid;
|
2022-10-12 12:26:27 -04:00
|
|
|
border-color: var(--color-secondary) var(--color-secondary) var(--color-secondary-dark-8) var(--color-secondary-dark-8);
|
2020-08-25 15:48:53 -04:00
|
|
|
border-radius: 100%;
|
2020-08-04 15:56:37 -04:00
|
|
|
}
|
|
|
|
|
2023-06-14 04:01:37 -04:00
|
|
|
.is-loading.small-loading-icon::after {
|
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
|
2023-06-29 00:16:04 -04:00
|
|
|
/* for single form button, the loading state should be on the button, but not go semi-transparent, just replace the text on the button with the loader. */
|
|
|
|
form.single-button-form.is-loading > * {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
form.single-button-form.is-loading .button {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
2021-05-07 04:43:41 -04:00
|
|
|
.markup pre.is-loading,
|
2023-05-29 08:10:00 -04:00
|
|
|
.editor-loading.is-loading,
|
|
|
|
.pdf-content.is-loading {
|
2022-02-15 22:28:29 -05:00
|
|
|
height: var(--height-loading);
|
2020-08-04 15:56:37 -04:00
|
|
|
}
|
2021-11-16 03:16:05 -05:00
|
|
|
|
2023-06-19 04:00:18 -04:00
|
|
|
.markup .is-loading > * {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markup .is-loading {
|
|
|
|
color: transparent;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
2023-06-14 04:01:37 -04:00
|
|
|
/* TODO: not needed, use "is-loading small-loading-icon" instead */
|
2022-11-21 04:59:42 -05:00
|
|
|
.btn-octicon.is-loading::after {
|
|
|
|
border-width: 2px;
|
|
|
|
height: 1.25rem;
|
|
|
|
width: 1.25rem;
|
|
|
|
}
|
|
|
|
|
2023-06-14 04:01:37 -04:00
|
|
|
/* TODO: not needed, use "is-loading small-loading-icon" instead */
|
2022-09-13 12:33:37 -04:00
|
|
|
code.language-math.is-loading::after {
|
|
|
|
padding: 0;
|
|
|
|
border-width: 2px;
|
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
}
|
|
|
|
|
2021-11-16 03:16:05 -05:00
|
|
|
@keyframes fadein {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeout {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-05-07 01:35:12 -04:00
|
|
|
|
|
|
|
@keyframes pulse {
|
|
|
|
0% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
transform: scale(1.8);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pulse {
|
|
|
|
animation: pulse 2s linear;
|
|
|
|
}
|