spinner.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) 2017, Jupyter Development Team.
  3. |
  4. | Distributed under the terms of the Modified BSD License.
  5. |----------------------------------------------------------------------------*/
  6. .jp-Spinner {
  7. position: absolute;
  8. display: flex;
  9. justify-content: center;
  10. align-items: center;
  11. z-index: 10;
  12. left: 0;
  13. top: 0;
  14. width: 100%;
  15. height: 100%;
  16. background: var(--jp-layout-color0);
  17. }
  18. .jp-SpinnerContent {
  19. font-size: 10px;
  20. margin: 50px auto;
  21. text-indent: -9999em;
  22. width: 3em;
  23. height: 3em;
  24. border-radius: 50%;
  25. background: var(--jp-brand-color3);
  26. background: linear-gradient(to right, #F37626 10%, rgba(255, 255, 255, 0) 42%);
  27. position: relative;
  28. animation: load3 1.0s infinite linear, fadeIn 1.0s;
  29. }
  30. .jp-SpinnerContent:before {
  31. width: 50%;
  32. height: 50%;
  33. background: #F37626;
  34. border-radius: 100% 0 0 0;
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. content: '';
  39. }
  40. .jp-SpinnerContent:after {
  41. background: var(--jp-layout-color0);
  42. width: 75%;
  43. height: 75%;
  44. border-radius: 50%;
  45. content: '';
  46. margin: auto;
  47. position: absolute;
  48. top: 0;
  49. left: 0;
  50. bottom: 0;
  51. right: 0;
  52. }
  53. @keyframes fadeIn {
  54. 0% {
  55. opacity: 0;
  56. }
  57. 100% {
  58. opacity: 1.;
  59. }
  60. }
  61. @keyframes load3 {
  62. 0% {
  63. transform: rotate(0deg);
  64. }
  65. 100% {
  66. transform: rotate(360deg);
  67. }
  68. }