2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:map';
|
2019-01-02 00:11:47 +01:00
|
|
|
// Loading mask: overlays a certain area with a loading spinner and a faded out cover to prevent interaction
|
|
|
|
.loading-mask {
|
|
|
|
&.loading {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
top: -5px;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: -5px;
|
2019-01-02 00:11:47 +01:00
|
|
|
bottom: -5px;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: -5px;
|
2019-01-02 00:11:47 +01:00
|
|
|
z-index: 1;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.white-50');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2022-03-07 18:06:19 +01:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 1.875rem;
|
|
|
|
height: 1.875rem;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 50%;
|
2019-01-02 00:11:47 +01:00
|
|
|
top: 50%;
|
2021-11-05 19:54:34 +01:00
|
|
|
animation: spin-wag 0.5s infinite linear;
|
2022-03-07 18:06:19 +01:00
|
|
|
mask-image: url('#{$images-root}icons/spinner.svg');
|
|
|
|
mask-repeat: no-repeat;
|
2019-01-02 00:11:47 +01:00
|
|
|
z-index: 2;
|
2023-04-19 07:58:14 +02:00
|
|
|
background: theme('colors.surface-button-default');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|