This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
laughing-man.sass
268 lines (196 loc) · 4.86 KB
/
laughing-man.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
$blue: #004E72
@-webkit-keyframes rotate
from
-webkit-transform-origin: 170px 170px
-webkit-transform: rotate(0deg)
to
-webkit-transform-origin: 170px 170px
-webkit-transform: rotate(360deg)
@-moz-keyframes rotate
from
-moz-transform-origin: 170px 170px
-moz-transform: rotate(0deg)
to
-moz-transform-origin: 170px 170px
-moz-transform: rotate(360deg)
.outer
display: block
width: 340px
height: 340px
border: 10px solid $blue
border-radius: 340px
background: white
position: relative
.outer, .outer *
margin: 0
padding: 0
.inner
position: absolute
top: 39px
left: 39px
display: block
width: 220px
height: 220px
border: 21px solid $blue
border-radius: 220px
background: white
.hat
.tip
position: absolute
top: 32px
left: 162px
display: block
width: 16px
height: 10px
background: $blue
.gap
position: absolute
top: 153px
left: 39px
display: block
width: 23px
height: 8px
background: white
.edge
position: absolute
top: 132px
left: 50px
display: block
width: 230px
height: 21px
background: $blue
.rim
position: absolute
top: 132px
left: 278px
display: block
width: 91px
height: 34px
border-top: 21px solid $blue
border-right: 21px solid $blue
border-bottom: 21px solid $blue
border-left: 0px solid white
border-top-right-radius: 78px
border-bottom-right-radius: 78px
background: white
.eye
&.left
left: 36px
&.right
right: 37px
position: absolute
top: 100px
display: block
width: 50px
height: 25px
background: $blue
overflow: hidden
border-top-left-radius: 50px
border-top-right-radius: 50px
.mask
position: absolute
top: 10px
left: -4px
display: block
width: 58px
height: 26px
background: white
border-top-left-radius: 50px
border-top-right-radius: 50px
.smile-wrapper
position: absolute
top: 127px
left: 14px
display: block
width: 192px
height: 80px
overflow: hidden
.smile
position: relative
top: -25px
display: block
width: 192px
height: 105px
background: $blue
border-left: 0 solid
border-right: 0 solid
border-bottom: 0 solid
border-top: none
border-bottom-left-radius: 210px
border-bottom-right-radius: 210px
.mask-wrapper
position: absolute
bottom: 23px
left: 23px
display: block
width: 145px
height: 36px
overflow: hidden
margin: auto
.mask
position: absolute
bottom: 0px
display: block
width: 145px
height: 72px
background: white
border-bottom-left-radius: 135px
border-bottom-right-radius: 135px
cite
display: block
width: 340px
height: 340px
font-family: Impact, Helvetica, Arial
font-style: normal
font-size: 30px
color: $blue
-webkit-animation-name: rotate
-webkit-animation-duration: 8s
-webkit-animation-iteration-count: infinite
-webkit-animation-timing-function: linear
-moz-animation-name: rotate
-moz-animation-duration: 8s
-moz-animation-iteration-count: infinite
-moz-animation-timing-function: linear
span
position: absolute
top: 155px
left: 155px
display: block
width: 30px
height: 30px
text-align: center
$rot: -40
@for $i from 0 to 69
$scale: 1.2
@each $very_thin in 16, 28
@if $i - 1 == $very_thin
$scale: 0.6
@if $i - 2 == $very_thin
$scale: 0.8
@each $thin in 2, 8, 13, 50, 65
@if $i - 1 == $thin
$scale: 1
@if $i - 2 == $thin
$scale: 1.1
@each $wide in 10, 22, 41, 63
@if $i - 1 == $wide
$scale: 1.3
@if $i - 2 == $wide
$scale: 1.5
@each $space in 1, 9, 14, 18, 21, 26, 30, 38, 40, 44, 48, 51, 57, 68
@if $i - 1 == $space
$scale: 0.3
$rot: $rot + (360 / 69) * $scale
span:nth-child(69n+#{$i})
-webkit-transform: rotate(#{$rot}deg) translateY(-155px)
-moz-transform: rotate(#{$rot}deg) translateY(-155px)
#laughing-man
width: 360px
height: 360px
margin: 32px auto
#about
width: 460px
margin: 32px auto
font-family: Helvetica, Arial, sans
line-height: 1.5em