Skip to content

Commit

Permalink
fix issue #3: ship "Fira Code" font file to display in all browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesv committed Sep 12, 2019
1 parent 6b891a7 commit ca89839
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
Binary file added src/fonts/FiraCodeRegular.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import "normalize.css";
import "@blueprintjs/core/lib/css/blueprint.css";
import "@blueprintjs/datetime/lib/css/blueprint-datetime.css";
import "./styles/root.scss";
import "./fonts/FiraCodeRegular.woff2";

const version = "0.0.2";

Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
font-size: 26px;
margin: 0;
color: $primary;
font-family: 'Fira Code';
font-family: FiraCode;

span {
font-size: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/story-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

[contenteditable] {
display: inline-block;
font-family: 'Fira Code';
font-family: FiraCode;
font-size: 20px;
border: 1px solid transparent;
width: fit-content;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/task-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

textarea {
resize: vertical;
font-family: 'Fira Code';
font-family: FiraCode;
min-height: 200px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/task-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

&__title {
font-size: 16px;
font-family: 'Fira Code';
font-family: FiraCode;
}

&__tags {
Expand Down
5 changes: 4 additions & 1 deletion src/styles/root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ $darkpurple: #5107bf;
@import "./components/save-info";

// Fonts
@import url('https://fonts.googleapis.com/css?family=Fira+Code:400&display=swap');
@font-face {
font-family: FiraCode;
src: local("FiraCodeRegular"), url(../fonts/FiraCodeRegular.woff2) format('woff2');
}

// resets
button.bp3-button {
Expand Down

0 comments on commit ca89839

Please sign in to comment.