「MediaWiki:Common.css」の版間の差分

提供: MochiuWiki : SUSE, EC, PCB

📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

編集の要約なし
ページの白紙化
タグ: 白紙化 手動差し戻し
 
(同じ利用者による、間の153版が非表示)
1行目: 1行目:
@media (prefers-color-scheme: dark) {
  /* コードブロック全体の背景と基本文字色 */
  .mw-highlight pre {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
  }


  /* Python特有の要素 */
  .mw-highlight .k  { color: #569cd6 !important; }  /* キーワード (def, print など) */
  .mw-highlight .nf { color: #4ec9b0 !important; }  /* 関数名 (dinner_menu) */
  .mw-highlight .s  { color: #ce9178 !important; }  /* 文字列 */
  .mw-highlight .c1 { color: #6a9955 !important; }  /* コメント */
  .mw-highlight .p  { color: #d4d4d4 !important; }  /* 括弧や句読点 */
  .mw-highlight .n  { color: #9cdcfe !important; }  /* 変数名 */
  .mw-highlight .o  { color: #d4d4d4 !important; }  /* 演算子 */
  /* C/C++の要素 */
  .mw-highlight .cp { color: #c678dd !important; }    /* プリプロセッサ (#include, #define など) */
  .mw-highlight .kt { color: #569cd6 !important; }    /* 型名 (int, void など) */
  .mw-highlight .nn { color: #61afef !important; }    /* 名前空間 */
  .mw-highlight .nc { color: #4ec9b0 !important; }    /* クラス名 */
  .mw-highlight .nl { color: #61afef !important; }    /* ライブラリ名 */
  .mw-highlight .c1 { color: #6a9955 !important; }    /* 単行コメント */
  .mw-highlight .cm { color: #6a9955 !important; }    /* 複数行コメント */
  .mw-highlight .na { color: #9cdcfe !important; }    /* 属性名 */
  /* テンプレート関連 */
  .mw-highlight .ops { color: #d4d4d4 !important; }  /* テンプレート演算子 */
  .mw-highlight .tel { color: #4ec9b0 !important; }  /* テンプレート要素 */
  /* 数値 */
  .mw-highlight .mi { color: #b5cea8 !important; }    /* 整数 */
  .mw-highlight .mf { color: #b5cea8 !important; }    /* 浮動小数点数 */
  /* 行番号がある場合 */
  .mw-highlight .linenos {
    background-color: #2d2d2d !important;
    color: #858585 !important;
    border-right: 1px solid #404040 !important;
  }
}

2025年12月19日 (金) 18:42時点における最新版