Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

テキストエリアのフォント設定がproportionalでない場合のフォントを上書きするように変更 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ishikawa999
Copy link
Collaborator

@ishikawa999 ishikawa999 commented Feb 26, 2025

input[type="text"]textarea.wiki-edit のフォント設定を、テキストエリアのフォント設定がproportionalかに応じて切り替えられるよう変更しました。
※ 今までもセレクターの優先順位によって実質的にテキストエリアのフォント設定がpropotionalの時にはテーマのフォントよりもデフォルトのフォントが優先されていましたが今後何か変更があっても上書きしてしまうことが無いように明確にした

加えて、等幅なのに sans-serifになっていた箇所をmonospaceに変更しました。

変更点:

  • textarea-proportional クラスが ない場合 → 等幅フォント (Osaka-Mono, MS Gothic, monospace) を適用
  • textarea-proportional クラスが ある場合 → デフォルトのフォント設定を維持
  • textarea.wiki-editletter-spacingline-height の指定を削除(デフォルトと同じだったため)
テーマ 要素 テキストエリアのフォント設定(デフォルト) テキストエリアのフォント設定(等幅) テキストエリアのフォント設定(プロポーショナル)
default (master) input Arial(UserAgentSheet) Arial(UserAgentSheet) Arial(UserAgentSheet)
textarea monospace(UserAgentSheet) Consolas, Menlo, "Liberation Mono", Courier, monospace "Noto Sans", sans-serif
basic (master) input Osaka-Mono, "MS Gothic", monospace Osaka-Mono, "MS Gothic", monospace デフォルトテーマと同じ
textarea Osaka-Mono, "MS Gothic", monospace Osaka-Mono, "MS Gothic", monospace デフォルトテーマと同じ

備考:

  • textarea.wiki-edit のフォントサイズは 0.875rem に維持しています。これは、テキストエリアのフォント設定に関わらず適用します。

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.

1 participant