Difference between revisions of "MediaWiki:Common.css"

From WeBWorK_wiki
Jump to navigation Jump to search
(New page: →‎* CSS placed here will be applied to all skins: →‎borrowed from WP: .messagebox { border: 1px solid #aaa; background-color: #f9f9f9; width: 80%; margin: 0 auto 1em ...)
 
 
(23 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
padding: .2em;
 
padding: .2em;
 
}
 
}
  +
  +
/*#footer #f-list #privacy { display:none }
  +
#footer #f-list #disclaimer { display:none }*/
  +
#footer #f-list #about { display:none }
  +
  +
pre { font-size:110% }
  +
code { font-size:110%; white-space: nowrap; }
  +
  +
/*JAA: From mediawiki.org
  +
/***** 2. COLOR CLASSES FOR CONTENT *****/
  +
  +
/* Border colors */
  +
.borderc1 { border-color: #e9e9e9; border-width: thin; } /* light grey */
  +
.borderc2 { border-color: #aaaaaa; border-width: thin; } /* grey (as toc) */
  +
.borderc3 { border-color: #777777; border-width: thin; } /* dark grey */
  +
.borderc4 { border-color: #000000; border-width: thin; } /* black */
  +
.borderc5 { border-color: #c00000; border-width: thin; } /* red */
  +
.borderc6 { border-color: #025e9d; border-width: thin; } /* blue */
  +
.borderc7 { border-color: #008040; border-width: thin; } /* green */
  +
.borderc8 { border-color: #ffcc00; border-width: thin; } /* yellow */
  +
  +
/* Background colors */
  +
.backgroundc1 { background-color: #ffffff; } /* white */
  +
.backgroundc2 { background-color: #f9f9f9; } /* light grey (as toc) */
  +
.backgroundc3 { background-color: #eeeeee; } /* light grey (headers) */
  +
.backgroundc4 { background-color: #e0e0e0; } /* more grey */
  +
.backgroundc5 { background-color: #d2d2d2; } /* more grey */
  +
.backgroundc6 { background-color: #b7b7b7; } /* more grey */
  +
.backgroundc7 { background-color: #a3a3a3; } /* darker grey */
  +
.backgroundc8 { background-color: #444455; } /* very dark grey */
  +
  +
/* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */
  +
.majorwarning {
  +
background: yellow;
  +
padding: 0.3em;
  +
text-align: center;
  +
font-size: 125%;
  +
border: 2px solid red;
  +
}
  +
  +
/* Page headings used throughout the wiki (though not very much at the time of writing…) */
  +
.page-notice, .page-warning {
  +
border-width: 1px;
  +
border-style: solid;
  +
padding: 0.3em 0.5em;
  +
margin-bottom: 1em;
  +
width: 95%;
  +
margin-left: auto;
  +
margin-right: auto;
  +
text-align: center;
  +
}
  +
  +
/* Informative notices at the top of pages (blue) */
  +
.page-notice {
  +
background-color: #f9f9f9;
  +
border-color: #025e9d;
  +
text-align: left;
  +
}
  +
  +
/* Warning information at the top of pages (red) */
  +
.page-warning {
  +
background-color: #ffffff;
  +
border-color: #c51919;
  +
border-width: 2px;
  +
}
  +
.pw-head {
  +
color: #c51919;
  +
font-weight: bold;
  +
}
  +
  +
/* WikEd */
  +
  +
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
  +
document.write('<script type="text/javascript" src="'
  +
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
  +
+ '&action=raw&ctype=text/javascript"></' + 'script>');
  +
  +
/*For SyntaxHighlight extension */
  +
div.mw-geshi { padding: 1em; margin: 1em 0; border: 1px dashed #2f6fab; }

Latest revision as of 21:15, 27 July 2012

/** CSS placed here will be applied to all skins */

/* borrowed from WP */
.messagebox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    width: 80%;
    margin: 0 auto 1em auto;
    padding: .2em;
}

/*#footer #f-list #privacy { display:none }
#footer #f-list #disclaimer { display:none }*/
#footer #f-list #about { display:none }

pre { font-size:110% }
code { font-size:110%; white-space: nowrap; }

/*JAA: From mediawiki.org 
/***** 2. COLOR CLASSES FOR CONTENT  *****/

/* Border colors */
.borderc1 { border-color: #e9e9e9; border-width: thin; }  /* light grey */
.borderc2 { border-color: #aaaaaa; border-width: thin; }  /* grey (as toc) */
.borderc3 { border-color: #777777; border-width: thin; }  /* dark grey */
.borderc4 { border-color: #000000; border-width: thin; }  /* black */
.borderc5 { border-color: #c00000; border-width: thin; }  /* red */
.borderc6 { border-color: #025e9d; border-width: thin; }  /* blue */
.borderc7 { border-color: #008040; border-width: thin; }  /* green */
.borderc8 { border-color: #ffcc00; border-width: thin; }  /* yellow */

/* Background colors */
.backgroundc1 { background-color: #ffffff; }  /* white */
.backgroundc2 { background-color: #f9f9f9; }  /* light grey (as toc)  */
.backgroundc3 { background-color: #eeeeee; }  /* light grey (headers) */ 
.backgroundc4 { background-color: #e0e0e0; }  /* more grey */
.backgroundc5 { background-color: #d2d2d2; }  /* more grey */
.backgroundc6 { background-color: #b7b7b7; }  /* more grey */
.backgroundc7 { background-color: #a3a3a3; }  /* darker grey */
.backgroundc8 { background-color: #444455; }  /* very dark grey */

/* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */
.majorwarning {
	background: yellow; 
	padding: 0.3em; 
	text-align: center; 
	font-size: 125%; 
	border: 2px solid red;
}
 
/* Page headings used throughout the wiki (though not very much at the time of writing…) */ 
.page-notice, .page-warning {
	border-width: 1px; 
	border-style: solid;
	padding: 0.3em 0.5em;
	margin-bottom: 1em;
	width: 95%; 
	margin-left: auto; 
	margin-right: auto; 
	text-align: center;
}
 
/* Informative notices at the top of pages (blue) */
.page-notice {
	background-color: #f9f9f9;
	border-color: #025e9d; 
	text-align: left;
}
 
/* Warning information at the top of pages (red) */
.page-warning {
	background-color: #ffffff;
	border-color: #c51919;
	border-width: 2px;
}
.pw-head {
	color: #c51919;
	font-weight: bold;
}

/* WikEd */

// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');

/*For SyntaxHighlight extension */
div.mw-geshi {  padding: 1em;   margin: 1em 0;   border: 1px dashed #2f6fab; }