Skip to content

Commit 8d75622

Browse files
committed
added fonts locally and updated css
1 parent 2ff5222 commit 8d75622

7 files changed

+96
-23
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
.vs/
1010
*.pyc
1111
URL Test/bin
12-
URL Test/obj
12+
URL Test/obj
13+
.DS_Store

single-page/css/Inter.ttf

785 KB
Binary file not shown.

single-page/css/Jetbrains.ttf

183 KB
Binary file not shown.

single-page/css/pdf-styles-csharp.css

+23-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");
2-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;500&family=JetBrains+Mono&display=swap");
1+
@font-face {
2+
font-family: Inter;
3+
src: url(Inter.ttf);
4+
}
5+
@font-face {
6+
font-family: Jetbrains;
7+
src: url(Jetbrains.ttf);
8+
}
39
html {
4-
font-family: "Inter";
10+
font-family: Inter;
511
}
612

713
.article-body {
@@ -42,6 +48,7 @@ h6 {
4248
table {
4349
page-break-inside: avoid;
4450
width: 100%;
51+
table-layout: fixed;
4552
}
4653

4754
table,
@@ -89,7 +96,7 @@ pre {
8996
padding: 2rem;
9097
overflow-x: auto;
9198
white-space: pre-wrap;
92-
font-family: "JetBrains Mono";
99+
font-family: JetBrains;
93100
font-size: 13px;
94101
}
95102
pre.csharp {
@@ -119,6 +126,17 @@ pre.csharp::before {
119126

120127
code {
121128
color: #dc4343;
122-
font-family: "JetBrains Mono";
129+
font-family: JetBrains;
123130
font-size: 15px;
131+
}
132+
133+
.page-breadcrumb {
134+
font-size: 14px;
135+
color: #798492;
136+
}
137+
138+
.page-heading {
139+
font-size: 32px;
140+
border-bottom: 1px solid #e4e6ea;
141+
padding-bottom: 1rem;
124142
}/*# sourceMappingURL=pdf-styles-csharp.css.map */

single-page/css/pdf-styles-csharp.scss

+24-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
1+
@font-face {
2+
font-family: Inter;
3+
src: url(Inter.ttf);
4+
}
5+
6+
@font-face {
7+
font-family: Jetbrains;
8+
src: url(Jetbrains.ttf);
9+
}
210

3-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500&family=JetBrains+Mono&display=swap');
411

512
html {
6-
font-family: 'Inter';
13+
font-family: Inter;
714
}
815

916
.article-body {
@@ -44,6 +51,7 @@ h6 {
4451
table {
4552
page-break-inside: avoid;
4653
width: 100%;
54+
table-layout: fixed;
4755

4856
}
4957

@@ -93,7 +101,7 @@ pre {
93101
padding: 2rem;
94102
overflow-x: auto;
95103
white-space: pre-wrap;
96-
font-family: 'JetBrains Mono';
104+
font-family: JetBrains;
97105
font-size: 13px;
98106

99107
&.csharp {
@@ -125,6 +133,17 @@ pre {
125133

126134
code {
127135
color: #dc4343;
128-
font-family: 'JetBrains Mono';
136+
font-family: JetBrains;
129137
font-size: 15px;
130138
}
139+
140+
.page-breadcrumb {
141+
font-size: 14px;
142+
color: #798492;
143+
}
144+
145+
.page-heading {
146+
font-size: 32px;
147+
border-bottom: 1px solid #e4e6ea;
148+
padding-bottom: 1rem;
149+
}

single-page/css/pdf-styles-py.css

+24-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");
2-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;500&family=JetBrains+Mono&display=swap");
1+
@font-face {
2+
font-family: Inter;
3+
src: url(Inter.ttf);
4+
}
5+
@font-face {
6+
font-family: Jetbrains;
7+
src: url(Jetbrains.ttf);
8+
}
39
html {
4-
font-family: "Inter";
10+
font-family: Inter;
511
}
612

713
.article-body {
@@ -42,6 +48,7 @@ h6 {
4248
table {
4349
page-break-inside: avoid;
4450
width: 100%;
51+
table-layout: fixed;
4552
}
4653

4754
table,
@@ -89,7 +96,7 @@ pre {
8996
padding: 2rem;
9097
overflow-x: auto;
9198
white-space: pre-wrap;
92-
font-family: "JetBrains Mono";
99+
font-family: Jetbrains;
93100
font-size: 13px;
94101
}
95102
pre.python {
@@ -119,6 +126,17 @@ pre.python::before {
119126

120127
code {
121128
color: #dc4343;
122-
font-family: "JetBrains Mono";
129+
font-family: Jetbrains;
123130
font-size: 15px;
124-
}/*# sourceMappingURL=pdf-styles.css.map */
131+
}
132+
133+
.page-breadcrumb {
134+
font-size: 14px;
135+
color: #798492;
136+
}
137+
138+
.page-heading {
139+
font-size: 32px;
140+
border-bottom: 1px solid #e4e6ea;
141+
padding-bottom: 1rem;
142+
}/*# sourceMappingURL=pdf-styles-py.css.map */

single-page/css/pdf-styles-py.scss

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
1+
@font-face {
2+
font-family: Inter;
3+
src: url(Inter.ttf);
4+
}
25

3-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500&family=JetBrains+Mono&display=swap');
6+
@font-face {
7+
font-family: Jetbrains;
8+
src: url(Jetbrains.ttf);
9+
}
410

511
html {
6-
font-family: 'Inter';
12+
font-family: Inter;
713
}
814

915
.article-body {
@@ -44,7 +50,7 @@ h6 {
4450
table {
4551
page-break-inside: avoid;
4652
width: 100%;
47-
53+
table-layout: fixed;
4854
}
4955

5056
table,
@@ -93,7 +99,7 @@ pre {
9399
padding: 2rem;
94100
overflow-x: auto;
95101
white-space: pre-wrap;
96-
font-family: 'JetBrains Mono';
102+
font-family: Jetbrains;
97103
font-size: 13px;
98104

99105
&.python {
@@ -125,6 +131,17 @@ pre {
125131

126132
code {
127133
color: #dc4343;
128-
font-family: 'JetBrains Mono';
134+
font-family: Jetbrains;
129135
font-size: 15px;
130136
}
137+
138+
.page-breadcrumb {
139+
font-size: 14px;
140+
color: #798492;
141+
}
142+
143+
.page-heading {
144+
font-size: 32px;
145+
border-bottom: 1px solid #e4e6ea;
146+
padding-bottom: 1rem;
147+
}

0 commit comments

Comments
 (0)