LoadingIcon.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. Copyright (C) 2017 Cloudbase Solutions SRL
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. @import '../variables.scss';
  15. $loader-offset: 0.2;
  16. $base-opacity: 0.3;
  17. @keyframes :global(anim) {
  18. 0% {
  19. fill-opacity: $base-opacity;
  20. }
  21. 20% {
  22. fill-opacity: 1.2;
  23. }
  24. 50% {
  25. fill-opacity: 0.5;
  26. }
  27. 100% {
  28. fill-opacity: 0;
  29. }
  30. }
  31. .root {
  32. text-align: center;
  33. padding: 16px;
  34. :global {
  35. #loadingIcon {
  36. bottom: 10%;
  37. width: 100%;
  38. height: 100%;
  39. path {
  40. animation: anim 2.1s ease-out infinite;
  41. }
  42. #Fill-1 { animation-delay: 0s; fill-opacity: $base-opacity;}
  43. #Fill-2 { animation-delay: -0.1s; fill-opacity: $base-opacity; }
  44. #Fill-3 { animation-delay: -0.2s; fill-opacity: $base-opacity;}
  45. #Fill-4 { animation-delay: -0.3s; fill-opacity: $base-opacity;}
  46. #Fill-5 { animation-delay: -0.4s; fill-opacity: $base-opacity;}
  47. #Fill-6 { animation-delay: -0.5s; fill-opacity: $base-opacity;}
  48. #Fill-7 { animation-delay: -0.6s; fill-opacity: $base-opacity;}
  49. #Fill-8 { animation-delay: -0.7s; fill-opacity: $base-opacity;}
  50. #Fill-9 { animation-delay: -0.8s; fill-opacity: $base-opacity;}
  51. #Fill-10 { animation-delay: -0.9s; fill-opacity: $base-opacity;}
  52. #Fill-11 { animation-delay: -1s; fill-opacity: $base-opacity;}
  53. }
  54. .noAnimation {
  55. #loadingIcon {
  56. path {
  57. animation: none;
  58. }
  59. #Fill-1 { animation-delay: 0s; fill-opacity: 1;}
  60. #Fill-2 { animation-delay: -0.1s; fill-opacity: 1; }
  61. #Fill-3 { animation-delay: -0.2s; fill-opacity: 1;}
  62. #Fill-4 { animation-delay: -0.3s; fill-opacity: 1;}
  63. #Fill-5 { animation-delay: -0.4s; fill-opacity: 1;}
  64. #Fill-6 { animation-delay: -0.5s; fill-opacity: 1;}
  65. #Fill-7 { animation-delay: -0.6s; fill-opacity: 1;}
  66. #Fill-8 { animation-delay: -0.7s; fill-opacity: 1;}
  67. #Fill-9 { animation-delay: -0.8s; fill-opacity: 1;}
  68. #Fill-10 { animation-delay: -0.9s; fill-opacity: 1;}
  69. #Fill-11 { animation-delay: -1s; fill-opacity: 1;}
  70. }
  71. }
  72. }
  73. .text {
  74. font-size: 18px;
  75. text-align: center;
  76. margin-top: 16px;
  77. }
  78. }