MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Hb1290
No edit summary
imported>Hb1290
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Reset top margin for lists embedded in columns */
/* Code copied from [[wikipedia:MediaWiki:Common.css]] */
div.columns {
.infobox {
margin-top: 0.3em;
    border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: black;
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
}
}
div.columns dl,
.infobox caption {
div.columns ol,
    font-size: 125%;
div.columns ul {
    font-weight: bold;
margin-top: 0;
    padding: 0.2em;
}
}
 
.infobox td,
/* Avoid elements breaking between columns */
.infobox th {
.nocolbreak,
    vertical-align: top;
div.columns li,
    /* @noflip */
div.columns dd dd {
    text-align: left;
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid-column;
}
}
 
.infobox.bordered {
 
    border-collapse: collapse;
/* Default style for navigation boxes */
.navbox {                     /* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0;       /* Prevent preceding content from clinging to navboxes */
}
}
.navbox .navbox {
.infobox.bordered td,
margin-top: 0;           /* No top margin for nested navboxes */
.infobox.bordered th {
    border: 1px solid #a2a9b1;
}
}
.navbox + .navbox {
.infobox.bordered .borderless td,
margin-top: -1px;         /* Single pixel border between adjacent navboxes */
.infobox.bordered .borderless th {
    border: 0;
}
}
.navbox-inner,
 
.navbox-subgroup {
.infobox.sisterproject {
width: 100%;
    width: 20em;
    font-size: 90%;
}
}
.navbox-group,
 
.navbox-title,
.infobox.standard-talk {
.navbox-abovebelow {
    border: 1px solid #c0c090;
padding: 0.25em 1em;      /* Title, group and above/below styles */
    background-color: #f8eaba;
line-height: 1.5em;
text-align: center;
}
}
th.navbox-group {            /* Group style */
.infobox.standard-talk.bordered td,
white-space: nowrap;
.infobox.standard-talk.bordered th {
/* @noflip */
    border: 1px solid #c0c090;
text-align: right;
}
}
.navbox,
 
.navbox-subgroup {
/* END Infobox template style */
background-color: #fdfdfd; /* Background color */
 
/* styles for bordered infobox with merged rows */
/* Code copied from [[wikipedia:MediaWiki:Common.css]] */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #a2a9b1;
    /* @noflip */
    border-right: 1px solid #a2a9b1;
}
}
.navbox-list {
 
line-height: 1.5em;
.infobox.bordered .mergedrow td,
border-color: #fdfdfd;   /* Must match background color */
.infobox.bordered .mergedrow th {
    border: 0;
    /* @noflip */
    border-right: 1px solid #a2a9b1;
}
}
/* cell spacing for navbox cells */
 
tr + tr > .navbox-abovebelow,
/* Styles for geography infoboxes, eg countries,
tr + tr > .navbox-group,
   country subdivisions, cities, etc.           */
tr + tr > .navbox-image,
.infobox.geography {
tr + tr > .navbox-list {   /* Borders above 2nd, 3rd, etc. rows */
    border-collapse: collapse;
border-top: 2px solid #fdfdfd; /* Must match background color */
    line-height: 1.2em;
    font-size: 90%;
}
}
.navbox th,
 
.navbox-title {
.infobox.geography  td,
background-color: #ccccff;     /* Level 1 color */
.infobox.geography  th {
    border-top: 1px solid #a2a9b1;
    padding: 0.4em 0.6em 0.4em 0.6em;
}
}
.navbox-abovebelow,
.infobox.geography .mergedtoprow td,
th.navbox-group,
.infobox.geography .mergedtoprow th {
.navbox-subgroup .navbox-title {
    border-top: 1px solid #a2a9b1;
background-color: #ddddff;     /* Level 2 color */
    padding: 0.4em 0.6em 0.2em 0.6em;
}
}
.navbox-subgroup .navbox-group,
 
.navbox-subgroup .navbox-abovebelow {
.infobox.geography .mergedrow td,
background-color: #e6e6ff;      /* Level 3 color */
.infobox.geography .mergedrow th {
}
    border: 0;
.navbox-even {
    padding: 0 0.6em 0.2em 0.6em;
background-color: #f7f7f7;     /* Even row striping */
}
.navbox-odd {
background-color: transparent;  /* Odd row striping */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}
}


/* Default styling for Navbar template */
.infobox.geography .mergedbottomrow td,
.navbar {
.infobox.geography .mergedbottomrow th {
display: inline;
    border-top: 0;
font-size: 88%;
    border-bottom: 1px solid #a2a9b1;
font-weight: normal;
    padding: 0 0.6em 0.4em 0.6em;
}
.navbar ul {
display: inline-block;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
}


/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.infobox.geography .maptable td,
.mw-parser-output .mw-collapsible-toggle {
.infobox.geography .maptable th {
font-weight: normal;
    border: 0;
/* @noflip */
    padding: 0;
text-align: right;
padding-right: 0.2em;
padding-left: 0.2em;
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
}
/* Style for horizontal lists (separator following item).
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 8 (2016-05-21)
  @author [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
/**
* Note hlist style usage differd in
* the Minerva skin. Remember .hlist is a class defined in core as well! Please check Minerva desktop (and Minerva.css) when changing
* See https://phabricator.wikimedia.org/T213239
*/
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
}
/* END styles for bordered infobox with merged rows */
/* Make Main Page title invisible */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
Anonymous user

Navigation menu