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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-26 20:14:11 +05:30
|
|
|
.hydrogen:not(.legacy) .spinner circle {
|
2020-04-30 21:58:21 +05:30
|
|
|
transform-origin: 50% 50%;
|
|
|
|
animation-name: spinner;
|
|
|
|
animation-duration: 2s;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-timing-function: linear;
|
2020-08-13 21:29:49 +05:30
|
|
|
stroke-dasharray: 0 0 85 85;
|
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;
|
|
|
|
}
|
|
|
|
|
2020-10-26 20:14:11 +05:30
|
|
|
.hydrogen.legacy .spinner {
|
2020-09-11 14:58:59 +05:30
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2020-10-26 20:14:11 +05:30
|
|
|
.hydrogen.legacy .spinner div {
|
2020-09-11 14:58:59 +05:30
|
|
|
box-sizing: border-box;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
padding: 2px;
|
|
|
|
border: 2px solid currentcolor;
|
|
|
|
border-radius: 50%;
|
2020-10-26 20:14:11 +05:30
|
|
|
animation: legacy-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
2020-09-11 14:58:59 +05:30
|
|
|
border-color: currentcolor transparent transparent transparent;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
}
|
|
|
|
|
2020-10-26 20:14:11 +05:30
|
|
|
.hydrogen.legacy .spinner div:nth-child(1) {
|
2020-09-11 14:58:59 +05:30
|
|
|
animation-delay: -0.45s;
|
|
|
|
}
|
2020-10-26 20:14:11 +05:30
|
|
|
.hydrogen.legacy .spinner div:nth-child(2) {
|
2020-09-11 14:58:59 +05:30
|
|
|
animation-delay: -0.3s;
|
|
|
|
}
|
2020-10-26 20:14:11 +05:30
|
|
|
.hydrogen.legacy .spinner div:nth-child(3) {
|
2020-09-11 14:58:59 +05:30
|
|
|
animation-delay: -0.15s;
|
|
|
|
}
|
|
|
|
|
2020-10-26 20:14:11 +05:30
|
|
|
@keyframes legacy-spinner {
|
2020-09-11 14:58:59 +05:30
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-04-30 21:58:21 +05:30
|
|
|
.spinner {
|
|
|
|
--size: 20px;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
}
|