-
Notifications
You must be signed in to change notification settings - Fork 0
/
modularity2.html
305 lines (274 loc) · 9.71 KB
/
modularity2.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
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html lang="en">
<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" start="6">
<li>
<h1 class="instruction-title">Horizontally Spaced</h1>
<p class="instruction-text">Center multiple arbitrary elements horizontally, with padding.</p>
<div class="instruction-answer">
<!-- Edit here -->
<div class="horiz-spaced">
<img src="http://placehold.it/160">
<img src="http://placehold.it/160">
<img src="http://placehold.it/160">
</div>
<!-- End editable area -->
</div>
<p class="instruction-text">Works with different HTML...</p>
<div class="instruction-answer">
<!-- Edit here -->
<div class="horiz-spaced">
<img src="http://placehold.it/120">
<img src="http://placehold.it/160">
<p>Oh hello</p>
<img src="http://placehold.it/80">
<ol>
<li>Ready</li>
<li>Fire</li>
<li>Aim</li>
</ol>
</div>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Vertically Spaced</h1>
<p class="instruction-text">Center arbitrary elements vertically, with padding.</p>
<div class="instruction-answer">
<!-- Edit here -->
<div class="vertical-container">
<div class="vertically-centered">
<img src="http://placehold.it/50">
<img src="http://placehold.it/50">
<img src="http://placehold.it/50">
</div>
</div>
<!-- End editable area -->
</div>
<p class="instruction-text">Works with different HTML...</p>
<div class="instruction-answer">
<!-- Edit here -->
<div class="vertical-container">
<div class="vertically-centered">
<img src="http://placehold.it/50">
<img src="http://placehold.it/20">
<p>Oh hello</p>
<img src="http://placehold.it/30">
<ol>
<li>Ready</li>
<li>Fire</li>
<li>Aim</li>
</ol>
</div>
</div>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Horizontal List</h1>
<p class="instruction-text">Make the list items horizontal instead of vertical.</p>
<div class="instruction-answer">
<!-- Edit here -->
<ul class="inline-list">
<li>Ready</li>
<li>Fire</li>
<li>Aim</li>
</ul>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Buttons</h1>
<p class="instruction-text">Create a set of different-sized buttons.</p>
<div class="instruction-answer">
<!-- Edit here -->
<a href="#" class="big-button">Buy Now</a>
<a href="#" class="med-button">Learn More</a>
<a href="#" class="small-button">OK</a>
<!-- End editable area -->
</div>
<p class="instruction-text">Should work with both <a>, <button>, and <submit> elements.</p>
<div class="instruction-answer">
<!-- Edit here -->
<a href="#" class="med-button">Learn More</a>
<input type="button" href="#" value="Accept" class="med-button">
<input type="submit" href="#" value="Submit" class="med-button">
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Navigation</h1>
<p class="instruction-text">Create a navigation menu with links that are highlighted on hover.</p>
<div class="instruction-answer">
<!-- Edit here -->
<nav class="nav-menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">About</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Pagination</h1>
<p class="instruction-text">Style a pagination control for navigating through pages of search results.</p>
<div class="instruction-answer">
<!-- Edit here -->
<ol class="pagination">
<li><a href="#">prev</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
<li><a href="#">7</a></li>
<li><span>8</span></li>
<li><a href="#">9</a></li>
<li><a href="#">10</a></li>
<li><a href="#">11</a></li>
<li><a href="#">next</a></li>
</ol>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Comment Stream</h1>
<p class="instruction-text">Style a stream of user comments.</p>
<div class="instruction-answer">
<!-- Edit here -->
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/0?d=identicon">
</div>
<div class="comment-content">
<strong>@metaraine</strong>
<time>Thursday, June 27, 2013, 4:15pm</time>
<p>Wow, that was an amazing article.</p>
</div>
</div>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/1?d=identicon">
</div>
<div class="comment-content">
<strong>@seandaken</strong>
<time>Friday, June 28, 2013, 11:02</time>
<p>I learned 100 new things.</p>
</div>
</div>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/0?d=identicon">
</div>
<div class="comment-content">
<strong>@metaraine</strong>
<time>2 hours ago</time>
<p>How about we have the RefactorU student climb Bear Peak each morning before class?</p>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/1?d=identicon&s=60">
</div>
<div class="comment-content">
<strong>@seandaken</strong>
<time>45 minutes ago</time>
<p>Sure</p>
</div>
</div>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/2?d=identicon&s=60">
</div>
<div class="comment-content">
<strong>@nullempire</strong>
<time>just now</time>
<p>No!</p>
</div>
</div>
</div>
</div>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/1?d=identicon">
</div>
<div class="comment-content">
<strong>@seandaken</strong>
<time>Friday, June 28, 2013, 11:02</time>
<p>This is a new top level comment.</p>
<!-- -- -->
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/0?d=identicon">
</div>
<div class="comment-content">
<strong>@metaraine</strong>
<time>2 hours ago</time>
<p>This is the first second level comment.</p>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/1?d=identicon&s=60">
</div>
<div class="comment-content">
<strong>@seandaken</strong>
<time>45 minutes ago</time>
<p>A third level comment.</p>
</div>
</div>
<div class="user-comment">
<div class="user-image">
<img src="http://gravatar.com/avatar/2?d=identicon&s=60">
</div>
<div class="comment-content">
<strong>@nullempire</strong>
<time>just now</time>
<p>Another third level comment.</p>
</div>
</div>
</div>
</div>
<!-- -- -->
</div>
</div>
<!-- End editable area -->
</div>
</li>
<li>
<h1 class="instruction-title">Tabs</h1>
<p class="instruction-text">Create styles for a tabbed content control. There should be an active tab that is styled to appear in the foreground.</p>
<div class="instruction-answer">
<!-- Edit here -->
<ul class="tab-menu">
<li class="inactive-tab"><a href="#">
<div>First</div>
</a></li>
<li class="active-tab"><a href="#">
<div>Second</div>
</a></li>
<li class="inactive-tab"><a href="#">
<div>Third</div>
</a></li>
<li class="inactive-tab"><a href="#">
<div>Fourth</div>
</a></li>
</ul>
<div class="tab-content">
<p>Lemon drops dessert bonbon sesame snaps. Cheesecake candy canes ice cream dessert toffee applicake caramels pudding pie. Marshmallow wypas halvah ice cream.</p>
<p>Tart croissant lollipop toffee bear claw gingerbread candy canes tart. Cookie candy canes carrot cake muffin danish jelly beans cookie. Donut liquorice jelly dragée biscuit cookie wafer. Soufflé caramels gingerbread cheesecake sesame snaps.</p>
<p>Chocolate cake wypas pie tiramisu lollipop chocolate bar lollipop. Chupa chups sugar plum oat cake candy canes lemon drops. Brownie fruitcake oat cake gummi bears faworki. Muffin cheesecake pastry.</p>
</div>
<!-- End editable area -->
</div>
</li>
</ol>
</div>
</body>
</html>