Difference between revisions of "MediaWiki:Common.css"

From TestWiki
Jump to: navigation, search
(Added in some template styles, from another wiki I run.)
(Handle Feature Requests page like Bugs page.)
 
Line 120: Line 120:
 
}
 
}
  
/** Bugs page - make sections easier to see **/
+
/** Bugs/Feature request pages - make sections easier to see **/
  
body.page-WikiDB_Bugs #content h3 {
+
body.page-WikiDB_Bugs #content h3,
 +
body.page-WikiDB_Feature_requests #content h3 {
 
     border: 1px solid #990000;
 
     border: 1px solid #990000;
 
     color: #660000;
 
     color: #660000;
Line 135: Line 136:
 
}
 
}
  
body.page-WikiDB_Bugs #content .FixedBugs h3 {
+
body.page-WikiDB_Bugs #content .FixedBugs h3,
 +
body.page-WikiDB_Feature_requests #content .FixedBugs h3 {
 
     border: 1px solid #009900;
 
     border: 1px solid #009900;
 
     color: #006600;
 
     color: #006600;

Latest revision as of 19:39, 9 August 2021

/** General style overrides **/
 
/* Ensure pre tags don't cause page to expand horizontally, if they contain very long lines. */
pre {
    overflow: auto;
}
 
#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/Feature request pages - make sections easier to see **/
 
body.page-WikiDB_Bugs #content h3,
body.page-WikiDB_Feature_requests #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,
body.page-WikiDB_Feature_requests #content .FixedBugs h3 {
    border: 1px solid #009900;
    color: #006600;
    background-color: #F0FFF0;
}
 
/* Smite Spam extension - make list more compact. */
#smitespam-page-list .user-group {
    margin-bottom: 0;
}
 
/***************************************
 * Custom styles used by templates
 ***************************************
 */
 
.Warning,
.Important,
.Information {
    border: 1px solid #AA0000;
    border-width: 1px 3px;
    padding: 0.2em 0.4em;
    margin: 1em 0;
    background-color: #FFFFD0;
    color: #AA0000;
}
 
.Information {
    border-color: #0000AA;
    background-color: #E0E0FF;
    color: #0000AA;
}
 
.Important {
    border-color: #C36F09;
    background-color: #FFFFD0;
    color: #C36F09;
}