Self host fonts
No accidental tracking for readers.
This commit is contained in:
@@ -100,6 +100,36 @@
|
||||
/* Make LiveView wrapper divs transparent for layout */
|
||||
[data-phx-session], [data-phx-teleported-src] { display: contents }
|
||||
|
||||
/* Self-hosted fonts — no external requests */
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: normal;
|
||||
font-weight: 300 900;
|
||||
font-display: swap;
|
||||
src: url(/fonts/fraunces.woff2) format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: italic;
|
||||
font-weight: 300 900;
|
||||
font-display: swap;
|
||||
src: url(/fonts/fraunces-italic.woff2) format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Sans 3';
|
||||
font-style: normal;
|
||||
font-weight: 300 900;
|
||||
font-display: swap;
|
||||
src: url(/fonts/sourcesans3.woff2) format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Sans 3';
|
||||
font-style: italic;
|
||||
font-weight: 300 900;
|
||||
font-display: swap;
|
||||
src: url(/fonts/sourcesans3-italic.woff2) format('woff2');
|
||||
}
|
||||
|
||||
/* Typography */
|
||||
.font-display { font-family: 'Fraunces', serif; }
|
||||
body { font-family: 'Source Sans 3', sans-serif; }
|
||||
|
||||
Reference in New Issue
Block a user