Difference between revisions of "MediaWiki:Geshi.css"

From VCMI Project Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
  
 
/* Keywords */
 
/* Keywords */
 +
.javascript.source-javascript .kw2 {color: #006600;} /* json keywords (true/false/null) */
 
.cpp.source-cpp .kw1 {color: #8080C0;} /* keywords for, while, continue, etc */
 
.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 .kw2 {color: #8080C0;} /* constants + modifiers (private/virtual/etc) */
Line 31: Line 32:
 
.cpp.source-cpp .co1,
 
.cpp.source-cpp .co1,
 
.cpp.source-cpp .co2,
 
.cpp.source-cpp .co2,
.cpp.source-cpp .coMULTI {color: gold, font-style: italic;}
+
.cpp.source-cpp .coMULTI {color: gold; font-style: italic;}
  
 
/* Escape characters - same color as strings + bold */
 
/* Escape characters - same color as strings + bold */

Latest revision as of 21:32, 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.700);
	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 */
.javascript.source-javascript .kw2 {color: #006600;} /* json keywords (true/false/null) */
.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  */
.javascript.source-javascript .co1,
.javascript.source-javascript .co2,
.javascript.source-javascript .coMULTI,
.cpp.source-cpp .co1,
.cpp.source-cpp .co2,
.cpp.source-cpp .coMULTI {color: gold; font-style: italic;}

/* Escape characters - same color as strings + bold */
.javascript.source-javascript .es0,
.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 */
.javascript.source-javascript .br0,
.javascript.source-javascript .sy0,
.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 */ 
.javascript.source-javascript .st0 {color: #8080C0;}
.cpp.source-cpp .st0 {color: #3366CC;}

/* Different formats of numbers (integer, float, scientific, hex...) */
.javascript.source-javascript .nu0,
.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: #006600;}

.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; }