Advertisement
Guest User

cabrerizo

a guest
Nov 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. *
  2. {
  3. margin: 0;
  4. padding: 0;
  5. }
  6.  
  7. html, body
  8.  
  9. {
  10. width: 100%;
  11. height: 97hv;
  12. background-color: black;
  13. }
  14.  
  15. #sun
  16. {
  17. position: absolute;
  18. top: 35%;
  19. left: 45%;
  20. background-color: yellow;
  21. height: 200px;
  22. width: 200px;
  23. border-radius: 50%;
  24. border: orange 2px solid;
  25. box-shadow: 0 0 128px red;
  26. }
  27.  
  28. #mercury
  29. {
  30. position: absolute;
  31. top: 0%;
  32. left: 22%;
  33. background-color: white;
  34. height: 20px;
  35. width: 20px;
  36. border-radius: 50%;
  37. border: gray 2px solid;
  38. box-shadow: 0 0 20px white;
  39. }
  40.  
  41. #mercury-orbit
  42.  
  43. {
  44. position: absolute;
  45. top: 32%;
  46. left: 43.60%;
  47. width:250px;
  48. height:250px;
  49. border-radius: 50%;
  50. border: white 2px dotted;
  51. animation: spin-right 2.41s linear infinite;
  52. }
  53.  
  54. #venus
  55. {
  56. position: absolute;
  57. top: 0%;
  58. left: 15%;
  59. background-color: pink;
  60. height: 58px;
  61. width: 58px;
  62. border-radius: 50%;
  63. border: rgb(250, 193, 255) 2px solid;
  64. box-shadow: 0 0 20px pink;
  65. }
  66.  
  67. #venus-orbit
  68.  
  69. {
  70. position: absolute;
  71. top: 23.8%;
  72. left: 39.50%;
  73. width:400px;
  74. height:400px;
  75. border-radius: 50%;
  76. border: white 2px dotted;
  77. }
  78.  
  79.  
  80. #earth
  81. {
  82. position: absolute;
  83. top: 15%;
  84. left: 20%;
  85. background-color: lightseagreen;
  86. height: 60px;
  87. width: 60px;
  88. border-radius: 50%;
  89. border: mediumturquoise 2px solid;
  90. box-shadow: 0 0 20px mediumspringgreen;
  91. }
  92.  
  93. #earth-orbit
  94.  
  95. {
  96. position: absolute;
  97. top: 12.75%;
  98. left: 34%;
  99. width:600px;
  100. height:600px;
  101. border-radius: 50%;
  102. border: white 2px dotted;
  103. }
  104.  
  105. #moon
  106. {
  107. position: absolute;
  108. top: 0%;
  109. left: 15%;
  110. background-color: grey;
  111. height: 10px;
  112. width: 10px;
  113. border-radius: 50%;
  114. border: darkgrey 2px solid;
  115. box-shadow: 0 0 20px white;
  116. }
  117. #moon-orbit
  118.  
  119. {
  120. position: absolute;
  121. top: 6%;
  122. left: 7%;
  123. width:100px;
  124. height:100px;
  125. border-radius: 50%;
  126. border: white 2px dotted;
  127. }
  128.  
  129. @keyframes spin-right
  130. {
  131. transform: rotate(360deg);
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement