forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.sass
197 lines (163 loc) · 4.28 KB
/
home.sass
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
189
190
191
192
193
194
195
196
197
// Main page Vector diagram
$spacing-vertical: 0
$transition-fast: 0
// Main page globe icon
$globe-dark-mode-land: rgb(32, 32, 32)
$globe-dark-mode-water: rgb(66, 66, 98)
$globe-light-mode-land: rgb(168, 168, 168)
$globe-light-mode-water: rgb(216, 216, 216)
@keyframes indexHeroInitial
0%
background-size: 100% 100%
90%
background-size: 250% 250%
100%
background-size: 200% 200%
@keyframes indexHeroPulsating
0%
background-size: 200% 200%
50%
background-size: 150% 150%
100%
background-size: 200% 200%
@keyframes diagramExplodeSource1
100%
opacity: 1
transform: translate(82px, 56px)
@keyframes diagramExplodeSource2
100%
opacity: 1
transform: translate(0px, 122px)
@keyframes diagramExplodeSource3
100%
opacity: 1
transform: translate(82px, 182px)
@keyframes diagramExplodeLogo
40%
transform: translate(328px, 53px)
100%
opacity: 1
transform: translate(328px, 38px)
@keyframes diagramExplodeStructure
100%
opacity: 1
transform: translate(29px, 74px)
@keyframes diagramExplodeAggregate
100%
opacity: 1
transform: translate(29px, 194px)
@keyframes diagramExplodeSink1
100%
opacity: 1
transform: translate(1px, 58px)
@keyframes diagramExplodeSink2
100%
opacity: 1
transform: translate(81px, 124px)
@keyframes diagramExplodeSink3
100%
opacity: 1
transform: translate(0px, 184px)
@keyframes diagramFadeIn
0%
opacity: 0.01
100%
opacity: 1
@media (max-width: 480px)
html.dark .diagram-container,
.diagram-container
animation: none
background-image: none
min-height: auto
.diagram
margin: spacing-vertical 0 0 0
.diagram
margin: calc($spacing-vertical * 2 ) 0
max-height: 21em
height: auto
width: 100%
.fade-in
animation: diagramFadeIn 1s ease-in
animation-delay: 1000ms
animation-fill-mode: forwards
opacity: 0.01
#Source-1
animation: diagramExplodeSource1 700ms cubic-bezier(0, 1.5, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 0
transform: translate(315px, 132px)
#Source-2
animation: diagramExplodeSource2 700ms cubic-bezier(0, 1.5, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 0
transform: translate(315px, 132px)
#Source-3
animation: diagramExplodeSource3 700ms cubic-bezier(0, 1.5, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 0
transform: translate(315px, 132px)
#Logo
animation: diagramExplodeLogo 1050ms cubic-bezier(0, 5, 1, 4.1)
animation-delay: 250ms
animation-fill-mode: forwards
opacity: 1
transform: translate(328px, 38px)
#Structure
animation: diagramExplodeStructure 700ms cubic-bezier(0, 3, 1, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 1
transform: translate(29px, 102px)
#Aggregate
animation: diagramExplodeAggregate 700ms cubic-bezier(0, 3, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
transform: translate(29px, 166px)
#Sink-1
animation: diagramExplodeSink1 700ms cubic-bezier(0, 1.5, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 0
transform: translate(-212px, 134px)
#Sink-2
animation: diagramExplodeSink2 700ms cubic-bezier(0, 1.5, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 0
transform: translate(-212px, 134px)
#Sink-3
animation: diagramExplodeSink3 700ms cubic-bezier(0, 1.5, 0.32, 1.5)
animation-delay: 650ms
animation-fill-mode: forwards
opacity: 0
transform: translate(-212px, 134px)
a
circle
transition: all $transition-fast ease
&:hover
circle
transform: scale(1.1) translate(-0.5%, -1%)
#Structure, #Sample, #Aggregate
polygon
transform: scale(1.05) translate(-0.5%, -1%)
#Structure, #Sample, #Aggregate
polygon
transition: all $transition-fast ease
// Spinning globe in the main page community section
.dark
#globe-wrapper
#globe
svg
fill: $globe-dark-mode-water
.land
fill: $globe-dark-mode-land
.light
#globe-wrapper
#globe
svg
fill: $globe-light-mode-water
.land
fill: $globe-light-mode-land