Repository navigation
Expand file tree
/
Copy pathSTYLESOLARSYSTEM.css
More file actions
126 lines (77 loc) · 1.46 KB
/
Copy pathSTYLESOLARSYSTEM.css
File metadata and controls
126 lines (77 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
body{
margin:0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background-color: black;
}
.container{
font-size: 10px;
width: 40em;
height: 40em;
position: relative;
}
.son
{
position:absolute;
top: 15em;
left: 15em;
width: 10em;
height: 10em;
border-radius: 50% ;
background-color: yellow;
box-shadow: 0 0 3em white;
}
.earth,.moon{
position:absolute;
border-style:solid ;
border-color: white transparent transparent transparent;
border-width: 0.1em 0.1em 0 0;
border-radius: 50%;
}
.earth{
top: 5em;
left: 5em;
width: 30em;
height: 30em;
animation: orbit 36.5s linear infinite;
}
.moon{
top: 0;
right: 0;
width: 8em;
height: 8em;
animation: orbit 2.7s linear infinite;
}
.earth::before,
.moon::before{
content: "";
position: absolute;
border-radius: 50%;
}
.earth::before{
top: 2.8em;
right: 2.8em;
height: 3em;
width: 3em;
background-color: aqua;
}
.moon::before{
top: 0.8em;
right: 0.2em;
width: 1.2em;
height: 1.2em;
background-color: silver;
}
@keyframes orbit{
to{
transform: rotate(360deg);
}
}
h1{
color: white;
margin-right:300px;
margin-bottom: 500px;
}