mirror of
https://github.com/i-tu/Hasklig.git
synced 2024-07-07 07:26:26 +03:00
CSS: implement Variable Fonts where supported
This commit is contained in:
parent
2fca874145
commit
bfab0851aa
BIN
docs/WOFF2/SourceCodeVariable-Italic.otf.woff2
Normal file
BIN
docs/WOFF2/SourceCodeVariable-Italic.otf.woff2
Normal file
Binary file not shown.
BIN
docs/WOFF2/SourceCodeVariable-Italic.ttf.woff2
Normal file
BIN
docs/WOFF2/SourceCodeVariable-Italic.ttf.woff2
Normal file
Binary file not shown.
BIN
docs/WOFF2/SourceCodeVariable-Roman.otf.woff2
Normal file
BIN
docs/WOFF2/SourceCodeVariable-Roman.otf.woff2
Normal file
Binary file not shown.
BIN
docs/WOFF2/SourceCodeVariable-Roman.ttf.woff2
Normal file
BIN
docs/WOFF2/SourceCodeVariable-Roman.ttf.woff2
Normal file
Binary file not shown.
|
@ -9,7 +9,7 @@
|
|||
<style>
|
||||
|
||||
body {
|
||||
font-family: 'Source Code Pro', monospace;
|
||||
font-family: 'Source Code Pro VF', 'Source Code Pro', monospace;
|
||||
overflow-x: hidden;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
@ -89,7 +89,7 @@
|
|||
content: attr(data-ribbon);
|
||||
|
||||
color: #fff;
|
||||
font: 700 13px 'Source Code Pro';
|
||||
font: 700 13px 'Source Code Pro VF', 'Source Code Pro';
|
||||
line-height: 1.54em;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
|
|
|
@ -123,3 +123,23 @@
|
|||
src: url('WOFF2/TTF/SourceCodePro-BlackIt.ttf.woff2') format('woff2'),
|
||||
url('WOFF/OTF/SourceCodePro-BlackIt.otf.woff') format('woff');
|
||||
}
|
||||
|
||||
@supports (font-variation-settings:normal) {
|
||||
@font-face{
|
||||
font-family: 'Source Code Pro VF';
|
||||
font-weight: 200 900;
|
||||
font-style: normal;
|
||||
font-stretch: normal;
|
||||
src: url('WOFF2/SourceCodeVariable-Roman.otf.woff2') format('woff2-variations'),
|
||||
url('WOFF2/SourceCodeVariable-Roman.ttf.woff2') format('woff2-variations');
|
||||
}
|
||||
@font-face{
|
||||
font-family: 'Source Code Pro VF';
|
||||
font-weight: 200 900;
|
||||
font-style: italic;
|
||||
font-stretch: normal;
|
||||
src: url('WOFF2/SourceCodeVariable-Italic.otf.woff2') format('woff2-variations'),
|
||||
url('WOFF2/SourceCodeVariable-Italic.ttf.woff2') format('woff2-variations');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user