-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.scss
189 lines (147 loc) · 4.11 KB
/
index.scss
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
$color-info: rgb(0, 0, 0);
$color-info-border: #8661C1;
$gradient-bg: linear-gradient(180deg, #000000 80%, rgba(9, 9, 121, 1) 90%, rgba(0, 212, 255, 1) 100%);
body{
background: $gradient-bg;
main {
padding-top: 30px;
overflow: hidden;
#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;
}
h1 {
max-width: 60%;
align-self: center;
text-align: center;
background-color: $color-info;
border-radius: 10px;
border: 2px solid $color-info-border;
margin-top: 2rem;
padding: 1rem;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
#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;
}
#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%;
}
article {
display: flex;
flex-direction: column;
text-align: center;
section {
display: flex;
flex-direction: column;
padding: 1rem;
align-items: center;
margin-bottom: 3rem;
.planet-info {
background-color: $color-info;
border-radius: 10px;
border: 2px solid $color-info-border;
padding: 1rem;
h2 {
margin-bottom: 1rem;
}
}
}
}
}
//dotted line
&::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;
}
//rocket
&::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) {
main {
#asteroid-belt {
background-image: url('images/asteroids.png');
background-position: 50%;
background-repeat: repeat-x;
width: 2080px;
height: 520px;
}
article {
section {
padding: 5%;
display: flex;
flex-direction: row;
justify-content: space-between;
.planet {
width: 40%;
}
.planet-info {
width: 40%;
}
}
}
}
}
@keyframes scrollBackground {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-25%);
}
}
}