MediaWiki:Mobile.css

De Wikipedia, la enciclopedia libre

Nota: Después de guardar, debes refrescar la caché de tu navegador para ver los cambios. Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar. Firefox: mientras presionas Mayús pulsas el botón Actualizar, (o presiona Ctrl-Shift-R). Los usuarios de Google Chrome y Safari pueden simplemente pulsar el botón Recargar. Para más detalles e instrucciones acerca de otros exploradores, véase Ayuda:Cómo limpiar la caché.

/* En los dispositivos móviles, las referencias deberían verse siempre en una sola columna.
   https://es.wikipedia.org/w/index.php?oldid=68484568#Varias_columnas_en_las_referencias_y_dispositivos_móviles */
.listaref {
  -moz-column-count: 1 !important;
  -moz-column-width: auto !important;
  -webkit-column-count: 1 !important;
  -webkit-column-width: auto !important;
  column-count: 1 !important;
  column-width: auto !important;
}
blockquote.citado {
  font-size: 90% !important;
  quotes: none !important;
  margin: 0.5em 1em !important;
}

/* Ocultar texto para los no bibliotecarios */
.para_biblios {
  display: none
}

/* Minerva agrega un padding excesivo a los avisos, esto lo compensa */
table.ambox td {
  padding: .3em !important;
}

/* espacio entre llamadas a referencias */

sup.reference {
  margin-right: 0.6ch;
}
sup.reference:not(.separada) {
  margin-left: -0.6ch;
}
    /* TABLAS */
    /* distinto color en filas pares */

    /* default: grisecito */
    table.striped tr:nth-child(even) {
    	background-color: #f2f3f4;
    }

    /** Estilos para tablas.
        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
    **/
    .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}

/**
  * Importado desde [[:w:en:Special:Permalink/1012539677]] para solucionar los
  * problemas de visualización del estilo .hlist en dispositivos móviles.
  * Ver solicitud y discusión en [[Especial:Enlace_permanente/134427101#Hola]]
  */

/*
 * Generate interpuncts 
 * FIXME: Move to template.
 */
/* Can be removed when T169315 is resolved */
#content .hlist-separated li:after {
	font-size: 0.8em;
	color: #333;
}
/**
  * FIXME: DUPLICATES Template:Hlist/styles.css
  * Note the mobile skin provides a `hlist-separated` class for this purpose. Use this class name alongside the hlist class instead as this will result in a FOUC.
  * Should be removed and moved to templates.
  */
/* Counter hlist indenting of Minerva */
.mw-parser-output .hlist ul,
.mw-parser-output .hlist ol {
	padding-left: 0;
}
/* reset hlist margins of Minerva; do not add li here (see T235416) */
.mw-parser-output .hlist dd,
.mw-parser-output .hlist dt {
	margin-right: 0;
}

/* do not add li here. Minerva provides it already */
.mw-parser-output .hlist dd:after {
	content: " · ";
	font-weight: bold;
}
.mw-parser-output .hlist dt:after {
	content: ": ";
}

/* Should be removed and moved to templates once TemplateStyles is live */
.heading-holder hlist li:after,
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
	content: none;
}

/* Add parentheses around nested lists */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
	content: " (";
	font-weight: normal;
}

/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
	content: ") ";
	font-weight: normal;
}

/* Put ordinals in front of ordered list items */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol {
	counter-reset: listitem;
}

/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol > li {
	counter-increment: listitem;
}

/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol > li:before {
	content: " " counter(listitem) " ";
	white-space: nowrap;
}

/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
	content: " (" counter(listitem) " ";
}