Skip to content

Commit

Permalink
fix: selection color not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Nov 22, 2024
1 parent b0d0c4f commit 8b04646
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/layouts/default.astro
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ const canonical = new URL(path, Astro.site);
<meta property="og:type" content={type} />
<meta property="og:title" content={socialMediaTitle} />
<meta property="og:description" content={socialMediaDescription} />
{images.map((img) => <meta property="og:image" content={img} />)}
{images.map(img => <meta property="og:image" content={img} />)}
<meta property="og:site_name" content="Bjerk" />
<script
data-goatcounter="https://bjerk.goatcounter.com/count"
async
src="//gc.zgo.at/count.js"></script>
src="//gc.zgo.at/count.js"
>
</script>

{
type == "article" && articleAuthor && (
Expand Down Expand Up @@ -196,7 +198,9 @@ const canonical = new URL(path, Astro.site);
src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs-intersect/3.14.3/cdn.min.js"
integrity="sha512-zUi+vHO/A+Mh3PQDYpAhzo3GGnrSTdOdyUkFby6I2p+k5kOhVNDMJMnhaJgZtecorfhS/+Y5PbkDu7iWsnk8+A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
referrerpolicy="no-referrer"
>
</script>
<style>
.hidden {
display: none;
Expand Down Expand Up @@ -284,10 +288,8 @@ const canonical = new URL(path, Astro.site);
}

::selection {
--color-selection-bg: var(--color-focus-bg);
--color-selection-text: var(--color-focus-text);
background: var(--color-selection-bg);
color: var(--color-selection-text);
background: var(--color-focus-bg);
color: var(--color-focus-text);
}

body *::-webkit-scrollbar {
Expand Down Expand Up @@ -381,4 +383,4 @@ const canonical = new URL(path, Astro.site);
}
</style>
</body>
</html>
</html>

0 comments on commit 8b04646

Please sign in to comment.