This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the look of the spinner (#6083)
- Loading branch information
1 parent
73731cc
commit f643839
Showing
5 changed files
with
32 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* | ||
Copyright 2015, 2016 OpenMarket Ltd | ||
Copyright 2021 Šimon Brandner <[email protected]> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
@@ -37,8 +38,28 @@ limitations under the License. | |
} | ||
|
||
.mx_Spinner_icon { | ||
background-color: $primary-content; | ||
mask: url('$(res)/img/spinner.svg'); | ||
mask-size: contain; | ||
animation: 1.1s steps(12, end) infinite spin; | ||
background-color: $quinary-content; | ||
mask: url('$(res)/img/spinner/spinner-background.svg'); | ||
mask-size: 100%; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
width: 100%; | ||
height: 100%; | ||
|
||
&::before { | ||
background-color: $secondary-content; | ||
mask: url('$(res)/img/spinner/spinner-foreground.svg'); | ||
mask-size: 100%; | ||
|
||
width: 100%; | ||
height: 100%; | ||
|
||
content: ""; | ||
display: flex; | ||
|
||
animation: 1s linear spin infinite; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.