This repository has been archived by the owner on May 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
styleguide.html
324 lines (286 loc) · 9.46 KB
/
styleguide.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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
---
layout: subpage
page_id: styleguide
title: Styleguide
subtitle: Test Test we’re testing styles here
permalink: /styleguide/
---
<section class="bg--off-white">
<div class="container">
<p class="intro">
INTRO PARAGRAPH Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.
</p>
<p>
DEFAULT PARAGRAPH Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
</p>
<p class="mini">
MINI PARAGRAPH Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
</p>
<h1>H1 Heading Lorem Ipsum</h1>
<h2>H2 Heading Lorem Ipsum</h2>
<h3>H3 Heading Lorem Ipsum</h3>
<h4>H4 Heading Lorem Ipsum</h4>
<h5>H5 Heading Lorem Ipsum</h5>
<h6>H6 Heading Lorem Ipsum</h6>
<h2 class="color--blue">Headings can be blue</h2>
<h2 class="color--green">Headings can be green</h2>
<h2 class="tc">Headings can be centered</h2>
<p>
Lorem ipsum dolor <a href=#>this is a normal link</a> sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
</p>
<p>
<a href="#" class="link--button">This is a button</a>
</p>
</div>
</section>
<section class="bg--blue color--white tc">
<div class="container">
<h2>Headings can be white and centered</h2>
</div>
</section>
<section>
<div class="container">
<h2>This is a list</h2>
<ul class="fact-list">
<li><span class="fact-list__title">Location</span> Berlin, Germany</li>
<li><span class="fact-list__title">Venue</span> Arena</li>
<li><span class="fact-list__title">Date</span> May 5, 2017</li>
<li><span class="fact-list__title">Attendees</span> 500+</li>
<li><span class="fact-list__title">Speakers</span> 12</li>
<li><span class="fact-list__title">Topics</span> Web Development, UX, CSS, SVG, JavaScript</li>
<li><span class="fact-list__title">Level</span> Advanced to Expert</li>
</ul>
</div>
</section>
<section>
<div class="container">
<h2>SVG FTW!</h2>
<p>
Use the icon.html partial to inline SVGs.
</p>
<div class="row">
<div class="col-xs-3">
{% include helpers/svg id="combined-shapes-a" %}
</div>
<div class="col-xs-3">
{% include helpers/svg id="tri-triangles-a" %}
</div>
<div class="col-xs-3">
{% include helpers/svg id="arc" %}
</div>
<div class="col-xs-3">
{% include helpers/svg id="emoji-cool" %}
</div>
</div>
</div>
</section>
<section class="bg--light">
<div class="container dev-grid">
<h2>Grid System</h2>
<p>
We use <a href="http://flexboxgrid.com/">flexboxgrid.com</a>. Please make yourself familar with it before using it. *Never* apply additional styles or classes to grid elements (.row, .col).
</p>
<p>
Full-width = 12 columns. Gutter 22px.
</p>
<div class="row">
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
<div class="col-xs-1">
<div class="box">1col</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="box">12cols, responsive 6cols</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="box">12cols, responsive 6cols</div>
</div>
</div>
<div class="row center-xs">
<div class="col-xs-10">
<div class="box">10cols centered</div>
</div>
</div>
<div class="row center-xs">
<div class="col-xs-8">
<div class="box">8cols centered</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-xs-offset-6">
<div class="box">6cols offset</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="box">6cols</div>
</div>
<div class="col-xs-6">
<div class="box">6cols</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="box">12 cols, responsive 4cols</div>
</div>
</div>
<div class="row center-xs">
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="box">12 cols, responsive 4cols</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="box">12 cols, responsive 4cols</div>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<h2>Box Styles</h2>
<div class="row">
<div class="col-xs-4">
<div class="bg--off-white">
bg--off-white
</div>
</div>
<div class="col-xs-4">
<div class="bg--off-white box--padded">
bg--off-white box--padded
</div>
</div>
<div class="col-xs-4">
<div class="bg--white box--shadow box--padded">
bg--white box--shadow box--padded
</div>
</div>
<div class="col-xs-4">
<div class="bg--yolk box--padded">
bg--yolk box--padded
</div>
</div>
<div class="col-xs-4">
<div class="bg--rose box--padded">
bg--rose box--padded
</div>
</div>
<div class="col-xs-4">
<div class="bg--blue box--padded color--rose">
bg--blue box--padded color--rose
</div>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<h1>Utility Classes</h1>
<p>
For the sake of quickly developing layouts, we use a pre-defined grid system, and a tachyons-style of utility classes. Before authoring component-css, double-check whether you can achieve your goal with simply applying utility classes to the markup.
</p>
<h2>Text Colors</h2>
<p>
Apply color utility classes like <code>.color--red</code> or <code>.color--white</code> as needed.
<span class="color--green">This is green text</span> <span class="color--rose">and this is rose text</span> <span class="color--yolk">and you get</span> <span class="color--plum">the</span> <span class="color--blue-light">idea</span> <span class="color--salmon">.</span>
</p>
<h2>Backgrounds</h2>
<p>
Apply background utility classes like <code>.bg--blue</code> or <code>.bg--salmon</code> as needed. Those can be applied to full-width sections, or boxes, or anything really. For background image use classes like <code>.bg--img-combined-shapes-a</code>.
</p>
</div>
</section>
<section class="bg--off-white">
<p class="tc">bg--off-white</p>
</section>
<section class="bg--blue bg--img-combined-shapes-a color--white">
<p class="tc">bg--blue bg--img-combined-shapes-a color--white (C81 M55 Y0 K0 ???)</p>
</section>
<section class="bg--white-grey">
<p class="tc">bg--white-grey</p>
</section>
<section class="bg--salmon">
<p class="tc">bg--salmon (CMYK C0 M69 Y61 K0)</p>
</section>
<section class="bg--red">
<p class="tc">bg--red (CMYK C0 M87 Y74 K0)</p>
</section>
<section class="bg--mint">
<p class="tc">bg--mint (C64 M0 Y41 K0)</p>
</section>
<section class="bg--green">
<p class="tc">bg--green (C68 M0 Y89 K0)</p>
</section>
<section class="bg--yellow">
<p class="tc">bg--yellow</p>
</section>
<section class="bg--yellow-50">
<p class="tc">bg--yellow-50</p>
</section>
<section class="bg--yolk">
<p class="tc">bg--yolk (C1 M26 Y88 K0)</p>
</section>
<section class="bg--rose">
<p class="tc">bg--rose (C0 M53 Y10 K0)</p>
</section>
<section class="bg--plum color--rose">
<p class="tc">bg--plum (C80 M73 Y0 K0)</p>
</section>
<section class="bg--blue color--yolk">
<p class="tc">bg--blue</p>
</section>
<section class="bg--blue-dark color--white">
<p class="tc">bg--blue-dark</p>
</section>
<section class="bg--blue-light">
<p class="tc">bg--blue-light</p>
</section>