Difference between revisions of "MediaWiki:Geshi.css"

From The Official Visionaire Studio: Adventure Game Engine Wiki
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**
+
/* Fix so <source> tags get normal text size also in some
* GeSHi CSS Inspired by TextMate
+
  versions of Firefox, Safari, Konqueror, Chrome etc.
* Theme Mac Classic
+
  See http://en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Section_break._Teletype_style_fix */
*
+
   
* Copyright 2008 Mark Story
+
div.mw-geshi div {
*
+
    font-family: monospace, vrinda !important;
* This work is licensed under the Creative Commons Attribution-Share Alike 2.5 Canada License.  
+
    font-size: 14px;
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/ca/  
+
}
  * or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
+
 
*
+
div.mw-geshi {
* @copyright Copyright 2008, Mark Story.
+
  padding: 1em;
* @link http://mark-story.com
+
  margin: 1em 0;
* @license http://creativecommons.org/licenses/by-sa/2.5/ca/
+
  border: 0px dashed darkgrey;
*/
+
  background-color: rgba(255, 255, 255, 0.9);
 +
  /*border-radius: 10px;*/
 +
 
 +
-webkit-box-shadow: inset 0px 0px 3px 1px rgba(0,0,0,0.35);
 +
-moz-box-shadow: inset 0px 0px 3px 1px rgba(0,0,0,0.35);
 +
box-shadow: inset 0px 0px 3px 1px rgba(0,0,0,0.35);
  
 
/*
 
/*
* Global geshi styles
+
-webkit-box-shadow: inset 0px 1px 5px 0px rgba(50, 50, 50, 0.75);
**********************/
+
-moz-box-shadow:   inset 0px 1px 5px 0px rgba(50, 50, 50, 0.75);
#main pre {
+
box-shadow:         inset 0px 1px 5px 0px rgba(50, 50, 50, 0.75);
line-height: 1.5em;
+
*/
font-size: 10px;
 
white-space: normal;
 
padding: 0;
 
background: #eae9e5;
 
border: 1px solid #c0c0c0;
 
 
}
 
}
pre ol {
+
list-style: decimal;
+
#content div.mw-geshi pre {
list-style-position: outside;
+
    font-family: monospace, vrinda;
padding: 0;
+
    font-size: 14px;
margin: 0;
 
}
 
#main pre ol li {
 
margin: 0 0 0 35px;
 
padding: 0;
 
color: #000;
 
clear: none;
 
}
 
pre ol li div {
 
color:#000;
 
 
}
 
}
  
 +
/*.mw-geshi {
 +
padding: 3px 7px 3px 7px;
 +
background-color: #e5f1fa;
 +
border: 1px solid #d5e3ee;
 +
border-radius: 3px;
 +
}*/
 +
 +
/*.mw-geshi { background-color: rgba(0, 0, 0, 0.25) !important; }*/
 +
 +
/* GESHI */
  
/* php */
+
.lua {
pre[lang=php] ol div,
+
font-family: monospace;
pre.php ol div {
+
list-style-type: decimal;
color:#fd1435;
+
list-style-position: outside;
 +
font-size: 12px;
 +
        /*font-color: white;*/
 
}
 
}
/* Line highlights */
+
.lua .li1 {
.li1 {
+
color: #0d8bca;
background: #f2f2f2;
+
border-left: 1px solid #d1d9fd;
 +
background: #f1f9fd;
 
}
 
}
/* Line highlights */
+
 
