splash.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) 2014-2016, Jupyter Development Team.
  3. |
  4. | Distributed under the terms of the Modified BSD License.
  5. |----------------------------------------------------------------------------*/
  6. #jupyterlab-splash {
  7. z-index: 10;
  8. position: absolute;
  9. overflow: hidden;
  10. width: 100%;
  11. height: 100%;
  12. background-position: center 40%;
  13. background-repeat: no-repeat;
  14. background-size: cover;
  15. }
  16. #jupyterlab-splash.light {
  17. background-color: white;
  18. }
  19. #jupyterlab-splash.dark {
  20. background-color: var(--md-grey-900);
  21. }
  22. .splash-fade {
  23. animation: 0.5s fade-out forwards;
  24. }
  25. #galaxy {
  26. position: relative;
  27. width: 100%;
  28. height: 100%;
  29. }
  30. #main-logo {
  31. background-image: url('./images/jupyter-favicon.svg');
  32. background-repeat: no-repeat;
  33. background-size: 100px;
  34. position: absolute;
  35. background-position: center;
  36. width: 100%;
  37. height: 100%;
  38. z-index: 1;
  39. animation: 0.3s fade-in linear forwards;
  40. }
  41. .planet {
  42. background-repeat: no-repeat;
  43. background-size: cover;
  44. animation-iteration-count: infinite;
  45. animation-name: orbit;
  46. }
  47. #moon1.orbit {
  48. opacity: 1;
  49. animation: orbit 2s ease;
  50. width: 200px;
  51. height: 140px;
  52. margin-top: -53px;
  53. margin-left: -54px;
  54. }
  55. #moon2.orbit {
  56. opacity: 1;
  57. animation: orbit 2s ease;
  58. width: 132px;
  59. height: 180px;
  60. margin-top: -66px;
  61. margin-left: -85px;
  62. }
  63. #moon3.orbit {
  64. opacity: 1;
  65. display: flex;
  66. align-items: flex-end;
  67. animation: orbit 2s ease;
  68. width: 220px;
  69. height: 166px;
  70. margin-top: -96px;
  71. margin-left: -50px;
  72. }
  73. #moon1 .planet {
  74. height: 12px;
  75. width: 12px;
  76. border-radius: 50%;
  77. }
  78. #moon2 .planet {
  79. height: 16px;
  80. width: 16px;
  81. border-radius: 50%;
  82. float: right;
  83. }
  84. #moon3 .planet {
  85. height: 20px;
  86. width: 20px;
  87. border-radius: 50%;
  88. }
  89. #jupyterlab-splash.light #moon1 .planet {
  90. background-color: #6f7070;
  91. }
  92. #jupyterlab-splash.light #moon2 .planet {
  93. background-color: #767677;
  94. }
  95. #jupyterlab-splash.light #moon3 .planet {
  96. background-color: #989798;
  97. }
  98. #jupyterlab-splash.dark #moon1 .planet,
  99. #jupyterlab-splash.dark #moon2 .planet,
  100. #jupyterlab-splash.dark #moon3 .planet {
  101. background-color: white;
  102. }
  103. .orbit {
  104. animation-iteration-count: 1;
  105. position: absolute;
  106. top: 50%;
  107. left: 50%;
  108. border-radius: 50%;
  109. }
  110. @keyframes orbit {
  111. 0% {
  112. transform: rotateZ(0deg);
  113. }
  114. 100% {
  115. transform: rotateZ(-720deg);
  116. }
  117. }
  118. @keyframes orbit2 {
  119. 0% {
  120. transform: rotateZ(0deg);
  121. }
  122. 100% {
  123. transform: rotateZ(720deg);
  124. }
  125. }
  126. @keyframes fade-in {
  127. 0% {
  128. opacity: 0;
  129. }
  130. 100% {
  131. opacity: 1;
  132. }
  133. }
  134. @keyframes fade-out {
  135. 0% {
  136. opacity: 1;
  137. }
  138. 100% {
  139. opacity: 0;
  140. }
  141. }