編集の要約なし タグ: 手動差し戻し |
編集の要約なし |
||
| 1行目: | 1行目: | ||
/* MediaWiki:Common.css */ | /* MediaWiki:Common.css */ | ||
/* ライトモード/ | /* ライトモード/ダークモード対応版 */ | ||
/* ここに記述したCSSはすべての外装に反映されます */ | /* ここに記述したCSSはすべての外装に反映されます */ | ||
| 138行目: | 138行目: | ||
} | } | ||
/* SyntaxHighlight - | /* =================================== | ||
SyntaxHighlight - ライトモード | |||
=================================== */ | |||
/* SyntaxHighlight - ライトモード時のキーワード色 */ | |||
.mw-highlight .k, /* Keyword */ | .mw-highlight .k, /* Keyword */ | ||
.mw-highlight .kd, /* Keyword.Declaration */ | .mw-highlight .kd, /* Keyword.Declaration */ | ||
| 145行目: | 149行目: | ||
.mw-highlight .kp, /* Keyword.Pseudo */ | .mw-highlight .kp, /* Keyword.Pseudo */ | ||
.mw-highlight .kr { /* Keyword.Reserved */ | .mw-highlight .kr { /* Keyword.Reserved */ | ||
/* | /* ライトモード時はデフォルトの色を使用(通常は濃い青) */ | ||
/* | } | ||
/* プリプロセッサディレクティブ (#include, #define等) - ライトモード */ | |||
.mw-highlight .cp { /* Comment.Preproc */ | |||
color: #e83e8c !important; | |||
background-color: rgba(232, 62, 140, 0.08) !important; | |||
font-weight: 600 !important; | |||
font-style: normal !important; | |||
padding: 2px 6px !important; | |||
border-radius: 3px !important; | |||
border-left: 3px solid rgba(232, 62, 140, 0.4) !important; | |||
display: inline-block !important; | |||
margin: 0 2px !important; | |||
} | |||
/* プリプロセッサが複数行にわたる場合 */ | |||
.mw-highlight .cp + .cp { | |||
margin-top: 2px !important; | |||
} | |||
/* プリプロセッサのホバー効果 - ライトモード */ | |||
.mw-highlight .cp:hover { | |||
background-color: rgba(232, 62, 140, 0.15) !important; | |||
box-shadow: 0 0 5px rgba(232, 62, 140, 0.3) !important; | |||
transition: all 0.2s ease !important; | |||
} | } | ||
| 429行目: | 457行目: | ||
transform: translateX(4px) scale(0.98); | transform: translateX(4px) scale(0.98); | ||
transition: all 0.1s ease; | transition: all 0.1s ease; | ||
} | } | ||
| 547行目: | 562行目: | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
/* =================================== | |||
SyntaxHighlight - ダークモード | |||
=================================== */ | |||
/* SyntaxHighlight - キーワードの色を明るく */ | /* SyntaxHighlight - キーワードの色を明るく */ | ||
.mw-highlight .k, /* Keyword */ | .mw-highlight .k, /* Keyword */ | ||
| 578行目: | 597行目: | ||
.mw-highlight .c, /* Comment */ | .mw-highlight .c, /* Comment */ | ||
.mw-highlight .cm, /* Comment.Multiline */ | .mw-highlight .cm, /* Comment.Multiline */ | ||
.mw-highlight .c1, /* Comment.Single */ | .mw-highlight .c1, /* Comment.Single */ | ||
.mw-highlight .cs { /* Comment.Special */ | .mw-highlight .cs { /* Comment.Special */ | ||
color: #9ca3af !important; /* 明るいグレー */ | color: #9ca3af !important; /* 明るいグレー */ | ||
font-style: italic; | font-style: italic; | ||
} | |||
/* プリプロセッサディレクティブ - ダークモード */ | |||
.mw-highlight .cp { /* Comment.Preproc */ | |||
color: #ff6ec7 !important; | |||
background-color: rgba(255, 110, 199, 0.12) !important; | |||
font-weight: 600 !important; | |||
font-style: normal !important; | |||
padding: 2px 6px !important; | |||
border-radius: 3px !important; | |||
border-left: 3px solid rgba(255, 110, 199, 0.4) !important; | |||
display: inline-block !important; | |||
margin: 0 2px !important; | |||
} | |||
/* プリプロセッサのホバー効果 - ダークモード */ | |||
.mw-highlight .cp:hover { | |||
background-color: rgba(255, 110, 199, 0.2) !important; | |||
box-shadow: 0 0 5px rgba(255, 110, 199, 0.4) !important; | |||
transition: all 0.2s ease !important; | |||
} | } | ||
| 592行目: | 630行目: | ||
.mw-highlight .sc, /* String.Char */ | .mw-highlight .sc, /* String.Char */ | ||
.mw-highlight .sd { /* String.Doc */ | .mw-highlight .sd { /* String.Doc */ | ||
color: #a5d6a7 !important; /* | color: #a5d6a7 !important; /* 明るい緑 */ | ||
} | } | ||