Browse Source

Fix icons by using full Hack font

master
Paweł Romanowski 5 years ago
parent
commit
20ca6e98a6
  1. 7
      README.md
  2. 3
      sass/font-hack-subset.scss
  3. 4
      sass/pagination.scss

7
README.md

@ -282,9 +282,12 @@ default_language = "en"
### Hack font subset
By default, the theme uses a subset of the Hack font.
By default, the theme uses a mixed subset of the Hack font.
Normal weight font uses full character set
(for Unicode icons and special symbols), but all others
(bold, italic etc) use a limited subset.
This results in much smaller transfer sizes, but
This results in much smaller transfer sizes, but the subset
might not contain all the Unicode characters you need.
You can enable full unicode support in `config.toml`:

3
sass/font-hack-subset.scss

@ -6,7 +6,8 @@
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('fonts/hack-regular-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular-subset.woff?sha=3114f1256') format('woff');
/* Use full version (not a subset) for unicode icon support */
src: url('fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular.woff?sha=3114f1256') format('woff');
font-weight: 400;
font-style: normal;
}

4
sass/pagination.scss

@ -74,8 +74,4 @@
white-space: nowrap;
overflow: hidden;
}
&__icon {
font-family: sans-serif;
}
}

Loading…
Cancel
Save