Difference between revisions of "MediaWiki:Common.css"

From TestWiki
Jump to: navigation, search
(Removing some padding to compensate for additional margin in my last commit.)
(Update tab-size to 4, as per my coding style, so that code output looks correct.)
Line 15: Line 15:
 
.mw-plusminus-pos, .mw-plusminus-neg {
 
.mw-plusminus-pos, .mw-plusminus-neg {
 
     display: none;
 
     display: none;
 +
}
 +
 +
/* Set tab-size, for browsers that support it.
 +
* This applies primarily to code output by GeSHi or in <pre> tags, but also to diffs
 +
* in code-review and any editable textareas.  We apply it to all elements as we
 +
* always want a tab-width of 4, regardless of context (we don't want to have to
 +
* identify each type of element that may use tabs, individually).
 +
*/
 +
* {
 +
    -moz-tab-size: 4;
 +
    -o-tab-size: 4;
 +
    tab-size: 4;
 
}
 
}
  

Revision as of 13:15, 24 January 2016

/** General style overrides **/
 
#n-browse-cvs a, #n-phpdoc a, #n-Mailing-list a {
	background: url(/testwiki/skins/monobook/external.png) center right no-repeat;
	padding-right: 13px;
	color: #36b;
}
 
 
#toc {
    margin: 1em 0;
}
 
/* Hide the numbers (bytes changed) in recent-changes, as not really relevant on this wiki. */
.mw-plusminus-pos, .mw-plusminus-neg {
    display: none;
}
 
/* Set tab-size, for browsers that support it.
 * This applies primarily to code output by GeSHi or in <pre> tags, but also to diffs
 * in code-review and any editable textareas.  We apply it to all elements as we
 * always want a tab-width of 4, regardless of context (we don't want to have to
 * identify each type of element that may use tabs, individually).
 */
* {
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
}
 
/** Sidebar External Links **/
 
/** NONE AT PRESENT, KEPT FOR FUTURE REFERENCE.
#n-ItemNameCHANGETHIS a {
	background: url(/testwiki/skins/monobook/external.png) center right no-repeat;
	padding-right: 13px;
	color: #36b;
}
*/
 
/** General purpose 'pretty' data tables */
/* General purpose "pretty (data) tables" */
table.datatable { background-color: transparent; }
table.datatable th, table.datatable td { padding: 4px; }
table.datatable th { text-align: left; background-color: #999999; }
table.datatable tr { background-color: #cccccc; }
table.datatable tr:hover { background-color: #ffffcc; }
 
 
/** Main page table **/
.HomepageTable {
  border: 1px solid #CCCCCC;
  border-collapse: collapse;
  margin: 0.2em 1em 1em;
}
.HomepageTable td {
  border: 1px solid #CCCCCC;
}
 
/** Extension Info **/
 
.ExtensionCheck {
    padding: 0.4em 1em;
    margin: 1em 0;
 
    border-width: 1px 3px;
    border-style: solid;
 
    border-color: #009900;
    background-color: #E0FFE0;
    color: #009900;
}
 
.ExtensionNotPresent {
    border-color: #D96600;
    background-color: #FFF9F0;
    color: #D96600;
}
 
/** Better TOC for [[WikiDB/CHANGELOG]] page **/
 
.page-WikiDB_CHANGELOG #toc {
    margin-top: 0;
    padding-bottom: 0;
}
.page-WikiDB_CHANGELOG .tocnumber {
    display: none;
}
.page-WikiDB_CHANGELOG .toclevel-1 {
    display: inline-block;
    border: 1px solid #999999;
    padding: 0.2em 0.5em;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
}
.page-WikiDB_CHANGELOG .toclevel-1:last-child {
    margin-right: 0;
}
.page-WikiDB_CHANGELOG .toclevel-1 > a {
    font-weight: bold;
}
.page-WikiDB_CHANGELOG .toclevel-1 > a:after {
    content: ":";
}
.page-WikiDB_CHANGELOG .toclevel-1:last-child > a:after {
    content: "";
}
.page-WikiDB_CHANGELOG .toclevel-1 > ul {
    display: inline;
    margin-left: 0.4em !important;
}
.page-WikiDB_CHANGELOG .toclevel-1 > ul > li {
    list-style-type: disc;
    display: inline;
}
 
/** Bugs page - make sections easier to see **/
 
body.page-WikiDB_Bugs #content h3 {
    border: 1px solid #990000;
    color: #660000;
    background-color: #FFF0F0;
    padding: 0.3em 0.5em;
    margin: 1em 0 0.5em -0.4em;
 
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}
 
body.page-WikiDB_Bugs #content .FixedBugs h3 {
    border: 1px solid #009900;
    color: #006600;
    background-color: #F0FFF0;
}