splash.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. .planet {
  31. background-repeat: no-repeat;
  32. background-size: cover;
  33. animation-iteration-count: infinite;
  34. animation-name: orbit;
  35. }
  36. #moon1.orbit {
  37. opacity: 1;
  38. animation: orbit 2s ease;
  39. width: 200px;
  40. height: 140px;
  41. margin-top: -53px;
  42. margin-left: -54px;
  43. }
  44. #moon2.orbit {
  45. opacity: 1;
  46. animation: orbit 2s ease;
  47. width: 132px;
  48. height: 180px;
  49. margin-top: -66px;
  50. margin-left: -85px;
  51. }
  52. #moon3.orbit {
  53. opacity: 1;
  54. display: flex;
  55. align-items: flex-end;
  56. animation: orbit 2s ease;
  57. width: 220px;
  58. height: 166px;
  59. margin-top: -96px;
  60. margin-left: -50px;
  61. }
  62. #moon1 .planet {
  63. height: 12px;
  64. width: 12px;
  65. border-radius: 50%;
  66. }
  67. #moon2 .planet {
  68. height: 16px;
  69. width: 16px;
  70. border-radius: 50%;
  71. float: right;
  72. }
  73. #moon3 .planet {
  74. height: 20px;
  75. width: 20px;
  76. border-radius: 50%;
  77. }
  78. #jupyterlab-splash.light #moon1 .planet {
  79. background-color: #6f7070;
  80. }
  81. #jupyterlab-splash.light #moon2 .planet {
  82. background-color: #767677;
  83. }
  84. #jupyterlab-splash.light #moon3 .planet {
  85. background-color: #989798;
  86. }
  87. #jupyterlab-splash.dark #moon1 .planet,
  88. #jupyterlab-splash.dark #moon2 .planet,
  89. #jupyterlab-splash.dark #moon3 .planet {
  90. background-color: white;
  91. }
  92. .orbit {
  93. animation-iteration-count: 1;
  94. position: absolute;
  95. top: 50%;
  96. left: 50%;
  97. border-radius: 50%;
  98. }
  99. @keyframes orbit {
  100. 0% {
  101. transform: rotateZ(0deg);
  102. }
  103. 100% {
  104. transform: rotateZ(-720deg);
  105. }
  106. }
  107. @keyframes orbit2 {
  108. 0% {
  109. transform: rotateZ(0deg);
  110. }
  111. 100% {
  112. transform: rotateZ(720deg);
  113. }
  114. }
  115. @keyframes fade-in {
  116. 0% {
  117. opacity: 0;
  118. }
  119. 100% {
  120. opacity: 1;
  121. }
  122. }
  123. @keyframes fade-out {
  124. 0% {
  125. opacity: 1;
  126. }
  127. 100% {
  128. opacity: 0;
  129. }
  130. }