Embedded Hack fonts (4 styles, 1 enabled)
This commit is contained in:
parent
d28de4b394
commit
e9c74756ac
5 changed files with 33 additions and 0 deletions
BIN
fonts/hack-bold.woff2
Normal file
BIN
fonts/hack-bold.woff2
Normal file
Binary file not shown.
BIN
fonts/hack-bolditalic.woff2
Normal file
BIN
fonts/hack-bolditalic.woff2
Normal file
Binary file not shown.
BIN
fonts/hack-italic.woff2
Normal file
BIN
fonts/hack-italic.woff2
Normal file
Binary file not shown.
BIN
fonts/hack-regular.woff2
Normal file
BIN
fonts/hack-regular.woff2
Normal file
Binary file not shown.
33
style.css
33
style.css
|
|
@ -24,6 +24,36 @@
|
|||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Embedded Hack fonts: regular */
|
||||
@font-face {
|
||||
font-family: 'Hack';
|
||||
src: url('fonts/hack-regular.woff2') format('woff2');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
/* Uncomment the following if bold and italic styles of Hack are needed: */
|
||||
/*
|
||||
* @font-face {
|
||||
* font-family: 'Hack';
|
||||
* src: url('fonts/hack-italic.woff2') format('woff2');
|
||||
* font-weight: 500;
|
||||
* font-style: italic;
|
||||
* }
|
||||
* @font-face {
|
||||
* font-family: 'Hack';
|
||||
* src: url('fonts/hack-bold.woff2') format('woff2');
|
||||
* font-weight: 700;
|
||||
* font-style: normal;
|
||||
* }
|
||||
* @font-face {
|
||||
* font-family: 'Hack';
|
||||
* src: url('fonts/hack-bolditalic.woff2') format('woff2');
|
||||
* font-weight: 700;
|
||||
* font-style: italic;
|
||||
*
|
||||
* }
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0px auto;
|
||||
max-width: 1124px;
|
||||
|
|
@ -56,6 +86,9 @@ a:visited {
|
|||
}
|
||||
|
||||
code {
|
||||
font-family: 'Hack';
|
||||
/* Hack has a larger x-height than Overpass; shrinking it to compensate */
|
||||
font-size: 95%;
|
||||
background-color: #f2f2f2;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue