0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/client/scss/components/_loading-mask.scss
Thibaud Colas 7129ccefc9 Remove logical properties compatibility styles for Safari 13
- update caniuse-db & browserslist
- resolves #8124
2022-05-11 21:41:15 +10:00

38 lines
819 B
SCSS

@use 'sass:map';
// 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;
inset-inline-start: -5px;
bottom: -5px;
inset-inline-end: -5px;
z-index: 1;
background-color: rgba(255, 255, 255, 0.5);
}
&:after {
content: '';
display: block;
width: 1.875rem;
height: 1.875rem;
inset-inline-start: 50%;
top: 50%;
animation: spin-wag 0.5s infinite linear;
mask-image: url('#{$images-root}icons/spinner.svg');
mask-repeat: no-repeat;
z-index: 2;
background: $color-teal;
}
}
}