Difference between revisions of "MediaWiki:Geshi.css"
(Created page with "→CSS placed here will be applied to GeSHi syntax highlighting: div.mw-geshi div,pre { font-family: monospace, "Courier New" !important; font-size:14px; }") |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | /* | + | /* Overrides to colors used for highlighting |
− | div.mw-geshi | + | See http://en.wikipedia.org/wiki/MediaWiki:Geshi.css |
− | font- | + | */ |
− | + | ||
+ | /* This css will override styles used by the GeSHi syntax highlighting, | ||
+ | such that less awful colors for the highlighting can be chosen. */ | ||
+ | |||
+ | /** | ||
+ | * Language code: "vb" * | ||
+ | * Overrides colors used for keywords from that horrible gold | ||
+ | * to more tolerable blue. Other colors left as default at present time. | ||
+ | */ | ||
+ | .source-vb .kw1 {color: #006 !important } | ||
+ | |||
+ | /** | ||
+ | * Language code: "cpp" * | ||
+ | * Color fix for member variables | ||
+ | */ | ||
+ | .source-cpp .me1 { color:#499; } | ||
+ | .source-cpp .me2 { color:#499; } | ||
+ | |||
+ | /* Reinstating borders */ | ||
+ | body.skin-monobook div.mw-geshi { | ||
+ | padding: 1em; border: 1px dashed #2f6fab; | ||
+ | color: black; background-color: #f9f9f9; | ||
+ | line-height: 1.1em; | ||
+ | } | ||
+ | body.skin-modern div.mw-geshi { | ||
+ | border: solid 1px #3c78b5; | ||
+ | padding: 0.4em; | ||
+ | background-color: #f0f0f0; | ||
+ | } | ||
+ | body.skin-simple div.mw-geshi { | ||
+ | margin: 2em; | ||
+ | border: solid 1px black; | ||
+ | } | ||
+ | body.skin-chick div.mw-geshi { | ||
+ | padding: 1em; | ||
+ | border: 1px dashed #2f6fab; | ||
+ | color: black; | ||
+ | background-color: #f9f9f9; | ||
+ | line-height: 1.1em; | ||
+ | } | ||
+ | body.skin-vector div.mw-geshi { | ||
+ | padding: 1em; | ||
+ | border: 1px dashed #2f6fab; | ||
+ | color: black; | ||
+ | background-color: #f9f9f9; | ||
+ | line-height: 1.1em; | ||
+ | font-size:15px; | ||
+ | } | ||
+ | |||
+ | body.skin-gmwfreeblue div.mw-geshi { | ||
+ | padding: 1em; | ||
+ | border: none; | ||
+ | color: black; | ||
+ | background-color: #f6f9f9; | ||
+ | line-height: 1.1em; | ||
+ | font-size:15px; | ||
+ | } | ||
+ | |||
+ | |||
+ | .c.source-c .coMULTI { | ||
+ | color: #ffffff; | ||
+ | font-style: italic; | ||
} | } |
Latest revision as of 19:13, 28 December 2014
- /* Overrides to colors used for highlighting
- See http://en.wikipedia.org/wiki/MediaWiki:Geshi.css
- */
- /* This css will override styles used by the GeSHi syntax highlighting,
- such that less awful colors for the highlighting can be chosen. */
- /**
- * Language code: "vb" *
- * Overrides colors used for keywords from that horrible gold
- * to more tolerable blue. Other colors left as default at present time.
- */
- .source-vb .kw1 {color: #006 !important }
- /**
- * Language code: "cpp" *
- * Color fix for member variables
- */
- .source-cpp .me1 { color:#499; }
- .source-cpp .me2 { color:#499; }
- /* Reinstating borders */
- body.skin-monobook div.mw-geshi {
- padding: 1em; border: 1px dashed #2f6fab;
- color: black; background-color: #f9f9f9;
- line-height: 1.1em;
- }
- body.skin-modern div.mw-geshi {
- border: solid 1px #3c78b5;
- padding: 0.4em;
- background-color: #f0f0f0;
- }
- body.skin-simple div.mw-geshi {
- margin: 2em;
- border: solid 1px black;
- }
- body.skin-chick div.mw-geshi {
- padding: 1em;
- border: 1px dashed #2f6fab;
- color: black;
- background-color: #f9f9f9;
- line-height: 1.1em;
- }
- body.skin-vector div.mw-geshi {
- padding: 1em;
- border: 1px dashed #2f6fab;
- color: black;
- background-color: #f9f9f9;
- line-height: 1.1em;
- font-size:15px;
- }
- body.skin-gmwfreeblue div.mw-geshi {
- padding: 1em;
- border: none;
- color: black;
- background-color: #f6f9f9;
- line-height: 1.1em;
- font-size:15px;
- }
- .c.source-c .coMULTI {
- color: #ffffff;
- font-style: italic;
- }