|
|
127行目: |
127行目: |
|
| |
|
| /* mw-highlightクラス内のpreタグの設定 */ | | /* mw-highlightクラス内のpreタグの設定 */ |
| /*.mw-highlight > pre {*/
| |
| /* color: #f0f0f0 !important;*/
| |
| /* background: linear-gradient(to right,*/
| |
| /* rgb(10, 10, 10) 0%,*/
| |
| /* rgb(11, 11, 11) 10%,*/
| |
| /* rgb(12, 12, 12) 20%,*/
| |
| /* rgb(13, 13, 13) 30%,*/
| |
| /* rgb(14, 14, 14) 40%,*/
| |
| /* rgb(15, 15, 15) 50%,*/
| |
| /* rgb(16, 16, 16) 60%,*/
| |
| /* rgb(17, 17, 17) 70%,*/
| |
| /* rgb(18, 18, 18) 80%,*/
| |
| /* rgb(19, 19, 19) 90%,*/
| |
| /* rgb(20, 20, 20) 100%*/
| |
| /* ) !important;*/
| |
| /*color: #202020 !important;*/
| |
| /*background: linear-gradient(to bottom right, rgb(230, 230, 230), rgb(245, 245, 245)) !important;*/
| |
| /* border: solid 3px rgb(100, 150, 100);*/
| |
| /* border-radius: 5px;*/
| |
| /* font-family: "DejaVu Sans Mono" !important;*/
| |
| /*}*/
| |
|
| |
| /* シンタックスハイライトのベースとなる背景色と文字色 */
| |
| .mw-highlight > pre { | | .mw-highlight > pre { |
| background-color: #1e1e1e !important; | | /*color: #f0f0f0 !important;*/ |
| color: #d4d4d4 !important; | | /*background: linear-gradient(to right,*/ |
| | /* rgb(10, 10, 10) 0%,*/ |
| | /* rgb(11, 11, 11) 10%,*/ |
| | /* rgb(12, 12, 12) 20%,*/ |
| | /* rgb(13, 13, 13) 30%,*/ |
| | /* rgb(14, 14, 14) 40%,*/ |
| | /* rgb(15, 15, 15) 50%,*/ |
| | /* rgb(16, 16, 16) 60%,*/ |
| | /* rgb(17, 17, 17) 70%,*/ |
| | /* rgb(18, 18, 18) 80%,*/ |
| | /* rgb(19, 19, 19) 90%,*/ |
| | /* rgb(20, 20, 20) 100%*/ |
| | /*) !important;*/ |
| | color: #202020 !important; |
| | background: linear-gradient(to bottom right, rgb(230, 230, 230), rgb(245, 245, 245)) !important; |
| border: solid 3px rgb(100, 150, 100); | | border: solid 3px rgb(100, 150, 100); |
| border-radius: 5px; | | border-radius: 5px; |
| font-family: "DejaVu Sans Mono" !important; | | font-family: "DejaVu Sans Mono" !important; |
| } | | } |
|
| |
| /* 基本的なシンタックスハイライトコンテナ */
| |
| div.mw-highlight,
| |
| pre.source-css,
| |
| pre.source-javascript,
| |
| pre.source-php,
| |
| pre.source-python,
| |
| pre.source-cpp {
| |
| background-color: #1e1e1e !important;
| |
| color: #d4d4d4 !important;
| |
| }
| |
|
| |
| /* GeSHiの一般的なクラス名 */
| |
| .source-css .syntax,
| |
| .source-javascript .syntax,
| |
| .source-php .syntax,
| |
| .source-python .syntax {
| |
| color: #d4d4d4 !important;
| |
| }
| |
|
| |
| /* 一般的なGeSHiクラス */
| |
| .highlight {
| |
| background-color: #1e1e1e !important;
| |
| color: #d4d4d4 !important;
| |
| }
| |
|
| |
| /* 特定の要素に対する詳細なスタイル */
| |
| .syntax-keyword,
| |
| .kw1, .kw2, .kw3 { color: #569cd6 !important; } /* キーワード */
| |
| .syntax-string,
| |
| .st0, .st1, .st2 { color: #ce9178 !important; } /* 文字列 */
| |
| .syntax-comment,
| |
| .co1, .co2 { color: #6a9955 !important; } /* コメント */
| |
| .syntax-function,
| |
| .me1, .me2 { color: #dcdcaa !important; } /* 関数 */
| |
| .syntax-variable,
| |
| .re0, .re1 { color: #9cdcfe !important; } /* 変数 */
| |
| .syntax-number,
| |
| .nu0 { color: #b5cea8 !important; } /* 数値 */
| |
| .syntax-operator,
| |
| .sy0, .sy1 { color: #d4d4d4 !important; } /* 演算子 */
| |
|
| |
|
| .firstHeading { | | .firstHeading { |