.li1 {
+
/*.lua .de1 {
background: #f2f2f2;
+
font-family: monospace;
 +
color: #333;
 +
margin: 0 0 0 0;
 
}
 
}
  
/* comments */
+
.lua .kw1 {  
.co1,
+
color: #0d8bca;
.coMULTI {
+
font-weight: bold;
color:#5c9dff;
 
 
}
 
}
/* methods */
+
 
.me1{
+
.lua .co1, .lua .coMULTI {  
color:#000;
+
color: #888;
 +
font-weight: normal;
 
}
 
}
.me0 {
 
  
 +
.lua .nu0 {
 +
color: red;
 
}
 
}
.me2 {
+
 
color:#000;
+
.lua .sy0 {  
 +
color: #555;
 
}
 
}
  
/* brackets */
+
.lua .st0 {  
.br0 {
+
color: #008000;
color:#222;
 
 
}
 
}
  
/* strings */
+
.lua .br0 {
.st0 {
+
color: #555;
color:#b701bb;
+
}*/
 +
 
 +
.lua .de1 {
 +
font-family: monospace;
 +
color: #fd971f;
 +
margin: 0 0 0 0;
 
}
 
}
  
/* keywords */
+
.lua .kw1 {  
.kw1 {
+
color: #f92672;
color: #fd1435;
+
font-weight: bold;
}
 
.kw2 {
 
color:#6266f5;
 
 
}
 
}
  
.kw3 {
+
.lua .co1, .lua .coMULTI {  
color:#505e80;
+
color: #75715e;
 +
font-weight: normal;
 
}
 
}
  
/* numbers */
+
.lua .nu0 {  
.nu0 {
+
color: #ae81ff;
color:#0a0aa5;
 
 
}
 
}
  
/* vars */
+
.lua .sy0 {  
.re0 {
+
color: #a6e22e;
color:#059532;
 
 
}
 
}
  
 
+
.lua .st0 {  
/*
+
color: #e6db74;
* CSS selectors
 
*****************/
 
/* classnames */
 
 
 
[lang=css] .kw2,
 
.css .kw2 {
 
color:#0a0aa5;
 
}
 
.re1 {
 
color: #b701bb;
 
}
 
/* px values */
 
[lang=css] .re3,
 
.css .re3 {
 
color:#059532;
 
 
}
 
}
  
/*
+
.lua .br0 {  
* Javascript
+
color: #f8f8f2;
****************/
 
[lang=javascript] .me1,
 
.javascript .me1 {
 
color:#505e80;
 
 
}
 
}

Latest revision as of 21:06, 9 October 2022

/* Fix so <source> tags get normal text size also in some
   versions of Firefox, Safari, Konqueror, Chrome etc.
   See http://en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Section_break._Teletype_style_fix */
 
div.mw-geshi div {
    font-family: monospace, vrinda !important;
    font-size: 14px;
}

div.mw-geshi {
  padding: 1em; 
  margin: 1em 0; 
  border: 0px dashed darkgrey;
  background-color: rgba(255, 255, 255, 0.9);
  /*border-radius: 10px;*/

-webkit-box-shadow: inset 0px 0px 3px 1px rgba(0,0,0,0.35);
-moz-box-shadow: inset 0px 0px 3px 1px rgba(0,0,0,0.35);
box-shadow: inset 0px 0px 3px 1px rgba(0,0,0,0.35);

/*
 -webkit-box-shadow: inset 0px 1px 5px 0px rgba(50, 50, 50, 0.75);
 -moz-box-shadow:    inset 0px 1px 5px 0px rgba(50, 50, 50, 0.75);
 box-shadow:         inset 0px 1px 5px 0px rgba(50, 50, 50, 0.75);
*/
}
 
#content div.mw-geshi pre {
    font-family: monospace, vrinda;
    font-size: 14px;
}

/*.mw-geshi {
	padding: 3px 7px 3px 7px;
	background-color: #e5f1fa;
	border: 1px solid #d5e3ee;
	border-radius: 3px;
}*/

/*.mw-geshi { background-color: rgba(0, 0, 0, 0.25) !important; }*/

/* GESHI */

.lua {
	font-family: monospace;
	list-style-type: decimal;
	list-style-position: outside;
	font-size: 12px;
        /*font-color: white;*/
}
.lua .li1 {
	color: #0d8bca;
	border-left: 1px solid #d1d9fd;
	background: #f1f9fd;
}

/*.lua .de1 {
	font-family: monospace;
	color: #333;
	margin: 0 0 0 0;
}

.lua .kw1 { 
	color: #0d8bca;
	font-weight: bold;
}

.lua .co1, .lua .coMULTI { 
	color: #888;
	font-weight: normal;
}

.lua .nu0 { 
	color: red;
}

.lua .sy0 { 
	color: #555;
}

.lua .st0 { 
	color: #008000;
}

.lua .br0 { 
	color: #555;
}*/

.lua .de1 {
	font-family: monospace;
	color: #fd971f;
	margin: 0 0 0 0;
}

.lua .kw1 { 
	color: #f92672;
	font-weight: bold;
}

.lua .co1, .lua .coMULTI { 
	color: #75715e;
	font-weight: normal;
}

.lua .nu0 { 
	color: #ae81ff;
}

.lua .sy0 { 
	color: #a6e22e;
}

.lua .st0 { 
	color: #e6db74;
}

.lua .br0 { 
	color: #f8f8f2;
}