spinner.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. outline: none;
  18. }
  19. .jp-SpinnerContent {
  20. font-size: 10px;
  21. margin: 50px auto;
  22. text-indent: -9999em;
  23. width: 3em;
  24. height: 3em;
  25. border-radius: 50%;
  26. background: var(--jp-brand-color3);
  27. background: linear-gradient(
  28. to right,
  29. #f37626 10%,
  30. rgba(255, 255, 255, 0) 42%
  31. );
  32. position: relative;
  33. animation: load3 1s infinite linear, fadeIn 1s;
  34. }
  35. .jp-SpinnerContent:before {
  36. width: 50%;
  37. height: 50%;
  38. background: #f37626;
  39. border-radius: 100% 0 0 0;
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. content: '';
  44. }
  45. .jp-SpinnerContent:after {
  46. background: var(--jp-layout-color0);
  47. width: 75%;
  48. height: 75%;
  49. border-radius: 50%;
  50. content: '';
  51. margin: auto;
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. bottom: 0;
  56. right: 0;
  57. }
  58. @keyframes fadeIn {
  59. 0% {
  60. opacity: 0;
  61. }
  62. 100% {
  63. opacity: 1;
  64. }
  65. }
  66. @keyframes load3 {
  67. 0% {
  68. transform: rotate(0deg);
  69. }
  70. 100% {
  71. transform: rotate(360deg);
  72. }
  73. }