forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
1 lines (1 loc) · 3.88 KB
/
Copy pathindex.html
File metadata and controls
1 lines (1 loc) · 3.88 KB
1
--- 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">Link</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>