-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmario.html
239 lines (199 loc) · 5.14 KB
/
mario.html
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
<html>
<head>
<title>Pure CSS Mario</title>
<style>
body {
text-align: center;
}
.container {
display: inline-grid;
width: 260px;
height: 360px;
padding: 20px;
grid-template-columns: repeat(13, 20px);
grid-template-rows: repeat(17, 20px);
background-color: #51C6Ff;
}
.red {
background: #FE0002;
}
.brown {
background: #6A0400;
}
.skin {
background: #FFD987;
}
.black {
background: #000000;
}
.blue {
background: #0001FC;
}
.yellow {
background: #FFFF00;
}
.hat1 {
grid-row: 2 / span 1;
grid-column: 4 / span 6;
}
.hat2 {
grid-row: 3 / span 1;
grid-column: 3 / span 10;
}
.head {
grid-row: 4 / span 5;
grid-column: 3 / span 8;
}
.nose {
grid-row: 5 / span 2;
grid-column: 11 / span 2;
}
.snoot {
grid-row: 6 / span 1;
grid-column: 13 / span 1;
}
.eye {
grid-row: 4 / span 2;
grid-column: 9 / span 1;
}
.mustache1 {
grid-row: 7 / span 1;
grid-column: 9 / span 4;
}
.mustache2 {
grid-row: 6 / span 1;
grid-column: 10 / span 1;
}
.chin {
grid-row: 8 / span 1;
grid-column: 11 / span 1;
}
.hair1 {
grid-row: 4 / span 1;
grid-column: 3 / span 3;
}
.hair2 {
grid-row: 5 / span 3;
grid-column: 2 / span 1;
}
.hair3 {
grid-row: 5 / span 2;
grid-column: 4 / span 1;
}
.hair4 {
grid-row: 6 / span 1;
grid-column: 5 / span 1;
}
.hair5 {
grid-row: 7 / span 1;
grid-column: 3 / span 1;
}
.torso {
grid-row: 9 / span 4;
grid-column: 3 / span 7;
}
.sleeves1 {
grid-row: 10 / span 1;
grid-column: 2 / span 10;
}
.sleeves2 {
grid-row: 11 / span 1;
grid-column: 1 / span 12;
}
.sleeves3 {
grid-row: 12 / span 1;
grid-column: 10 / span 1;
}
.hands {
grid-row: 12 / span 3;
grid-column: 1 / span 12;
}
.waist {
grid-row: 12 / span 3;
grid-column: 4 / span 6;
}
.pant1 {
grid-row: 14 / span 2;
grid-column: 8 / span 3;
}
.pant2 {
grid-row: 14 / span 2;
grid-column: 3 / span 3;
}
.left-shoe1 {
grid-row: 16 / span 2;
grid-column: 2 / span 3;
}
.left-shoe2 {
grid-row: 17 / span 1;
grid-column: 1 / span 1;
}
.right-shoe1 {
grid-row: 16 / span 2;
grid-column: 9 / span 3;
}
.right-shoe2 {
grid-row: 17 / span 1;
grid-column: 12 / span 1;
}
.left-brace {
grid-row: 9 / span 3;
grid-column: 5 / span 1;
}
.right-brace {
grid-row: 10 / span 2;
grid-column: 8 / span 1;
}
.brace-between {
grid-row: 11 / span 1;
grid-column: 5 / span 4;
}
.left-button {
grid-row: 12 / span 1;
grid-column: 5 / span 1;
}
.right-button {
grid-row: 12 / span 1;
grid-column: 8 / span 1;
}
</style>
</head>
<body>
<div class="container">
<div class="red hat1"></div>
<div class="red hat2"></div>
<div class="skin head"></div>
<div class="skin nose"></div>
<div class="skin snoot"></div>
<div class="black eye"></div>
<div class="black mustache1"></div>
<div class="black mustache2"></div>
<div class="skin chin"></div>
<div class="brown hair1"></div>
<div class="brown hair2"></div>
<div class="brown hair3"></div>
<div class="brown hair4"></div>
<div class="brown hair5"></div>
<div class="skin hands"></div>
<div class="red torso"></div>
<div class="red sleeves1"></div>
<div class="red sleeves2"></div>
<div class="red sleeves3"></div>
<div class="blue waist"></div>
<div class="blue pant1"></div>
<div class="blue pant2"></div>
<div class="blue left-brace"></div>
<div class="blue right-brace"></div>
<div class="blue brace-between"></div>
<div class="yellow left-button"></div>
<div class="yellow right-button"></div>
<div class="brown left-shoe1"></div>
<div class="brown left-shoe2"></div>
<div class="brown right-shoe1"></div>
<div class="brown right-shoe2"></div>
</div>
<p>
<a href="https://github.com/adwaitv/css-art/">https://github.com/adwaitv/css-art/</a>
</p>
</body>
</html>