Skip to content

Commit 744c5eb

Browse files
patmellonbrsoff
authored andcommitted
[PYT-121] Update project fonts (pytorch#33)
1 parent 6596ebe commit 744c5eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+70
-29
lines changed

_sass/base_styles.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
* {
2-
font-family: 'Lato', sans-serif;
2+
font-family: FreightSans, Helvetica Neue, Helvetica, Arial, sans-serif;
33
font-weight: 300;
44
}
55

6+
h1, h2, h3, h4, h5, h6 {
7+
font-family: FreightSans;
8+
}
9+
610
p {
711
margin-bottom: 1.25rem;
812
}
@@ -502,7 +506,7 @@ pre {
502506

503507
&.slack,
504508
&.github,
505-
&.pytorch {
509+
&.pytorch-resource {
506510
&:before {
507511
content: "";
508512
background-size: 32px 32px;
@@ -533,7 +537,7 @@ pre {
533537
}
534538
}
535539

536-
&.pytorch {
540+
&.pytorch-resource {
537541
&:before {
538542
background-image: url($baseurl + "/assets/images/logo-icon.svg");
539543
}

_sass/blog.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454
h4 {
5555
a {
56+
font-family: FreightSans;
5657
font-size: rem(24px);
5758
color: $black;
5859
letter-spacing: 0;
@@ -91,6 +92,7 @@
9192
margin-right: rem(500px);
9293

9394
a {
95+
font-family: FreightSans;
9496
font-size: rem(56px);
9597
color: $not_quite_black;
9698
letter-spacing: -1.65px;

_sass/bootstrap-overrides.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
padding-left: 0;
1414
padding-right: 0;
1515
}
16+
17+
code, kbd, pre, samp {
18+
font-family: IBMPlexMono,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
19+
}

_sass/fonts.scss

Lines changed: 56 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,77 @@
11
@font-face {
2-
font-family: "Lato";
3-
src: url($baseurl + "/assets/fonts/Lato/lato-light.eot");
4-
src: url($baseurl + "/assets/fonts/Lato/lato-light.eot?#iefix") format("embedded-opentype"), url($baseurl + "/assets/fonts/Lato/lato-light.woff2") format("woff2"), url($baseurl + "/assets/fonts/Lato/lato-light.woff") format("woff"), url($baseurl + "/assets/fonts/Lato/lato-light.ttf") format("truetype");
5-
font-weight: 300;
2+
font-family: FreightSans;
3+
font-weight: 400;
64
font-style: normal;
5+
font-display: swap;
6+
unicode-range: u+0020-007f;
7+
src: local("FreightSansLFPro-Regular"),
8+
url($baseurl + "/assets/fonts/FreightSans/freight-sans-regular.woff2")
9+
format("woff2"),
10+
url($baseurl + "/assets/fonts/FreightSans/freight-sans-regular.woff")
11+
format("woff");
712
}
813

914
@font-face {
10-
font-family: "Lato";
11-
src: url($baseurl + "/assets/fonts/Lato/lato-lightitalic.eot");
12-
src: url($baseurl + "/assets/fonts/Lato/lato-lightitalic.eot?#iefix") format("embedded-opentype"), url($baseurl + "/assets/fonts/Lato/lato-lightitalic.woff2") format("woff2"), url($baseurl + "/assets/fonts/Lato/lato-lightitalic.woff") format("woff"), url($baseurl + "/assets/fonts/Lato/lato-lightitalic.ttf") format("truetype");
15+
font-family: FreightSans;
1316
font-weight: 300;
14-
font-style: italic;
17+
font-style: normal;
18+
font-display: swap;
19+
unicode-range: u+0020-007f;
20+
src: local("FreightSansLFPro-Light"),
21+
url($baseurl + "/assets/fonts/FreightSans/freight-sans-light.woff2")
22+
format("woff2"),
23+
url($baseurl + "/assets/fonts/FreightSans/freight-sans-light.woff")
24+
format("woff");
1525
}
1626

1727
@font-face {
18-
font-family: "Lato";
19-
src: url($baseurl + "/assets/fonts/Lato/lato-regular.eot");
20-
src: url($baseurl + "/assets/fonts/Lato/lato-regular.eot?#iefix") format("embedded-opentype"), url($baseurl + "/assets/fonts/Lato/lato-regular.woff2") format("woff2"), url($baseurl + "/assets/fonts/Lato/lato-regular.woff") format("woff"), url($baseurl + "/assets/fonts/Lato/lato-regular.ttf") format("truetype");
21-
font-weight: 400;
28+
font-family: IBMPlexMono;
29+
font-weight: 600;
2230
font-style: normal;
31+
font-display: swap;
32+
unicode-range: u+0020-007f;
33+
src: local("IBMPlexMono-SemiBold"),
34+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2")
35+
format("woff2"),
36+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff")
37+
format("woff");
2338
}
2439

2540
@font-face {
26-
font-family: "Lato";
27-
src: url($baseurl + "/assets/fonts/Lato/lato-italic.eot");
28-
src: url($baseurl + "/assets/fonts/Lato/lato-italic.eot?#iefix") format("embedded-opentype"), url($baseurl + "/assets/fonts/Lato/lato-italic.woff2") format("woff2"), url($baseurl + "/assets/fonts/Lato/lato-italic.woff") format("woff"), url($baseurl + "/assets/fonts/Lato/lato-italic.ttf") format("truetype");
29-
font-weight: 400;
30-
font-style: italic;
41+
font-family: IBMPlexMono;
42+
font-weight: 500;
43+
font-style: normal;
44+
font-display: swap;
45+
unicode-range: u+0020-007f;
46+
src: local("IBMPlexMono-Medium"),
47+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2")
48+
format("woff2"),
49+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-Medium.woff")
50+
format("woff");
3151
}
3252

3353
@font-face {
34-
font-family: "Lato";
35-
src: url($baseurl + "/assets/fonts/Lato/lato-bold.eot");
36-
src: url($baseurl + "/assets/fonts/Lato/lato-bold.eot?#iefix") format("embedded-opentype"), url($baseurl + "/assets/fonts/Lato/lato-bold.woff2") format("woff2"), url($baseurl + "/assets/fonts/Lato/lato-bold.woff") format("woff"), url($baseurl + "/assets/fonts/Lato/lato-bold.ttf") format("truetype");
37-
font-weight: 700;
54+
font-family: IBMPlexMono;
55+
font-weight: 400;
3856
font-style: normal;
57+
font-display: swap;
58+
unicode-range: u+0020-007f;
59+
src: local("IBMPlexMono-Regular"),
60+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-Regular.woff2")
61+
format("woff2"),
62+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-Regular.woff")
63+
format("woff");
3964
}
4065

4166
@font-face {
42-
font-family: "Lato";
43-
src: url($baseurl + "/assets/fonts/Lato/lato-bolditalic.eot");
44-
src: url($baseurl + "/assets/fonts/Lato/lato-bolditalic.eot?#iefix") format("embedded-opentype"), url($baseurl + "/assets/fonts/Lato/lato-bolditalic.woff2") format("woff2"), url($baseurl + "/assets/fonts/Lato/lato-bolditalic.woff") format("woff"), url($baseurl + "/assets/fonts/Lato/lato-bolditalic.ttf") format("truetype");
45-
font-weight: 700;
46-
font-style: italic;
67+
font-family: IBMPlexMono;
68+
font-weight: 300;
69+
font-style: normal;
70+
font-display: swap;
71+
unicode-range: u+0020-007f;
72+
src: local("IBMPlexMono-Light"),
73+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-Light.woff2")
74+
format("woff2"),
75+
url($baseurl + "/assets/fonts/IBMPlexMono/IBMPlexMono-Light.woff")
76+
format("woff");
4777
}

_sass/similar-posts-module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
h4 {
1212
a {
13+
font-family: FreightSans;
1314
font-size: rem(24px);
1415
color: $black;
1516
letter-spacing: 0;
17.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
49.5 KB
Binary file not shown.
35.1 KB
Binary file not shown.
50.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

assets/fonts/Lato/lato-bold.eot

-250 KB
Binary file not shown.

assets/fonts/Lato/lato-bold.ttf

-587 KB
Binary file not shown.

assets/fonts/Lato/lato-bold.woff

-302 KB
Binary file not shown.

assets/fonts/Lato/lato-bold.woff2

-181 KB
Binary file not shown.

assets/fonts/Lato/lato-bolditalic.eot

-260 KB
Binary file not shown.

assets/fonts/Lato/lato-bolditalic.ttf

-608 KB
Binary file not shown.
-316 KB
Binary file not shown.
-189 KB
Binary file not shown.

assets/fonts/Lato/lato-italic.eot

-262 KB
Binary file not shown.

assets/fonts/Lato/lato-italic.ttf

-624 KB
Binary file not shown.

assets/fonts/Lato/lato-italic.woff

-321 KB
Binary file not shown.

assets/fonts/Lato/lato-italic.woff2

-191 KB
Binary file not shown.

assets/fonts/Lato/lato-light.eot

-247 KB
Binary file not shown.

assets/fonts/Lato/lato-light.ttf

-55.4 KB
Binary file not shown.

assets/fonts/Lato/lato-light.woff

-30.3 KB
Binary file not shown.

assets/fonts/Lato/lato-light.woff2

-23.6 KB
Binary file not shown.
-259 KB
Binary file not shown.
-614 KB
Binary file not shown.
-318 KB
Binary file not shown.
-188 KB
Binary file not shown.

assets/fonts/Lato/lato-regular.eot

-248 KB
Binary file not shown.

assets/fonts/Lato/lato-regular.ttf

-593 KB
Binary file not shown.

assets/fonts/Lato/lato-regular.woff

-302 KB
Binary file not shown.

assets/fonts/Lato/lato-regular.woff2

-178 KB
Binary file not shown.

0 commit comments

Comments
 (0)