Skip to content

Commit 5c9b0ce

Browse files
authored
Fix css styles (#14)
1 parent b78c5df commit 5c9b0ce

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/.astro-template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
415a8a0c722c4c49667c511482b581236f277b4f
1+
f181b3f5f383e7d8f287c663e57df24b88f85b26

app/app/src/components/RenderDocument.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ const footerText = data.footer || null
8888

8989
</div>
9090

91-
<style is:global>
91+
<style lang="scss" is:global>
9292
@page {
9393
size: A4;
9494
margin: 0;
9595
}
9696
</style>
9797

98-
<style>
99-
@reference '~/styles/tailwind.css';
98+
<style lang="scss">
99+
@reference "~/styles/tailwind.css";
100100

101101
.main {
102102
@apply flex flex-col justify-start items-center;
@@ -202,7 +202,7 @@ const footerText = data.footer || null
202202
}
203203
}
204204

205-
:global(h1) {
205+
:global h1.a {
206206
@apply mb-8 text-3xl text-center font-bold;
207207
@apply break-after-avoid;
208208
}

app/app/src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ function getTitleFromBody(body: string | undefined): string | undefined
9393

9494
</Layout>
9595

96-
<style>
97-
@reference '~/styles/tailwind.css';
96+
<style lang="scss">
97+
@reference "~/styles/tailwind.css";
9898

9999
:global(body) {
100100
@apply p-6;

0 commit comments

Comments
 (0)