forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (90 loc) · 4.56 KB
/
Copy pathindex.html
File metadata and controls
115 lines (90 loc) · 4.56 KB
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
---
layout: single
property_name: font-weight
---
<section id="font-weight" class="property">
<header class="property-header">
<nav class="property-links">
<a class="property-links-direct" href="{{site.url}}/property/font-weight/" data-property-name="font-weight" data-tooltip="Single page for this property" target="_blank">Pop out</a>
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-weight">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-weight" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="property-name">
<a href="{{site.url}}/#font-weight"><span>#</span>font-weight</a>
</h2>
<div class="property-description">
<p>Defines the weight of the text.</p>
</div>
</header>
<style type="text/css">.font-weight { font-size: 1.2em; }</style>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-default" data-tooltip="This is the property's default value">default</code>
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: normal;">font-weight: normal;</code>
</p>
<div class="example-description">
<p>The text is in <strong>normal</strong> weight.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-weight " id="font-weight-normal">Hello world</div>
</div>
</aside>
<style type="text/css">#font-weight-normal{ font-weight:normal;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: bold;">font-weight: bold;</code>
</p>
<div class="example-description">
<p>The text becomes <strong>bold</strong>.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-weight " id="font-weight-bold">Hello world</div>
</div>
</aside>
<style type="text/css">#font-weight-bold{ font-weight:bold;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: 600;">font-weight: 600;</code>
</p>
<div class="example-description">
<p>You can use <strong>numeric</strong> values. They all correspond to a particular <strong>named weight</strong>:</p>
<ul><li><strong>100</strong> Thin</li><li><strong>200</strong> Extra Light</li><li><strong>300</strong> Light</li><li><strong>400</strong> Normal</li><li><strong>500</strong> Medium</li><li><strong>600</strong> Semi Bold</li><li><strong>700</strong> Bold</li><li><strong>800</strong> Extra Bold</li><li><strong>900</strong> Ultra Bold</li></ul><p>If the font family doesn't provide the requested weight, it will use the closest available one.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-weight " id="font-weight-600">Hello world</div>
</div>
</aside>
<style type="text/css">#font-weight-600{ font-weight:600;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: lighter;">font-weight: lighter;</code>
</p>
<div class="example-description">
<p>You can use <strong>relative</strong> keywords: <code>lighter</code> or <code>bolder</code>. The browser will use the next available weight.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-weight " id="font-weight-lighter">Hello world</div>
</div>
</aside>
<style type="text/css">#font-weight-lighter{ font-weight:lighter;}</style>
</section>
</section>