Skip to content

Commit 31461de

Browse files
authored
Fix: vendor google fonts
[CSS] Local fonts, working fonts!
2 parents 0a05376 + b8fbbf7 commit 31461de

File tree

7 files changed

+56
-12
lines changed

7 files changed

+56
-12
lines changed
45.1 KB
Binary file not shown.
7.63 KB
Binary file not shown.
8.39 KB
Binary file not shown.
8.46 KB
Binary file not shown.
7.7 KB
Binary file not shown.

_static/pyos.css

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
/* Darkmode Adjustments*/
1111
--pyos-dm-color-primary: #C483E0;
12+
13+
/* Fonts (overrides base theme) */
14+
--pst-font-family-heading: 'Poppins', sans-serif;
15+
--pst-font-family-base: 'Poppins', sans-serif;
16+
--pyos-font-family-h1: 'Itim', serif;
17+
1218
}
1319

1420
html, body {
@@ -32,7 +38,6 @@ html, body {
3238

3339
html, body {
3440
font-size: 1.02rem;
35-
font-family: 'Poppins', sans-serif!important;
3641
}
3742

3843
body p {
@@ -43,14 +48,10 @@ body p {
4348
margin-bottom: 70px!important;
4449
}
4550

46-
h2, h3, h4 {
47-
font-family: 'Poppins', sans-serif!important;
48-
}
49-
5051
h1 {
5152
margin-top: 10px;
5253
margin-bottom: 40px;
53-
font-family: 'Itim' !important;
54+
font-family: var(--pyos-font-family-h1) !important;
5455
color: var(--pyos-h1-color);
5556
}
5657
h2 {
@@ -198,3 +199,52 @@ html[data-theme=dark] {
198199
--pst-color-link-hover: var(--pyos-dm-color-primary);
199200
--pyos-h1-color: var(--pyos-color-light);
200201
}
202+
203+
204+
/* -------------------------------------- */
205+
/* Generated by https://gwfh.mranftl.com/ */
206+
207+
/* poppins-regular - latin */
208+
@font-face {
209+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
210+
font-family: 'Poppins';
211+
font-style: normal;
212+
font-weight: 400;
213+
src: url('./fonts/poppins-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
214+
}
215+
216+
/* poppins-italic - latin */
217+
@font-face {
218+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
219+
font-family: 'Poppins';
220+
font-style: italic;
221+
font-weight: 400;
222+
src: url('./fonts/poppins-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
223+
}
224+
225+
/* poppins-700 - latin */
226+
@font-face {
227+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
228+
font-family: 'Poppins';
229+
font-style: normal;
230+
font-weight: 700;
231+
src: url('./fonts/poppins-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
232+
}
233+
234+
/* poppins-700italic - latin */
235+
@font-face {
236+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
237+
font-family: 'Poppins';
238+
font-style: italic;
239+
font-weight: 700;
240+
src: url('./fonts/poppins-v20-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
241+
}
242+
243+
/* itim-regular - latin */
244+
@font-face {
245+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
246+
font-family: 'Itim';
247+
font-style: normal;
248+
font-weight: 400;
249+
src: url('./fonts/itim-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
250+
}

_templates/header.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)