Skip to content

Commit

Permalink
css: move overflow wrap rule to markdown.css
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed May 17, 2024
1 parent a2ec645 commit 243d8b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Getting Started
title: Getting Started xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxx
description: Learn how to start building your next documentation site with Starlight by Astro.
---

Expand Down
12 changes: 12 additions & 0 deletions packages/starlight/style/markdown.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.sl-markdown-content p,
.sl-markdown-content h1,
.sl-markdown-content h2,
.sl-markdown-content h3,
.sl-markdown-content h4,
.sl-markdown-content h5,
.sl-markdown-content h6,
.sl-markdown-content code {
background-color: rgba(0, 255, 0, 0.2);
overflow-wrap: anywhere;
}

.sl-markdown-content
:not(a, strong, em, del, span, input, code)
+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/starlight/style/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ h4,
h5,
h6,
code {
overflow-wrap: anywhere;
background-color: rgba(255, 0, 0, 0.2);
}

code {
Expand Down
2 changes: 1 addition & 1 deletion packages/starlight/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"languageSelect.accessibleLabel": "Select language",
"menuButton.accessibleLabel": "Menu",
"sidebarNav.accessibleLabel": "Main",
"tableOfContents.onThisPage": "On this page",
"tableOfContents.onThisPage": "On this page xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxx",
"tableOfContents.overview": "Overview",
"i18n.untranslatedContent": "This content is not available in your language yet.",
"page.editLink": "Edit page",
Expand Down

0 comments on commit 243d8b8

Please sign in to comment.