Skip to content

Conversation

@nakaterm
Copy link
Contributor

@nakaterm nakaterm commented Dec 15, 2025

行ハイライトの色の設定を追加しました。

ライトテーマ

image

ダークテーマ

image

備考

@cloudflare-workers-and-pages
Copy link

Deploying utcode-learn with  Cloudflare Pages  Cloudflare Pages

Latest commit: 13c89ed
Status: ✅  Deploy successful!
Preview URL: https://e4af386e.utcode-learn.pages.dev
Branch Preview URL: https://add-codeblock-line-highlight.utcode-learn.pages.dev

View logs

Comment on lines -12 to -16
.docusaurus-highlight-code-line {
background-color: rgb(72, 77, 91);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
Copy link
Contributor Author

@nakaterm nakaterm Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

もともとなぜ設定していたのか不明ですが、削除してデフォルト設定に任せる形で良さそうに思います。
現時点で行ハイライト機能を使用している部分はないため影響はないと思われます。

@nakaterm nakaterm marked this pull request as ready for review December 15, 2025 07:36
@nakaterm nakaterm requested a review from Copilot December 15, 2025 07:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the code block line highlighting configuration by migrating from the deprecated class-based approach to the CSS variable-based approach recommended by Docusaurus. The changes align with Docusaurus's classic-typescript template defaults and maintain consistency with the project's existing theme configuration (GitHub for light mode, Dracula for dark mode).

  • Replaces the custom .docusaurus-highlight-code-line class styling with the --docusaurus-highlighted-code-line-bg CSS variable
  • Configures appropriate highlight colors for both light (rgba(0, 0, 0, 0.1)) and dark (rgba(0, 0, 0, 0.3)) themes
  • Removes manual display and padding styles that are now handled internally by Docusaurus

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@chvmvd chvmvd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良いと思います!
丁寧な説明もありがとうございます!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants