MediaWiki:Common.css : Différence entre versions
Ligne 45 : | Ligne 45 : | ||
/* Default skin for navigation boxes */ | /* Default skin for navigation boxes */ | ||
− | + | /* Default style for navigation boxes */ | |
+ | .navbox { /* Navbox container style */ | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
− | width: 100%; | + | width: 100%; |
margin: auto; | margin: auto; | ||
clear: both; | clear: both; | ||
Ligne 54 : | Ligne 55 : | ||
padding: 1px; | padding: 1px; | ||
} | } | ||
− | + | .navbox-inner, | |
− | + | .navbox-subgroup { | |
+ | width: 100%; | ||
} | } | ||
+ | .navbox-group, | ||
.navbox-title, | .navbox-title, | ||
− | .navbox-abovebelow | + | .navbox-abovebelow { |
− | + | padding: 0.25em 1em; /* Title, group and above/below styles */ | |
− | + | line-height: 1.5em; | |
− | + | text-align: center; | |
− | |||
} | } | ||
− | .navbox-group { | + | th.navbox-group { /* Group style */ |
white-space: nowrap; | white-space: nowrap; | ||
− | /* @noflip */text-align: right | + | /* @noflip */ |
− | + | text-align: right; | |
− | |||
− | |||
} | } | ||
− | .navbox, .navbox-subgroup { | + | .navbox, |
− | background: #fdfdfd; | + | .navbox-subgroup { |
+ | background: #fdfdfd; /* Background color */ | ||
} | } | ||
.navbox-list { | .navbox-list { | ||
− | border-color: #fdfdfd; | + | line-height: 1.8em; |
+ | border-color: #fdfdfd; /* Must match background color */ | ||
} | } | ||
− | .navbox | + | .navbox th, |
− | + | .navbox-title { | |
− | background: # | + | background: #93c4d3; /* Level 1 color */ |
} | } | ||
.navbox-abovebelow, | .navbox-abovebelow, | ||
− | .navbox-group, | + | .navbox-group, /* ** Added class ** */ |
+ | th.navbox-group, | ||
.navbox-subgroup .navbox-title { | .navbox-subgroup .navbox-title { | ||
− | background: # | + | background: #9fd3e3; /* Level 2 color */ |
} | } | ||
− | .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { | + | .navbox-subgroup .navbox-group, |
− | background: # | + | .navbox-subgroup .navbox-abovebelow { |
+ | background: #ace0f0; /* Level 3 color */ | ||
} | } | ||
.navbox-even { | .navbox-even { | ||
− | background: # | + | background: #f0f0f0; /* Even row striping */ |
} | } | ||
.navbox-odd { | .navbox-odd { | ||
− | background: transparent; /* Odd row striping */ | + | background: transparent; /* Odd row striping */ |
+ | } | ||
+ | table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | ||
+ | margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ | ||
+ | } | ||
+ | .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 */ | ||
+ | } | ||
+ | ol + table.navbox, | ||
+ | ul + table.navbox { | ||
+ | margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ | ||
+ | } | ||
+ | |||
+ | /* Default styling for Navbar template */ | ||
+ | .navbar { | ||
+ | display: inline; | ||
+ | font-size: 88%; | ||
+ | font-weight: normal; | ||
+ | } | ||
+ | .navbar ul { | ||
+ | display: inline; | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | .navbar li { | ||
+ | word-spacing: -0.125em; | ||
+ | } | ||
+ | .navbar.mini li span { | ||
+ | font-variant: small-caps; | ||
+ | } | ||
+ | /* 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; | ||
+ | width: 6em; | ||
} | } | ||
− | + | /* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript in [[MediaWiki:Common.js]] are styled here so they can be customised. */ | |
− | /* @noflip */float: right; | + | .collapseButton { |
− | font-weight: normal; | + | /* @noflip */ |
− | /* @noflip */text-align: right; | + | float: right; |
+ | font-weight: normal; | ||
+ | /* @noflip */ | ||
+ | margin-left: 0.5em; | ||
+ | /* @noflip */ | ||
+ | text-align: right; | ||
width: auto; | width: auto; | ||
} | } | ||
− | + | /* In navboxes, the show/hide button balances the v·d·e links from [[Template:Navbar]], so they need to be the same width. */ | |
− | + | .navbox .collapseButton { | |
− | + | width: 6em; | |
+ | } | ||
− | + | /* Styling for JQuery makeCollapsible, matching that of collapseButton */ | |
− | + | .mw-collapsible-toggle { | |
font-weight: normal; | font-weight: normal; | ||
+ | /* @noflip */ | ||
+ | text-align: right; | ||
} | } | ||
− | .navbox . | + | .navbox .mw-collapsible-toggle { |
− | + | width: 6em; | |
} | } | ||
− | + | ||
/* Style for horizontal lists (separator following item). | /* Style for horizontal lists (separator following item). |
Version du 12 janvier 2018 à 10:46
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* make the list of references look smaller */ ol.references {
font-size: 100%;
}
.references-small { font-size: 90%;}
/* wikitable/prettytable class for skinning normal tables */
table.wikitable, table.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td {
border: 1px #aaa solid;
padding: 0.2em;
}
table.wikitable th, table.prettytable th {
background: #f2f2f2;
text-align: center;
}
table.wikitable caption, table.prettytable caption {
margin-left: inherit;
margin-right: inherit;
font-weight: bold;
}
/* Default skin for navigation boxes */
/* Default style for navigation boxes */
.navbox { /* Navbox container style */
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-group { /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,
.navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
line-height: 1.8em;
border-color: #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
background: #93c4d3; /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group, /* ** Added class ** */
th.navbox-group,
.navbox-subgroup .navbox-title {
background: #9fd3e3; /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background: #ace0f0; /* Level 3 color */
}
.navbox-even {
background: #f0f0f0; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
}
.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 */
}
ol + table.navbox,
ul + table.navbox {
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */
}
/* Default styling for Navbar template */
.navbar {
display: inline;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline;
white-space: nowrap;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li span {
font-variant: small-caps;
}
/* 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;
width: 6em;
}
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
/* @noflip */
float: right;
font-weight: normal;
/* @noflip */
margin-left: 0.5em;
/* @noflip */
text-align: right;
width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
width: 6em;
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
font-weight: normal;
/* @noflip */
text-align: right;
}
.navbox .mw-collapsible-toggle {
width: 6em;
}
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 9 (2016-08-10)
@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,
.hlist .mw-empty-elt {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
.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";
}