Skip to content

Commit 4adbf9d

Browse files
author
Ludwig Schubert
committed
Scope footer styles to avoid leaking them in pre-rendered mode
1 parent f933920 commit 4adbf9d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/distill-components/distill-footer-template.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,45 @@ export const footerTemplate = `
1313
contain: content;
1414
}
1515
16-
.logo svg {
16+
.footer-container .logo svg {
1717
width: 24px;
1818
position: relative;
1919
top: 4px;
2020
margin-right: 2px;
2121
}
2222
23-
.logo svg path {
23+
.footer-container .logo svg path {
2424
fill: none;
2525
stroke: rgba(255, 255, 255, 0.8);
2626
stroke-width: 3px;
2727
}
2828
29-
.logo {
29+
.footer-container .logo {
3030
font-size: 17px;
3131
font-weight: 200;
3232
color: rgba(255, 255, 255, 0.8);
3333
text-decoration: none;
3434
margin-right: 6px;
3535
}
3636
37-
.container {
37+
.footer-container {
3838
grid-column: text;
3939
}
4040
41-
.nav {
41+
.footer-container .nav {
4242
font-size: 0.9em;
4343
margin-top: 1.5em;
4444
}
4545
46-
.nav a {
46+
.footer-container .nav a {
4747
color: rgba(255, 255, 255, 0.8);
4848
margin-right: 6px;
4949
text-decoration: none;
5050
}
5151
5252
</style>
5353
54-
<div class='container'>
54+
<div class='footer-container'>
5555
5656
<a href="/" class="logo">
5757
${logo}

0 commit comments

Comments
 (0)