-
Notifications
You must be signed in to change notification settings - Fork 0
/
modularity1.html
237 lines (214 loc) · 7.64 KB
/
modularity1.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CSS Modularity</title>
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="framework.css">
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="instructions-container">
<ol class="instruction-list">
<li>
<h1 class="instruction-title">Data Table</h1>
<p class="instruction-text">Style a table full of data so that it looks nicer than the brower defaults.</p>
<div class="instruction-answer">
<!-- Edit here -->
<table class="data">
<tr>
<td>0</td>
<td>Sean</td>
<td>Daaken</td>
<td>@seandaken</td>
</tr>
<tr>
<td>1</td>
<td>Raine</td>
<td>Lourie</td>
<td>@metaraine</td>
</tr>
<tr>
<td>2</td>
<td>Matt</td>
<td>Null</td>
<td>@nullempire</td>
</tr>
</table>
<!-- End editable area -->
</div>
<p class="instruction-text">It should also handle header rows...</p>
<div class="instruction-answer">
<!-- Edit here -->
<table class="data">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>Sean</td>
<td>Daaken</td>
<td>@seandaken</td>
</tr>
<tr>
<td>1</td>
<td>Raine</td>
<td>Lourie</td>
<td>@metaraine</td>
</tr>
<tr>
<td>2</td>
<td>Matt</td>
<td>Null</td>
<td>@nullempire</td>
</tr>
</tbody>
</table>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Stats</h1>
<p class="instruction-text">Three columns, three prominent numbers, three small labels</p>
<div class="instruction-answer">
<!-- Edit here -->
<table class="stats">
<tbody>
<tr>
<td><div class="big-number">7</div><div class ="sm-label">followers</div></td>
<td><div class="big-number">59</div><div class ="sm-label">starred</div></td>
<td><div class="big-number">28</div><div class ="sm-label">following</div></td>
</tr>
</tbody>
</table>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Bar Chart</h1>
<p class="instruction-text">Bar widths are set in the HTML as if they were populated from the back-end. Everything else should be styled with CSS.</p>
<div class="instruction-answer">
<!-- Edit here -->
<table class="bar-chart">
<tr>
<th>Javascript</th>
<td><div style="width: 99%">21%</div></td>
</tr>
<tr>
<th>Ruby</th>
<td><div style="width: 57.1%">12%</div></td>
</tr>
<tr>
<th>Java</th>
<td><div style="width: 38.1%">8%</div></td>
</tr>
<tr>
<th>Python</th>
<td><div style="width: 38.1%">8%</div></td>
</tr>
<tr>
<th>Shell</th>
<td><div style="width: 38.1%">8%</div></td>
</tr>
<tr>
<th>PHP</th>
<td><div style="width: 33.3%">7%</div></td>
</tr>
<tr>
<th>C</th>
<td><div style="width: 28.8%">6%</div></td>
</tr>
<tr>
<th>C++</th>
<td><div style="width: 23.8%">5%</div></td>
</tr>
<tr>
<th>Perl</th>
<td><div style="width: 19.0%">4%</div></td>
</tr>
<tr>
<th>Objective-C</th>
<td><div style="width: 14.3%">3%</div></td>
</tr>
</table>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Lightbox</h1>
<p class="instruction-text">The lightbox should display arbitrary content, centered vertically and horizontally, with everything behind it (the rest of the page) darkened. It should obscure the entire screen, no matter where you are on the page. You may want to disable these styles when you're not actively working on them, otherwise they'll cover the whole page.</p>
<div class="instruction-answer">
<!-- Edit here -->
<div class="lightbox">
<div class="box">
<div>
<h3>Hello</h3>
<p>Cupcake ipsum dolor sit amet. Gummies lemon drops pastry topping wypas jujubes gummi bears. Cotton candy powder topping bear claw halvah jelly beans bear claw. Chocolate cake ice cream gummies apple pie muffin wafer gummi bears. Cupcake ipsum dolor sit amet. Gummies lemon drops pastry topping wypas jujubes gummi bears. Cotton candy powder topping bear claw halvah jelly beans bear claw. Chocolate cake ice cream gummies apple pie muffin wafer gummi bears.</p>
<div class="close-btn">
<a>Close</a>
</div>
</div>
</div>
</div>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Media Block</h1>
<p class="instruction-text">A media block is a left-floated image with some content beside it. Think Facebook updates.</p>
<div class="instruction-answer">
<!-- Edit here -->
<img class="float-left" src="http://placehold.it/50">
<p>Cupcake ipsum dolor sit amet. Gummies lemon drops pastry topping wypas jujubes gummi bears. Cotton candy powder topping bear claw halvah jelly beans bear claw. Chocolate cake ice cream gummies apple pie muffin wafer gummi bears.</p>
<!-- End editable area -->
</div>
<p class="instruction-text">Does it work with a different html structure?</p>
<!-- Edit here -->
<div class="instruction-answer">
<div>
<img class="float-left" src="http://placehold.it/50">
</div>
<div class="txt-movin">
<h2>Cupcake Ipsum</h2>
<p>Cupcake ipsum dolor sit amet. Gummies lemon drops pastry topping wypas jujubes gummi bears. Cotton candy powder topping bear claw halvah jelly beans bear claw. Chocolate cake ice cream gummies apple pie muffin wafer gummi bears.</p>
</div>
<!-- End editable area -->
</div>
<p class="instruction-text">How about nested media objects?</p>
<div class="instruction-answer">
<!-- Edit here -->
<div>
<img class="float-left" src="http://placehold.it/50">
</div>
<div class="txt-movin">
<h2>Cupcake Ipsum</h2>
<p>Cupcake ipsum dolor sit amet gummies lemon drops pastry topping wypas jujubes gummi bears. Cotton candy powder topping bear claw halvah jelly beans bear claw. Chocolate cake ice cream gummies apple pie muffin wafer gummi bears.</p>
<div>
<img class="float-left" src="http://placehold.it/32">
</div>
<div>
<h2>I like cupcakes!</h2>
<p>Cupcake ipsum dolor sit amet caramels jelly beans. Faworki donut applicake cookie. Apple pie wafer gummies biscuit cupcake gummies pastry.</p>
</div>
<div>
<img class="float-left" src="http://placehold.it/32">
</div>
<div>
<h2>I like cupcakes, too!</h2>
<p>Cupcake ipsum dolor sit amet donut lemon drops carrot cake topping bonbon powder sweet roll. Lollipop jujubes bonbon chupa chups jelly beans.</p>
</div>
</div>
<!-- End editable area -->
</div>
</li>
</ol>
</div>
</body>
</html>