Difference between revisions of "MediaWiki:Geshi.css"
From VCMI Project Wiki
(Some generalization, testing cpp theme) |
|||
Line 6: | Line 6: | ||
border: 1px dashed #2f6fab; | border: 1px dashed #2f6fab; | ||
color: #E0E0E0; | color: #E0E0E0; | ||
− | background-color: | + | background-color: rgba(0, 0, 0, 0.600); |
line-height: 1.1em; | line-height: 1.1em; | ||
} | } | ||
+ | |||
+ | .css.source-css .kw1 { color: white; } /* to see this file without viewing source */ | ||
.cpp.source-cpp .de1, .cpp.source-cpp .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} | .cpp.source-cpp .de1, .cpp.source-cpp .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} | ||
Line 16: | Line 18: | ||
.cpp.source-cpp .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} | .cpp.source-cpp .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} | ||
.cpp.source-cpp .li2 {font-weight: bold; vertical-align:top;} | .cpp.source-cpp .li2 {font-weight: bold; vertical-align:top;} | ||
− | .cpp.source-cpp .kw1 {color: #8080C0;} | + | |
− | .cpp.source-cpp .kw2 {color: #8080C0;} | + | /* Keywords */ |
− | .cpp.source-cpp .kw3 {color: #8080C0;} | + | .cpp.source-cpp .kw1 {color: #8080C0;} /* keywords for, while, continue, etc */ |
− | .cpp.source-cpp .kw4 {color: #8080C0;} | + | .cpp.source-cpp .kw2 {color: #8080C0;} /* constants + modifiers (private/virtual/etc) */ |
− | .cpp.source-cpp .co1 | + | .cpp.source-cpp .kw3 {color: #8080C0;} /* C library */ |
− | .cpp.source-cpp .co2 | + | .cpp.source-cpp .kw4 {color: #8080C0;} /* standard types */ |
− | .cpp.source-cpp .coMULTI {color: # | + | |
− | .cpp.source-cpp .es0 | + | /* Comments. We need them more notable than usual since wiki is mostly for docs */ |
− | .cpp.source-cpp .es1 | + | .cpp.source-cpp .co1, |
− | .cpp.source-cpp .es2 | + | .cpp.source-cpp .co2, |
− | .cpp.source-cpp .es3 | + | .cpp.source-cpp .coMULTI {color: #60FF60;} |
− | .cpp.source-cpp .es4 | + | |
− | .cpp.source-cpp .es5 {color: # | + | /* Escape characters - same color as strings + bold */ |
− | .cpp.source-cpp .br0 | + | .cpp.source-cpp .es0, |
− | .cpp.source-cpp .sy0 | + | .cpp.source-cpp .es1, |
− | .cpp.source-cpp .sy1 | + | .cpp.source-cpp .es2, |
− | .cpp.source-cpp .sy2 | + | .cpp.source-cpp .es3, |
− | .cpp.source-cpp .sy3 | + | .cpp.source-cpp .es4, |
+ | .cpp.source-cpp .es5 {color: #3366CC; font-weight: bold;} | ||
+ | |||
+ | /* Various symbols - math operators, brackets, logic */ | ||
+ | .cpp.source-cpp .br0, | ||
+ | .cpp.source-cpp .sy0, | ||
+ | .cpp.source-cpp .sy1, | ||
+ | .cpp.source-cpp .sy2, | ||
+ | .cpp.source-cpp .sy3, | ||
.cpp.source-cpp .sy4 {color: #E0E0E0;} | .cpp.source-cpp .sy4 {color: #E0E0E0;} | ||
− | .cpp.source-cpp .st0 {color: # | + | |
− | .cpp.source-cpp .nu0 | + | /* strings */ |
− | .cpp.source-cpp .nu6 | + | .cpp.source-cpp .st0 {color: #3366CC;} |
− | .cpp.source-cpp .nu8 | + | |
− | .cpp.source-cpp .nu12 | + | /* Different formats of numbers (integer, float, scientific, hex...) */ |
− | .cpp.source-cpp .nu16 | + | .cpp.source-cpp .nu0, |
− | .cpp.source-cpp .nu17 | + | .cpp.source-cpp .nu6, |
− | .cpp.source-cpp .nu18 | + | .cpp.source-cpp .nu8, |
− | .cpp.source-cpp .nu19 {color:# | + | .cpp.source-cpp .nu12, |
+ | .cpp.source-cpp .nu16, | ||
+ | .cpp.source-cpp .nu17, | ||
+ | .cpp.source-cpp .nu18, | ||
+ | .cpp.source-cpp .nu19 {color: #DE9B00;} | ||
+ | |||
.cpp.source-cpp .me1 {color: #E0E0E0;} | .cpp.source-cpp .me1 {color: #E0E0E0;} | ||
.cpp.source-cpp .me2 {color: #E0E0E0;} | .cpp.source-cpp .me2 {color: #E0E0E0;} | ||
+ | |||
.cpp.source-cpp .ln-xtra, .cpp.source-cpp li.ln-xtra, .cpp.source-cpp div.ln-xtra {background-color: #ffc;} | .cpp.source-cpp .ln-xtra, .cpp.source-cpp li.ln-xtra, .cpp.source-cpp div.ln-xtra {background-color: #ffc;} | ||
.cpp.source-cpp span.xtra { display:block; } | .cpp.source-cpp span.xtra { display:block; } |
Revision as of 14:19, 14 December 2012
/* CSS placed here will be applied to GeSHi syntax highlighting */
div.mw-geshi {
font-family: Monaco, Consolas, Courier, 'Courier New', sans-serif;
padding: 1em;
border: 1px dashed #2f6fab;
color: #E0E0E0;
background-color: rgba(0, 0, 0, 0.600);
line-height: 1.1em;
}
.css.source-css .kw1 { color: white; } /* to see this file without viewing source */
.cpp.source-cpp .de1, .cpp.source-cpp .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.cpp.source-cpp {font-family:monospace;}
.cpp.source-cpp .imp {font-weight: bold; color: red;}
.cpp.source-cpp li, .cpp.source-cpp .li1 {font-weight: normal; vertical-align:top;}
.cpp.source-cpp .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.cpp.source-cpp .li2 {font-weight: bold; vertical-align:top;}
/* Keywords */
.cpp.source-cpp .kw1 {color: #8080C0;} /* keywords for, while, continue, etc */
.cpp.source-cpp .kw2 {color: #8080C0;} /* constants + modifiers (private/virtual/etc) */
.cpp.source-cpp .kw3 {color: #8080C0;} /* C library */
.cpp.source-cpp .kw4 {color: #8080C0;} /* standard types */
/* Comments. We need them more notable than usual since wiki is mostly for docs */
.cpp.source-cpp .co1,
.cpp.source-cpp .co2,
.cpp.source-cpp .coMULTI {color: #60FF60;}
/* Escape characters - same color as strings + bold */
.cpp.source-cpp .es0,
.cpp.source-cpp .es1,
.cpp.source-cpp .es2,
.cpp.source-cpp .es3,
.cpp.source-cpp .es4,
.cpp.source-cpp .es5 {color: #3366CC; font-weight: bold;}
/* Various symbols - math operators, brackets, logic */
.cpp.source-cpp .br0,
.cpp.source-cpp .sy0,
.cpp.source-cpp .sy1,
.cpp.source-cpp .sy2,
.cpp.source-cpp .sy3,
.cpp.source-cpp .sy4 {color: #E0E0E0;}
/* strings */
.cpp.source-cpp .st0 {color: #3366CC;}
/* Different formats of numbers (integer, float, scientific, hex...) */
.cpp.source-cpp .nu0,
.cpp.source-cpp .nu6,
.cpp.source-cpp .nu8,
.cpp.source-cpp .nu12,
.cpp.source-cpp .nu16,
.cpp.source-cpp .nu17,
.cpp.source-cpp .nu18,
.cpp.source-cpp .nu19 {color: #DE9B00;}
.cpp.source-cpp .me1 {color: #E0E0E0;}
.cpp.source-cpp .me2 {color: #E0E0E0;}
.cpp.source-cpp .ln-xtra, .cpp.source-cpp li.ln-xtra, .cpp.source-cpp div.ln-xtra {background-color: #ffc;}
.cpp.source-cpp span.xtra { display:block; }