MediaWiki:Common.css
From PikloDex
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* <h3> Shared interface </h3> */
.rcoptions td.mw-input, .rcoptions select, .rcoptions input {
width:auto;
}
#toc, .toc {
margin-bottom: 3px;
}
div.tleft, div.tright {
margin-top: 0.2em;
margin-bottom: 0.8em;
}
div#mw-upload-thumbnail {
float: right;
}
.thumb .mediaContainer {
margin: 4px auto 2px;
}
.thumb .multiVert .mediaContainer {
margin: 3px auto -1px;
}
.ns-104 div.thumb {
border-color: transparent;
}
ul.gallery, li.gallerybox div.thumb {
margin-bottom: 0;
padding-bottom: 0;
}
#bodyContent ul.gallery {
margin: 2px;
padding: 2px;
}
li.gallerycaption {
text-align: unset;
}
.mw_metadata {
margin-top: 5px;
}
#catlinks li {
margin: 0.28em 0;
line-height: 1em;
}
ol.references > li {
margin: 0px !important;
}
blockquote {
border-left: 3px solid #06f;
margin-left: 2em;
padding-left: 1em;
}
.mw-collapsible-toggle {
padding-right: 0.3em;
}
.infobox .mw-collapsible-toggle {
min-width: 39px;
text-align: right;
}
.contentbox > .mw-collapsible-toggle {
float: none !important;
}
/* Mark redirects on Special:AllPages and Special:EditWatchlist */
.allpagesredirect a.mw-redirect, .watchlistredir a.mw-redirect {
color: #888 !important;
}
/* main page */
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view #contentSub > *,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #catlinks,
body.page-Main_Page.action-view #lastmod {
display: none !important;
}
/* revision info */
.mw-revision.warningbox, div.mw-message-box-warning.mw-revision.mw-message-box {
margin-top:0px;
padding:0px;
border:0px;
background:none;
}
#mw-revision-info, #mw-revision-info-current, #mw-revision-nav {
color: #54595d;
}
/* References */
ol.references {
margin-top: 0;
font-size: 90%;
}
ol.references div {
display: inline;
}
ol.references span {
line-height: 1;
}
/* User pages */
.ns-2 #mw-content-text p > img {
max-width: 100% !important;
height: auto !important;
}
/* User talk pages */
.ns-3 [style*="position:fixed"],
.ns-3 [style*="position: fixed"] {
display: none;
}
/* <h3> All pages </h3> */
#bodyContent {
position: relative;
}
/* Edit box */
.wikiEditor-ui-toolbar .section-main,
.wikiEditor-ui-toolbar .tabs {
height: auto;
}
.wikiEditor-ui textarea#wpTextbox1 {
height: 474px;
line-height: 1.4em;
}
.mw-summary-preview {
margin-bottom: 0.5em;
}
#wpSummaryLabel .oo-ui-textInputWidget textarea,
#wpSummaryLabel .oo-ui-textInputWidget input {
padding-bottom: 0.5em;
}
#wpSummaryWidget .oo-ui-labelElement-label {
margin-right: 3px;
}
/* Edit section */
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:not(:first-of-type),
.client-js .mw-content-ltr .mw-editsection-bracket:not(:first-of-type) {
margin: 0;
color: unset;
}
.client-js .editButtons .editHelp {
display: none;
}
/* Dismissable site notice */
.sitedir-ltr .mw-dismissable-notice-body {
margin: 0 60px 0 0;
}
.sitedir-rtl .mw-dismissable-notice-body {
margin: 0 0 0 60px;
}
/* Video widget */
.infobox .videoWidget,
.infobox .videoWidget iframe {
display: block !important;
}
.infobox .autoResize {
margin: 0 auto !important;
}
.autoResize:not(.thumbinner) .thumbcaption {
margin: 0;
padding: 0;
}
.videoWidget + p {
margin: 0;
}
/* Diff text */
.diffchange { font-weight: normal; }
.diff-addedline, .diff-deletedline, .diff-context {
font-size: 92%;
}
.diff .diff-context {
min-width: 50%;
}
/* OOUI fix */
.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
overflow: visible;
}
/* Keep create account benefits up top */
.mw-special-CreateAccount #userloginForm {
margin-right: 90px;
}
/* Adjust inputbox button padding in Firefox */
@-moz-document url-prefix() {
.bodySearchWrap .mw-ui-button, .createboxButton {
padding-top: 4px;
padding-bottom: 5px;
}
}
/* Media player fix */
.wikitable .mediaContainer {
margin-top: 2px;
}
/* remove box-shadow from notifications */
#pt-notifications-alert .mw-echo-notifications-badge:focus, #pt-notifications-notice .mw-echo-notifications-badge:focus {
box-shadow: none;
}
/* Navigation templates */
/** horizontal **/
.hnav {
border:1px solid #aaa;
border-spacing:0;
font-size:90%;
clear:both;
margin:0.5em auto;
padding:0.5em;
text-align:center;
}
table.hnav th, table.hnav td {
font-size:90% !important;
padding-left:.3em;
padding-right:.3em;
}
table.hnav th {
background:#dfdfff;
color:#000;
}
table.hnav th + td {
padding-left:.5em;
}
.hnav .caption, .hnav .caption th, .hnav .header, .hnav .header th {
background:#ccccff;
color:#000;
text-align:center;
padding:0.15em 1em;
font-weight:bold;
font-size:103%;
}
table.hnav.borders td {
border-bottom: 1px solid #dfdfff;
}
table.hnav.borders tr:last-child > td {
border-bottom: none;
}
/** vertical **/
.vnav {
float:right;
text-align:center;
color:black;
background:white;
}
.vnav .title {
font-size:200%;
line-height:1.2em;
font-weight:bold;
}
.vnav .vnav_data {
overflow:hidden;
width:100%;
background:white;
color:black;
}
.vnav table {
width:100%;
border-collapse:collapse;
}
.vnav table.hover tr:hover {background:#fff68f; color:#000; }
.vnav table.data tr {border-top:1px dotted #888;}
.vnav table.data tr:first-child {border-top:none;}
/* mobilefrontend */
.content .vnav table, .content .infobox table {
margin: auto;
display: table;
}
.vnav .h {font-weight:bold;}
.infobox .h {
font-weight:bold;
text-align:center;
padding: 1px;
}
.infobox table.data {
width: 100%;
}
.infobox table.data th {
text-align:right;
padding-right:5px;
}
.infobox table.data td {
text-align:left;
}
/*** Estilos de tablas ***/
/*** General ***
Estilos para tablas. (de [[Wikipedia:es:MediaWiki:Common.css]])
La idea es, si se quiere que la primera columna de la tabla esté alineada
a la derecha, la segunda centrada y la tercera a la izquierda, usar
{| class="col1der col2cen col3izq"
en vez de repetir "style='text-align:right'", etc, en '''cada''' celda
*/
/* column alignment, I guess. */
table.col1right td:first-child { text-align:right; }
table.col1left td:first-child { text-align:left; }
table.col1center td:first-child { text-align:center; }
table.col2right td:first-child + td { text-align:right; }
table.col2left td:first-child + td { text-align:left; }
table.col2center td:first-child + td { text-align:center; }
table.col3right td:first-child + td + td { text-align:right; }
table.col3left td:first-child + td + td { text-align:left; }
table.col3center td:first-child + td + td { text-align:center; }
table.col4right td:first-child + td + td + td { text-align:right; }
table.col4left td:first-child + td + td + td { text-align:left; }
table.col4center td:first-child + td + td + td { text-align:center; }
table.col5right td:first-child + td + td + td + td { text-align:right; }
table.col5left td:first-child + td + td + td + td { text-align:left; }
table.col5center td:first-child + td + td + td + td { text-align:center; }
table.col6right td:first-child + td + td + td + td + td { text-align:right; }
table.col6left td:first-child + td + td + td + td + td { text-align:left; }
table.col6center td:first-child + td + td + td + td + td { text-align:center; }
table.col7right td:first-child + td + td + td + td + td + td { text-align:right; }
table.col7left td:first-child + td + td + td + td + td + td { text-align:left; }
table.col7center td:first-child + td + td + td + td + td + td { text-align:center; }
table.col8right td:first-child + td + td + td + td + td + td + td { text-align:right; }
table.col8left td:first-child + td + td + td + td + td + td + td { text-align:left; }
table.col8center td:first-child + td + td + td + td + td + td + td { text-align:center; }
table.col9right td:first-child + td + td + td + td + td + td + td + td { text-align:right; }
table.col9left td:first-child + td + td + td + td + td + td + td + td { text-align:left; }
table.col9center td:first-child + td + td + td + td + td + td + td + td { text-align:center; }
table.col10right td:first-child + td + td + td + td + td + td + td + td + td { text-align:right; }
table.col10left td:first-child + td + td + td + td + td + td + td + td + td { text-align:left; }
table.col10center td:first-child + td + td + td + td + td + td + td + td + td { text-align:center; }
/* Responsive design of some divs with fixed width */
@media only screen and (max-width: 720px) {
.vnav {
width: 100% !important;
float: none;
margin-left: 0 !important;
margin-right: 0 !important;
}
}
/* Tabber */
.infobox .tabbernav {
font-size: 90%;
}
.tabber.info {
display: block;
float: right;
margin: 0 0 0.5em 1em;
}
.tabber.info .nav {
display: block !important;
}
.tabber.info .infobox > tbody > tr:nth-child(2) img {
max-width: 100% !important;
height: auto !important;
}
.tabber.info table {
display: block !important;
float: none !important;
width: auto !important;
max-width: none !important;
margin: 0 !important;
overflow-x: auto !important;
}
.tabber.info tbody {
display: table !important;
width: 100% !important;
}
/* line differences */
.diff-addedline .diffchange {
background: #90EE90;
}
.diff-addedline {
border-color: #90EE90;
}
.diff-deletedline .diffchange {
background: #EEEE90;
}
.diff-deletedline {
border-color: #EEEE90;
}
/* Indicator icons */
.mw-indicators,
#mw-indicator-shortcut {
position: relative;
}
.mw-indicator {
margin: 0 2px;
}
/* Explain text */
.explain[title] {
text-decoration: none;
border-bottom: 1px dotted;
}
/* New user message box */
.usermessage {
margin-top: 1em;
}
/* search feature fixes */
.searchresults {
margin: 1em 0 1em 0.4em;
}
.searchresults .mw-search-exists {
margin-bottom: 3px;
}
/* Width fixes */
table {
max-width: 100%;
}
@media all and (max-width: 1100px) {
.mw-parser-output table {
min-width: 0 !important;
}
}
/* Multimedia viewer */
.mw-mmv-image img {
background: #fff !important;
}
.mw-mmv-filepage-buttons,
.mw-mmv-reuse-pane .oo-ui-widget-disabled {
display: none !important;
}
.mw-mmv-overlay {
z-index: 10000000000;
}
.mw-mmv-wrapper {
z-index: 10000000001;
font-size: medium;
}
/* Mobile only */
.mobileonly {
display: none;
}
/* Ban notice */
.warningbox {border: 1px solid darkred;background: #ffcfcf;}
/*
General table formats:
* wiki: standard
* list: standard + row highlighting on hover, rows closer together
* gallery: standard + centered + min column width 100px (yes and only if it contains headers)
*/
table.wiki, table.list, table.gallery {
border-collapse:collapse;
background:#f8f8ff;
color:#000;
margin-bottom:1.5em;
}
table.list {
font-size:95%;
line-height:1.1em;
}
table.gallery {
text-align:center;
margin:auto;
}
table.wiki td, table.wiki th,
table.list td, table.list th,
table.gallery td, table.gallery th
{ padding:2px; border:1px solid #88a; }
table.wiki caption, table.list caption, table.gallery caption {
line-height:1.1em;
padding:5px 2px;
}
tr.header { background:#ccf; color:#000; white-space:nowrap; }
/* color change on mouseover */
table.list tr:hover { background:#f5f5dc; color:#000; }
table.highlighted tr:hover { background:#f5f5dc; color:#000; }
/* remove for the headers */
table.list tr.header:hover { background:#ccf; color:#000; }
table.highlighted tr.header:hover { background:#ccf; color:#000; }
table.gallery tr.header th { width:105px; }
table.group {
border-collapse: collapse;
}
table.group td, table.group th {
border: 1px solid #C0C0C0;
padding: 2px;
}
table.group tr.header, table.group tr.header:nth-child(odd), table.group tr.header:nth-child(even) {
background-color: #667CC6;
color: white;
}
table.group tr:nth-child(odd) {
background-color: #F1F4F8;
}
/* <h3> Misc / Unsorted </h2> */
.special li {
line-height: 19px;
}
#preftoc a:active {
color: #00c;
}
.easywrap {
width: 100%;
table-layout: fixed;
word-wrap: break-word;
overflow: hidden;
}
.right {
text-align: right;
}
#editpage-copywarn {
margin: 0.6em 0 0.7em 0;
}
div.mw-translatenotice, div.mw-editinginterface, div.mw-translateinterface {
margin: 0.4em 0 0.5em 0;
}