Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented May 23, 2025

close https://github.com/typst-jp/typst-jp.github.io/issues/143

変更点

  • インラインのcode要素のスタイルをGitHub風に変更した

Copy link
Contributor

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 updates the global stylesheet to apply GitHub-style inline code formatting site-wide.

  • Reformats @font-face src declarations
  • Adds scoped CSS rules for inline <code> styling
  • Removes generated backticks around inline code
Comments suppressed due to low confidence (2)

website/src/globals.css:8

  • [nitpick] Consider reverting the @font-face src lines to a single line (e.g. src: url(...) format("woff2");) to improve readability and reduce the risk of unintentional whitespace issues.
format("woff2");

website/src/globals.css:90

  • Ensure your build pipeline supports CSS nesting (PostCSS Nesting or similar); otherwise flatten this to:
.prose code::before,
.prose code::after {
  content: none;
}
&::before,

@kimushun1101
Copy link
Member

いくつか反映されていないものを見つけました。原因はわかりそうでしょうか?

http://localhost:5173/docs/reference/foundations/calcなど。
image

http://localhost:5173/docs/reference/math/attachなど。

image

@3w36zj6
Copy link
Member Author

3w36zj6 commented May 23, 2025

これらは元からcode要素ではないと思います。

https://typst.app/docs/reference/foundations/calc

https://typst.app/docs/reference/math/attach

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

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

ありがとうございます。問題ないと思います。

@3w36zj6 3w36zj6 merged commit bc30385 into main May 24, 2025
3 checks passed
@3w36zj6 3w36zj6 deleted the feature/update-code-element-style branch May 24, 2025 00:45
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.

インラインコードが正しく表示されていない

4 participants