summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiDeoo2023-08-02 20:36:28 +0200
committerGitHub2023-08-02 20:36:28 +0200
commita80e180ca5abb85aa0c9db111ef5ae8e0c1bb539 (patch)
tree144580f46d9258391d75d0f36772723848f82a3c
parent290af4f0b5f65619fa4c65609940c3a911a7e698 (diff)
downloadIT.starlight-a80e180ca5abb85aa0c9db111ef5ae8e0c1bb539.tar.gz
IT.starlight-a80e180ca5abb85aa0c9db111ef5ae8e0c1bb539.tar.bz2
IT.starlight-a80e180ca5abb85aa0c9db111ef5ae8e0c1bb539.zip
Prevent repeated table of contents mark on mobile (#445)
-rw-r--r--.changeset/old-ghosts-appear.md5
-rw-r--r--packages/starlight/components/TableOfContents/TableOfContentsList.astro3
2 files changed, 8 insertions, 0 deletions
diff --git a/.changeset/old-ghosts-appear.md b/.changeset/old-ghosts-appear.md
new file mode 100644
index 00000000..6a3c2047
--- /dev/null
+++ b/.changeset/old-ghosts-appear.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/starlight': patch
+---
+
+Prevent repeated table of contents mark on mobile
diff --git a/packages/starlight/components/TableOfContents/TableOfContentsList.astro b/packages/starlight/components/TableOfContents/TableOfContentsList.astro
index c23e075d..27623c64 100644
--- a/packages/starlight/components/TableOfContents/TableOfContentsList.astro
+++ b/packages/starlight/components/TableOfContents/TableOfContentsList.astro
@@ -74,5 +74,8 @@ const { toc, isMobile = false, depth = 0 } = Astro.props;
/* Check mark SVG icon */
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNCAxNCc+PHBhdGggZD0nTTEwLjkxNCA0LjIwNmEuNTgzLjU4MyAwIDAgMC0uODI4IDBMNS43NCA4LjU1NyAzLjkxNCA2LjcyNmEuNTk2LjU5NiAwIDAgMC0uODI4Ljg1N2wyLjI0IDIuMjRhLjU4My41ODMgMCAwIDAgLjgyOCAwbDQuNzYtNC43NmEuNTgzLjU4MyAwIDAgMCAwLS44NTdaJy8+PC9zdmc+Cg==');
mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNCAxNCc+PHBhdGggZD0nTTEwLjkxNCA0LjIwNmEuNTgzLjU4MyAwIDAgMC0uODI4IDBMNS43NCA4LjU1NyAzLjkxNCA2LjcyNmEuNTk2LjU5NiAwIDAgMC0uODI4Ljg1N2wyLjI0IDIuMjRhLjU4My41ODMgMCAwIDAgLjgyOCAwbDQuNzYtNC43NmEuNTgzLjU4MyAwIDAgMCAwLS44NTdaJy8+PC9zdmc+Cg==');
+ -webkit-mask-repeat: no-repeat;
+ mask-repeat: no-repeat;
+ flex-shrink: 0;
}
</style>