-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.scss
102 lines (88 loc) · 1.72 KB
/
styles.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
@import "CSS/_reset";
$sunsize:15em;
$orbitstroke: .1em;
// NORMAL
//font-family: 'Open Sans', sans-serif;
//font-family: 'Montserrat', sans-serif;
html{
font-size: 1em;
}
body{
background: #0a1026;
height:100vh;
overflow: hidden;
font-family: 'Montserrat', sans-serif;
}
@keyframes planetspin {
0%{transform:rotate(0deg);}
50%{transform:rotate(180deg);}
100%{transform:rotate(360deg);}
}
#space{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
position: relative;
left:0;
top:0;
font-size:.5em;
/*
-webkit-transition: font-size .2s;
-moz-transition: font-size .2s;
-ms-transition: font-size .2s;
-o-transition: font-size .2s;
transition: font-size .2s;
*/
}
#sun{
width: $sunsize;
height: $sunsize;
background: #ffc902;
border-radius: 50%;
position:absolute;
}
h1{
text-align: center;
color: white;
position: absolute;
top:.5em;
left: 50%;
font-size: 2em;
transform: translateX(-50%);
font-weight:bold;
text-transform: uppercase;
}
p{
font-family: 'Open Sans', sans-serif;
text-align: center;
color: white;
position: absolute;
left: 50%;
top: 3em;
font-size: 1em;
transform: translateX(-50%);
}
#stars{
font-size: .5em;
}
.star{
background: rgba(255,255,255,.2);
width: 1em;
height: 1em;
display: block;
position: absolute;
border-radius: 50%;
}
@for $i from 1 through 40{
.star:nth-child(#{$i}){ left:random(100)+vw; top:random(100)+vh}
}
//planets import
@import "css/planets/mercury";
@import "css/planets/venus";
@import "CSS/planets/earth";
@import "css/planets/mars";
@import "css/planets/jupiter";
@import "css/planets/saturn";
@import "css/planets/uranus";
@import "css/planets/neptune";