-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
132 lines (132 loc) · 3.07 KB
/
index.css
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
127
128
129
130
131
132
body {
background: linear-gradient(180deg, #000000 80%, rgb(9, 9, 121) 90%, rgb(0, 212, 255) 100%);
}
body main {
padding-top: 30px;
overflow: hidden;
}
body main #asteroid-belt {
display: absolute;
justify-content: center;
align-items: center;
background-image: url("images/asteroids.png");
width: 2080px;
height: 260px;
background-position: 50%;
background-repeat: repeat-x;
animation: scrollBackground 30s linear infinite;
}
body main h1 {
max-width: 60%;
align-self: center;
text-align: center;
background-color: rgb(0, 0, 0);
border-radius: 10px;
border: 2px solid #8661C1;
margin-top: 2rem;
padding: 1rem;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
body main #space {
overflow: hidden;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-image: radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 50px 160px, #ddd, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)), radial-gradient(1px 1px at 130px 80px, #fff, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
background-repeat: repeat;
background-size: 100px 100px;
}
body main #myBtn {
display: none;
position: fixed;
bottom: 10%;
right: 10%;
width: 3rem;
height: 3rem;
z-index: 99;
font-size: 24px;
border: none;
outline: none;
background-image: url("images/pluto.png");
background-position: center;
background-size: 200%;
background-repeat: no-repeat;
color: white;
cursor: pointer;
border-radius: 50%;
}
body main article {
display: flex;
flex-direction: column;
text-align: center;
}
body main article section {
display: flex;
flex-direction: column;
padding: 1rem;
align-items: center;
margin-bottom: 3rem;
}
body main article section .planet-info {
background-color: rgb(0, 0, 0);
border-radius: 10px;
border: 2px solid #8661C1;
padding: 1rem;
}
body main article section .planet-info h2 {
margin-bottom: 1rem;
}
body::before {
content: "";
position: fixed;
z-index: -3;
top: 0;
bottom: 0;
left: 50%;
width: 0;
border-left: 4px dotted #8f8e8e;
min-height: auto;
display: inline-block;
}
body::after {
content: "";
position: fixed;
z-index: -1;
top: 35%;
bottom: 0;
background-image: url("images/rocket.png");
background-size: 100%;
width: 20%;
left: 40%;
background-repeat: no-repeat;
}
@media screen and (min-width: 800px) {
body main #asteroid-belt {
background-image: url("images/asteroids.png");
background-position: 50%;
background-repeat: repeat-x;
width: 2080px;
height: 520px;
}
body main article section {
padding: 5%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
body main article section .planet {
width: 40%;
}
body main article section .planet-info {
width: 40%;
}
}
@keyframes scrollBackground {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-25%);
}
}/*# sourceMappingURL=index.css.map */