MediaWiki:Common.css
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
- Opera: Presiona Ctrl+F5.
/* Los estilos CSS definidos aquí aplicarán a todas las pieles (skins) */
/* oculta el título en la Portada */
body.page-Portada h1.firstHeading {
display:none !important;
}
/* Quality: Da color al nivel de qualitat (ver Ayuda:Qualitat de les paginas) */
.quality4 {
background:#90ff90;
}
.quality3 {
background:#ffe867;
}
.quality2 {
background:#b0b0ff;
}
.quality1 {
background:#ffa0a0;
}
.quality0 {
background:#ddd;
}
/* Fix: páginas seguidas en poemas "poem" se separan con un espacio */
.poem p {
margin: 0;
}
/* estilos trasladados desde commons, por considerarse generalistas */
.verse pre {
background-color: #ffffff;
font-family:sans-serif;
line-height: 150%;
border: 0px;
padding-left: 2em;
margin: 0;
white-space: pre;
}
.verse p {
white-space: pre;
}
.prose p {
}
.prose {
width: 35em;
text-align:justify;
margin:0px auto;
}
.prosa p {
}
.prosa {
width: 45em;
text-align:justify;
margin:0px auto;
}
/*</pre>
==Estilos del proyecto==
Nuevo estilo para aplicar a los párrafos este dispone:
*Alineación de texto justificada
*Sangría en la primera linea
*El primer carácter en mayúscula
Su aplicación sería. '''class="Parrafo"''', también en la botonera de edición
<pre> */
.Parrafo{
text-indent:5mm;
margin-left:2em;
margin:0.5em 1em 0.5em 2em;
text-align:justify;
}
.Parrafo:first-letter {
text-transform: uppercase;
}
.Banner{
background-color:#385490;
color:#F0F8F8;
}
.mBanner{
background-color:#385490;
color:#F0F8F8;
text-align:center;
font-size:140%;
padding:0.5em;
margin-bottom:0.5em;
font-weight:bold;
}
/*</pre>
==Estilos para aplicar sobre plantillas==
<pre> */
.Plantilla{
clear:both;
margin: 5px 10px 5px 10px;
padding: 5px;
}
.Edicion {
background-color:#FCF0CD;
border: solid #98750C;
}
.Aviso {
border: solid red;
background-color:#FFDFDF;
}
.SuperiorIcono
{
position:absolute;
z-index:100;
right:10px;
top:10px;
}
/* Estilo por defecto en la Plantilla:Asterismo*/
.asterismo {
text-align:center;
}
.separador {
text-align:center;
}
/* </pre>
/* Textos con orientación vertical (línea de base a la izquierda y a la derecha, respectivamente) */
.vertical-text-l {
writing-mode: tb-rl;
-webkit-transform:rotate(90deg);
-moz-transform:rotate(90deg);
-o-transform: rotate(90deg);
}
.vertical-text-r {
writing-mode: tb-rl;
-webkit-transform:rotate(-90deg);
-moz-transform:rotate(-90deg);
-o-transform: rotate(-90deg);
}
.show-changes .v-es-act {
background-color: #AAFFAA;
}
.references > li:target,
.reference:target,
.citation:target,
cite:target,
.anclaje:target{
background-color: #DEF;
}
/* Formato general */
.ns-0 .mw-parser-output, .ns-102 .mw-parser-output {
position: relative;
text-align: justify;
}
.ns-0 .mw-parser-output > p, .ns-0 .prp-pages-output > p, .ns-102 .mw-parser-output > p, .ns-102 .prp-pages-output > p {
text-indent: 2em;
}
.ns-102 .mw-parser-output p:first-of-type,
.ns-0 .mw-parser-output > .dropinitial + p, .ns-0 .prp-pages-output > .dropinitial + p, .ns-102 .mw-parser-output > .dropinitial + p, .ns-102 .prp-pages-output > .dropinitial + p {
text-indent: 0;
}
.footertemplate {
width: 100%;
border-top: 1px solid #a0a0a0;
border-bottom: 1px solid #a0a0a0;
background-color: #f4f0e5;
text-align: center;
}
/* Ubicación de los números de página transcluidas. */
#text-wrap { margin-left:3em; position:relative; }
/* sidenotes */
body.ns-102 .sidenote-left { position:absolute; left:0; width:6em; padding-right:1em; text-indent:0; text-align:left;}
body.ns-102 .sidenote-right { position:absolute; right:0; width:6em; padding-left:1em; text-indent:0; text-align:left;}
/* Referencias */
div.reflist ol.references {
list-style-type: inherit; /* Enable custom list style types */
}
/* Errores de tipeo (plantilla Corr) de otro color */
body.ns-102 .tipeo { color:#1e761e; }
/* Clases muy generales del Módulo:Centrar y plantillas relacionadas.
Para evitar cargar una página CSS adicional en decenas de miles de páginas */
.ws-bloque-centro{
display: table;
margin-right:auto;
margin-left:auto;
}
.ws-bloque-derecha{
margin-right: 0;
text-align:inherit;
}
.ws-bloque-izquierda{
margin-left:0;
}
.ws-sangria-colgante{
margin-left: 2em;
text-indent: -2em;
}
.ws-sangria-colgante-m{
margin-left:2em;
}
.ws-flotador-d{
margin: 0 0 0 0;
}
.ws-flotador-i{
margin-top:0;
margin-bottom:0;
margin-right:0;
}
/**
* The following rules are for rotation testing only.
*
*/
.rotp90, .rot90 {
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.rot180 {
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.rotn90, .rot270 {
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
/*
*Plantilla:Pt
*/
.pt-personaje {
font-weight:bold;
}
d
/* estilos para tablas: a falta de una mejor manera para seleccionar columnas
crea las clases col + n + izq, cen, o der para establecer la alineación de esas columnas */
.col1der td:nth-of-type(1),
.col2der td:nth-of-type(2),
.col3der td:nth-of-type(3),
.col4der td:nth-of-type(4),
.col5der td:nth-of-type(5),
.col6der td:nth-of-type(6),
.col7der td:nth-of-type(7),
.col8der td:nth-of-type(8),
.col9der td:nth-of-type(9),
.col10der td:nth-of-type(10),
.col11der td:nth-of-type(11),
.col12der td:nth-of-type(12),
.col13der td:nth-of-type(13),
.col14der td:nth-of-type(14),
.col15der td:nth-of-type(15),
.col16der td:nth-of-type(16),
.col17der td:nth-of-type(17),
.col18der td:nth-of-type(18),
.col19der td:nth-of-type(19),
.col20der td:nth-of-type(20)
{text-align:right}
.col1izq td:nth-of-type(1),
.col2izq td:nth-of-type(2),
.col3izq td:nth-of-type(3),
.col4izq td:nth-of-type(4),
.col5izq td:nth-of-type(5),
.col6izq td:nth-of-type(6),
.col7izq td:nth-of-type(7),
.col8izq td:nth-of-type(8),
.col9izq td:nth-of-type(9),
.col10izq td:nth-of-type(10),
.col11izq td:nth-of-type(11),
.col12izq td:nth-of-type(12),
.col13izq td:nth-of-type(13),
.col14izq td:nth-of-type(14),
.col15izq td:nth-of-type(15),
.col16izq td:nth-of-type(16),
.col17izq td:nth-of-type(17),
.col18izq td:nth-of-type(18),
.col19izq td:nth-of-type(19),
.col20izq td:nth-of-type(20)
{text-align:left}
.col1cen td:nth-of-type(1),
.col2cen td:nth-of-type(2),
.col3cen td:nth-of-type(3),
.col4cen td:nth-of-type(4),
.col5cen td:nth-of-type(5),
.col6cen td:nth-of-type(6),
.col7cen td:nth-of-type(7),
.col8cen td:nth-of-type(8),
.col9cen td:nth-of-type(9),
.col10cen td:nth-of-type(10),
.col11cen td:nth-of-type(11),
.col12cen td:nth-of-type(12),
.col13cen td:nth-of-type(13),
.col14cen td:nth-of-type(14),
.col15cen td:nth-of-type(15),
.col16cen td:nth-of-type(16),
.col17cen td:nth-of-type(17),
.col18cen td:nth-of-type(18),
.col19cen td:nth-of-type(19),
.col20cen td:nth-of-type(20)
{text-align:center}
/* T156351: Support for Parsoid's Cite implementation */
.mw-ref > a[data-mw-group=upper-roman]::after {
content: '[' counter( mw-Ref, upper-roman ) ']';
}
.mw-ref > a[data-mw-group=decimal]::after {
content: '[' counter( mw-Ref, decimal ) ']';
}
.mw-ref > a[data-mw-group=lower-alpha]::after {
content: '[' counter( mw-Ref, lower-alpha ) ']';
}
.mw-ref > a[data-mw-group=lower-greek]::after {
content: '[' counter( mw-Ref, lower-greek ) ']';
}
.mw-ref > a[data-mw-group=lower-roman]::after {
content: '[' counter( mw-Ref, lower-roman ) ']';
}
.mw-ref > a[data-mw-group=upper-alpha]::after {
content: '[' counter( mw-Ref, upper-alpha ) ']';
}