Fix fonts
This commit is contained in:
parent
7c75e51e2e
commit
e19b5e12a1
2 changed files with 20 additions and 0 deletions
|
@ -23,6 +23,13 @@ const { title } = Astro.props;
|
|||
type="font/ttf"
|
||||
crossorigin
|
||||
/>
|
||||
<link
|
||||
rel="preload"
|
||||
href="/fonts/Ysabeau-Italic[wght].ttf"
|
||||
as="font"
|
||||
type="font/ttf"
|
||||
crossorigin
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
|
@ -98,6 +105,14 @@ const { title } = Astro.props;
|
|||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Ysabeau";
|
||||
src: url("/fonts/Ysabeau-Italic[wght].ttf");
|
||||
font-weight: 300 700;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
@ -49,6 +49,11 @@ import Layout from "../layouts/Layout.astro";
|
|||
.intro {
|
||||
max-width: 40ch;
|
||||
}
|
||||
|
||||
.intro em {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.list {
|
||||
--bullet-offset: 1em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue