mirror of
https://github.com/boostorg/boostlook.git
synced 2026-02-25 16:22:12 +00:00
fix: use font-variation-settings for weight demos in style guide
Restore font-variation-settings in @font-face and use explicit wght axis values on style guide elements instead of font-weight.
This commit is contained in:
@@ -837,6 +837,7 @@ html:has(.boostlook) {
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
src: url("../font/NotoSansDisplay.ttf") format("truetype"),
|
||||
url("/static/font/notosans.woff2") format("woff2"),
|
||||
@@ -854,6 +855,7 @@ html:has(.boostlook) {
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
src: url("../font/NotoSansDisplay-Italic.ttf") format("truetype"),
|
||||
url("/static/font/notosans_ext.woff2") format("woff2"),
|
||||
|
||||
@@ -641,11 +641,11 @@
|
||||
|
||||
<div class="sect2">
|
||||
<h3 id="_font_weights"><a class="anchor" href="#_font_weights"></a>Font Weight Variations</h3>
|
||||
<div class="paragraph"><p style="font-weight: 300; font-size: var(--typography-font-size-md)">Light (300) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-weight: 400; font-size: var(--typography-font-size-md)">Regular (400) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-weight: 500; font-size: var(--typography-font-size-md)">Medium (500) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-weight: 600; font-size: var(--typography-font-size-md)">Semibold (600) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-weight: 700; font-size: var(--typography-font-size-md)">Bold (700) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-variation-settings: 'wght' 300, 'wdth' 62.5; font-size: var(--typography-font-size-md)">Light (300) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-variation-settings: 'wght' 400, 'wdth' 62.5; font-size: var(--typography-font-size-md)">Regular (400) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-variation-settings: 'wght' 500, 'wdth' 62.5; font-size: var(--typography-font-size-md)">Medium (500) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-variation-settings: 'wght' 600, 'wdth' 62.5; font-size: var(--typography-font-size-md)">Semibold (600) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
<div class="paragraph"><p style="font-variation-settings: 'wght' 700, 'wdth' 62.5; font-size: var(--typography-font-size-md)">Bold (700) — The quick brown fox jumps over the lazy dog.</p></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -28,6 +28,7 @@ html:has(.boostlook) {
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
src: url("../font/NotoSansDisplay.ttf") format("truetype"),
|
||||
url("/static/font/notosans.woff2") format("woff2"),
|
||||
@@ -45,6 +46,7 @@ html:has(.boostlook) {
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 62.5% 100%;
|
||||
font-variation-settings: "wght" 400, "wdth" 62.5;
|
||||
font-display: block;
|
||||
src: url("../font/NotoSansDisplay-Italic.ttf") format("truetype"),
|
||||
url("/static/font/notosans_ext.woff2") format("woff2"),
|
||||
|
||||
Reference in New Issue
Block a user