Skip to content

Commit

Permalink
refactor: remove local @font-face, use woff2 from vercel host
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidZORO committed Oct 9, 2020
1 parent 4f40cbc commit 2c0a17a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vercel
!/zpix.woff2
11 changes: 8 additions & 3 deletions website/app.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@font-face {
font-family: ZpixReview;
src: url(./zpix.woff2?v2020-2);
font-family: ZpixReviewLocal;
src: url(./zpix.woff2?zpix--local);
}

@font-face {
font-family: ZpixReviewOnline;
src: url(https://zpix.now.sh/zpix.woff2?zpix--online);
}

.hide {
Expand Down Expand Up @@ -45,7 +50,7 @@
color: #111;
font-size: 24px;
line-height: 1.6;
font-family: ZpixReview, sans-serif;
font-family: ZpixReviewLocal, ZpixReviewOnline, sans-serif;
-webkit-font-smoothing: none;
font-feature-settings: 'tnum';
}
Expand Down
Binary file modified website/zpix.woff2
Binary file not shown.

0 comments on commit 2c0a17a

Please sign in to comment.