2020-08-05 22:08:55 +05:30
|
|
|
/*
|
|
|
|
Copyright 2020 Bruno Windels <bruno@windels.cloud>
|
2020-08-12 15:22:03 +05:30
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
2020-08-05 22:08:55 +05:30
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2020-04-30 21:58:21 +05:30
|
|
|
@keyframes spinner {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0);
|
|
|
|
stroke-dasharray: 0 0 10 90;
|
|
|
|
}
|
|
|
|
45% {
|
|
|
|
stroke-dasharray: 0 0 90 10;
|
|
|
|
}
|
|
|
|
75% {
|
|
|
|
stroke-dasharray: 0 50 50 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
stroke-dasharray: 10 90 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner circle {
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
animation-name: spinner;
|
|
|
|
animation-duration: 2s;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-timing-function: linear;
|
2020-08-12 15:22:03 +05:30
|
|
|
/**
|
|
|
|
* TODO
|
|
|
|
* see if with IE11 we can just set a static stroke state and make it rotate?
|
|
|
|
*/
|
2020-08-13 21:29:49 +05:30
|
|
|
stroke-dasharray: 0 0 85 85;
|
2020-08-12 15:22:03 +05:30
|
|
|
|
2020-04-30 21:58:21 +05:30
|
|
|
fill: none;
|
|
|
|
stroke: currentcolor;
|
2020-05-07 03:01:22 +05:30
|
|
|
stroke-width: 12;
|
2020-04-30 21:58:21 +05:30
|
|
|
stroke-linecap: butt;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
--size: 20px;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
}
|