forked from UCL-WAMS/indigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
typography.html
415 lines (317 loc) · 14.7 KB
/
typography.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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
<!DOCTYPE html>
<!--[if IE 7]> <html lang="en" class="lt-ie9 lt-ie8 no-js"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="lt-ie9 no-js"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset=utf-8 />
<meta name="author" content="UCL" />
<meta name="description" content="UCL Homepage" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- social meta -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@uclnews">
<meta name="twitter:title" content="UCL - London's Global University">
<meta name="twitter:description" content="UCL (University College London) is London's leading multidisciplinary university, with 8,000 staff and 25,000 students.">
<meta name="twitter:creator" content="@UCLWAMS">
<meta name="twitter:image:src" content="http://www.ucl.ac.uk/visual-identity/logos/standalone.png">
<meta property="og:image" content="http://www.ucl.ac.uk/visual-identity/logos/standalone.png" />
<meta property="og:title" content="UCL - London's Global University" />
<meta property="og:url" content="http://www.ucl.ac.uk" />
<meta property="og:site_name" content="UCL" />
<meta property="og:description" content="UCL (University College London) is London's leading multidisciplinary university, with 8,000 staff and 25,000 students." />
<meta property="og:type" content="website" />
<meta property="og:profile_id" content="uclofficial" />
<!-- end social meta -->
<title>UCL Design Language</title>
<link href="//static.ucl.ac.uk/indigo/css/screen.min.css" media="screen, projection" rel="stylesheet" type="text/css" />
<!--[if IE]><link href="//static.ucl.ac.uk/indigo/css/ie.min.css" rel="stylesheet" /><![endif]-->
<!--[if lt IE 8]><link href="//static.ucl.ac.uk/indigo/css/ie-old.min.css" rel="stylesheet" /><![endif]-->
<link rel="shortcut icon" href="//static.ucl.ac.uk/indigo/images/favicon.ico" />
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-TileImage" content="favicon-144.png">
<script src="//static.ucl.ac.uk/indigo/js/lib/modernizr-custom.js"></script>
<script>
var cuttingTheMustard = document.querySelector && window.localStorage && window.addEventListener;
Modernizr.load({
//cutting the mustard as used by the BBC
test: cuttingTheMustard
//if old browser load the shiv
,
nope: [
'//static.ucl.ac.uk/indigo/js/lib/html5shiv-printshiv.min.js', '//static.ucl.ac.uk/indigo/js/lib/respond.min.js'
]
});
//set conditional assets for main.js
var globalSiteSpecificVars = {
pathToJquery: '//static.ucl.ac.uk/indigo/js/lib/jquery-1.9.1.min',
googleAnalyticsIdsArray: [] //specify array of site specific id's NOT UCL generic UA-943297-1
}
if (cuttingTheMustard) {
globalSiteSpecificVars.pathToJquery = "//static.ucl.ac.uk/indigo/js/lib/jquery-2.1.1.min";
}
</script>
<script src="//static.ucl.ac.uk/indigo/js/lib/require.min.js"></script>
<script src="//static.ucl.ac.uk/indigo/js/main.js"></script>
<script>
require(["app/general"]); //load the default stuff
</script>
</head>
<body id="typography-view" class="layout-vertical layout-vertical--nav-2col
">
<article class="article">
<hr/>
<h2>Headings</h2>
<h1>Heading One</h1>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
<h5>Heading Five</h5>
<h6>Heading Six</h6>
<hr/>
<h1>h1.
<small>Small segment header.</small>
</h1>
<h2>h2.
<small>Small segment header.</small>
</h2>
<h3>h3.
<small>Small segment header.</small>
</h3>
<h4>h4.
<small>Small segment header.</small>
</h4>
<h5>h5.
<small>Small segment header.</small>
</h5>
<h6>h6.
<small>Small segment header.</small>
</h6>
<hr/>
<h1>h1. <a href="#">Inline heading link</a>
</h1>
<h2>h2. <a href="#">Inline heading link</a>
</h2>
<h3>h3. <a href="#">Inline heading link</a>
</h3>
<h4>h4. <a href="#">Inline heading link</a>
</h4>
<h5>h5. <a href="#">Inline heading link</a>
</h5>
<h6>h6. <a href="#">Inline heading link</a>
</h6>
<hr/>
<h2>Quotes</h2>
<h3>Blockquote</h3>
<blockquote class="pull-quote boxout" cite="http://hansard.millbanksystems.com/commons/1947/nov/11/parliament-bill#column_206">
<q class="pull-quote__wrap clearfix">
<span class="pull-quote__start">“</span>Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time."
</q>
<cite class="text-muted small pull-quote__meta">
<strong>Mark Regev</strong>, spokesperson for the Israeli prime minister's office
</cite>
</blockquote>
<h3>Inline quote</h3>
<p>John said, "I saw Lucy at lunch, she told me 'Mary wants you to get some ice cream on your way home'. I think I will get some at Ben and Jerry’s, on Gloucester Road."</p>
<h2>Stressed emphasis</h2>
<p>The
<code>em</code>element is used to denote text with stressed emphasis, i.e., something you’d pronounce differently. Where italicizing is required for stylistic differentiation, the
<code>i</code>element may be preferable.</p>
<h3>Example</h3>
<p>You simply
<em>must</em>try the negitoro maki!</p>
<h2>Strong importance</h2>
<p>The
<code>strong</code>element is used to denote text with strong importance. Where bolding is used for stylistic differentiation, the
<code>b</code>element may be preferable.</p>
<h3>Example</h3>
<p>
<strong>Don’t</strong>stick nails in the electrical outlet.</p>
<h2>Small print</h2>
<p>The
<small>small</small>element is used to represent disclaimers, caveats, legal restrictions, or copyrights (commonly referred to as ‘small print’). It can also be used for attributions or satisfying licensing requirements.</p>
<h3>Example</h3>
<p>
<small>Copyright © 1922-2011 Acme Corporation. All Rights Reserved.</small>
</p>
<h2>Strikethrough</h2>
<p>The
<code>s</code>element is used to represent content that is no longer accurate or relevant. When indicating document edits i.e., marking a span of text as having been removed from a document, use the
<code>del</code>element instead.</p>
<h3>Example</h3>
<p>
<s>Recommended retail price: £3.99 per bottle</s>
<br>
<strong>Now selling for just £2.99 a bottle!</strong>
</p>
<h2>Abbreviation</h2>
<p>The
<code>abbr</code>element is used for any abbreviated text, whether it be acronym, initialism, or otherwise. Generally, it’s less work and useful (enough) to mark up only the first occurrence of any particular abbreviation on a page, and ignore the rest. Any text in the
<code>title</code>attribute will appear when the user’s mouse hovers the abbreviation (although notably, this does not work in Internet Explorer for Windows).</p>
<h3>Example</h3>
<p>
<abbr title="British Broadcasting Corportation">BBC</abbr>,
<abbr title="HyperText Markup Language">HTML</abbr>, and
<abbr title="Staffordshire">Staffs.</abbr>
</p>
<h2>Time</h2>
<p>The
<code>time</code>element is used to represent either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a time-zone offset.</p>
<h3>Example</h3>
<p>Queen Elizabeth II was proclaimed sovereign of each of the Commonwealth realms on
<time datetime="1952-02-6">6</time>and
<time datetime="1952-02-7">7 February 1952</time>, after the death of her father, King George VI.</p>
<h2>Variable</h2>
<p>The
<code>var</code>element is used to denote a variable in a mathematical expression or programming context, but can also be used to indicate a placeholder where the contents should be replaced with your own value.</p>
<h3>Example</h3>
<p>If there are
<var>n</var>pipes leading to the ice cream factory then I expect at
<em>least</em>
<var>n</var>flavours of ice cream to be available for purchase!</p>
<h2>Keyboard entry</h2>
<p>The
<code>kbd</code>element is used to denote user input (typically via a keyboard, although it may also be used to represent other input methods, such as voice commands).</p>
<h3>Example</h3>
<kbd>f478b9aa89442d2922b915a23dd1ac4c</kbd>
<h2>Superscript and subscript text</h2>
<p>The
<code>sup</code>element represents a superscript and the sub element represents a
<code>sub</code>. These elements must be used only to mark up typographical conventions with specific meanings, not for typographical presentation. As a guide, only use these elements if their absence would change the meaning of the content.</p>
<h3>Example</h3>
<p>The coordinate of the
<var>i</var>th point is (
<var>x<sub><var>i</var></sub>
</var>,
<var>y<sub><var>i</var></sub>
</var>). For example, the 10th point has coordinate (
<var>x<sub>10</sub>
</var>,
<var>y<sub>10</sub>
</var>).</p>
<p>f(
<var>x</var>,
<var>n</var>) = log<sub>4</sub>
<var>x</var><sup><var>n</var></sup>
</p>
<h2>Italicised</h2>
<p>The
<code>i</code>element is used for text in an alternate voice or mood, or otherwise offset from the normal prose. Examples include taxonomic designations, technical terms, idiomatic phrases from another language, the name of a ship or other spans of text whose typographic presentation is typically italicised.</p>
<h3>Example</h3>
<p>There is a certain <i lang="fr">je ne sais quoi</i> in the air.</p>
<h2>Emboldened</h2>
<p>The
<code>b</code>element is used for text stylistically offset from normal prose without conveying extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typographic presentation is typically emboldened.</p>
<h3>Example</h3>
<p>You enter a small room. Your <b>sword</b> glows brighter. A <b>rat</b> scurries past the corner wall.</p>
<h2>Marked or highlighted text</h2>
<p>The
<code>mark</code>element is used to represent a run of text marked or highlighted for reference purposes. When used in a quotation it indicates a highlight not originally present but added to bring the reader’s attention to that part of the text. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its relevance to the user’s current activity.</p>
<h3>Example</h3>
<p>I also have some
<mark>kitten</mark>s who are visiting me these days. They’re really cute. I think they like my garden! Maybe I should adopt a
<mark>kitten</mark>.</p>
<h2>Edits</h2>
<p>The
<code>del</code>element is used to represent deleted or retracted text which still must remain on the page for some reason. Meanwhile its counterpart, the
<code>ins</code>element, is used to represent inserted text. Both
<code>del</code>and
<code>ins</code>have a
<code>datetime</code>attribute which allows you to include a timestamp directly in the element.</p>
<h3>Example</h3>
<p>She bought
<del datetime="2005-05-30T13:00:00">two</del>
<ins datetime="2005-05-30T13:00:00">five</ins>pairs of shoes.</p>
<h2>Ordered list</h2>
<p>The
<code>ol</code>element denotes an ordered list, and various numbering schemes are available through the CSS (including 1,2,3… a,b,c… i,ii,iii… and so on). Each item requires a surrounding
<code><li></code>and
<code></li></code>tag, to denote individual items within the list (as you may have guessed,
<code>li</code>stands for list item).</p>
<h3>Example</h3>
<ol>
<li>This is an ordered list.</li>
<li>
This is the second item, which contains a sub list
<p></p>
<ol>
<li>This is the sub list, which is also ordered.</li>
<li>It has two items.</li>
</ol>
</li>
<li>This is the final item on this list.</li>
</ol>
<h2>Unordered list</h2>
<p>The
<code>ul</code>element denotes an unordered list (ie. a list of loose items that don’t require numbering, or a bulleted list). Again, each item requires a surrounding
<code><li></code>and
<code></li></code>tag, to denote individual items. Here is an example list showing the constituent parts of the British Isles:</p>
<h3>Example</h3>
<ul>
<li>United Kingdom of Great Britain and Northern Ireland:
<ul>
<li>England</li>
<li>Scotland</li>
<li>Wales</li>
<li>Northern Ireland</li>
</ul>
</li>
<li>Republic of Ireland</li>
<li>Isle of Man</li>
<li>Channel Islands:
<ul>
<li>Bailiwick of Guernsey</li>
<li>Bailiwick of Jersey</li>
</ul>
</li>
</ul>
<p>Sometimes we may want each list item to contain block elements, typically a paragraph or two.</p>
<h3>Example</h3>
<ul>
<li>
<p>The British Isles is an archipelago consisting of the two large islands of Great Britain and Ireland, and many smaller surrounding islands.</p>
</li>
<li>
<p>Great Britain is the largest island of the archipelago. Ireland is the second largest island of the archipelago and lies directly to the west of Great Britain.</p>
</li>
<li>
<p>The full list of islands in the British Isles includes over 1,000 islands, of which 51 have an area larger than 20 km<sup>2</sup>.</p>
</li>
</ul>
<h2>Definition list</h2>
<p>The
<code>dl</code>element is for another type of list called a definition list. Instead of list items, the content of a
<code>dl</code>consists of
<code>dt</code>(Definition Term) and
<code>dd</code>(Definition description) pairs. Though it may be called a “definition list”,
<code>dl</code>can apply to other scenarios where a parent/child relationship is applicable. For example, it may be used for marking up dialogues, with each
<code>dt</code>naming a speaker, and each
<code>dd</code>containing his or her words.</p>
<h3>Example</h3>
<dl>
<dt>This is a term.</dt>
<dd>This is the definition of that term, which both live in a
<code>dl</code>.</dd>
<dt>Here is another term.</dt>
<dd>And it gets a definition too, which is this line.</dd>
<dt>Here is term that shares a definition with the term below.</dt>
<dt>Here is a defined term.</dt>
<dd>
<code>dt</code>terms may stand on their own without an accompanying
<code>dd</code>, but in that case they
<em>share</em>descriptions with the next available
<code>dt</code>. You may not have a
<code>dd</code>without a parent
<code>dt</code>.</dd>
</dl>
<dl class="horizontal clearfix">
<lh>Horizontal definition list</lh>
<dt>This is a term.</dt>
<dd>This is the definition of that term, which both live in a
<code>dl</code>.</dd>
<dt>Here is another term.</dt>
<dd>And it gets a definition too, which is this line.</dd>
</dl>
</article>
</body>
</html>