Skip to content

Commit c910d40

Browse files
committed
fix: replace :root with :global()
1 parent 4083cd6 commit c910d40

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

src/components/changelog/ChangelogEntryList.astro

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,19 @@ const { entries } = Astro.props;
4949
})
5050
}
5151

52+
<!--TODO: Solve DRY with what's in src/pages/changelog/post/[...slug].astro-->
5253
<style>
53-
:root {
54-
.sl-container {
55-
--sl-content-width: 50rem !important;
56-
margin-inline: auto !important;
57-
}
54+
:global(.sl-container) {
55+
--sl-content-width: 50rem !important;
56+
margin-inline: auto !important;
57+
}
5858

59-
.feedback-prompt-content {
60-
display: none !important;
61-
}
59+
:global(.feedback-prompt-content) {
60+
display: none !important;
61+
}
6262

63-
#footer-links {
64-
justify-content: center;
65-
}
63+
:global(#footer-links) {
64+
justify-content: center;
6665
}
6766

6867
.sl-steps {

src/pages/changelog/post/[...slug].astro

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,14 @@ const props = {
6262
</div>
6363
</StarlightPage>
6464

65+
<!--TODO: Solve DRY with what's in src/components/changelog/ChangelogEntryList.astro-->
6566
<style>
66-
:root {
67-
.sl-container {
68-
--sl-content-width: 50rem !important;
69-
margin-inline: auto !important;
70-
}
67+
:global(.sl-container) {
68+
--sl-content-width: 50rem !important;
69+
margin-inline: auto !important;
70+
}
7171

72-
#footer-links {
73-
justify-content: center;
74-
}
72+
:global(#footer-links) {
73+
justify-content: center;
7574
}
7675
</style>

0 commit comments

Comments
 (0)