Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(83 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Responsive: Related articles - título arriba, contenido abajo */
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
    ol.references { font-size: 3.8rem !important; }
    .notes-header-wrapper { font-size: 6.2rem !important; }
/* Solución tipo table-responsive de Bootstrap - scroll solo en las tablas, no en el contenedor */
    body { font-size: 3.8rem !important; }
/* El contenedor padre NO tiene scroll, solo las tablas individuales */
    h1 { font-size: 5.8rem !important; }
.mw-parser-output,
    h2 { font-size: 5.2rem !important; }
.mw-content-text {
    h3 { font-size: 4.8rem !important; }
width: 100% !important;
    h4 { font-size: 4.4rem !important; }
max-width: 100% !important;
    h5 { font-size: 4.0rem !important; }
overflow-x: visible !important;
    h6 { font-size: 3.8rem !important; }
}
    .references {
      max-width: 100%;
/* Las tablas tienen scroll horizontal individual - similar a .table-responsive de Bootstrap */
      overflow-wrap: break-word;
/* Cada tabla es un contenedor con scroll independiente */
    }
/* Usar flexbox para reordenar caption primero, pero mantener estructura para collapse */
 
.mw-parser-output table.wikitable,
  .portlet h3 {
.mw-content-text table.wikitable,
      font-size: 0.6em !important;       /* Tamaño legible para los títulos */  
.mw-parser-output table,
    margin-bottom: 10px !important;    /* Espacio para que no se encime con la lista de abajo */
.mw-content-text table {
    text-transform: uppercase;
display: flex !important;
    letter-spacing: 1px;
flex-direction: column !important;
}
overflow-x: auto !important;
 
overflow-y: hidden !important;
 
-webkit-overflow-scrolling: touch !important;
/* Ajuste de los enlaces dentro de las listas */
width: 100% !important;
.portlet ul li a {
max-width: 100% !important;
    font-size: 1.95em;     /* Tamaño de letra más cómodo para los links */
table-layout: auto !important;
    line-height: 1.4;      /* Más espacio entre líneas de links */
margin: 1em 0 !important;
    color: #ddd;           /* Color suave para los enlaces */
align-items: flex-start !important;
    text-decoration: none;
}
}
 
/* Caption debe aparecer primero usando order */
.portlet ul li a:hover {
.mw-parser-output table.wikitable caption,
    color: #fff;           /* Resalte al pasar el mouse */
.mw-content-text table.wikitable caption,
    text-decoration: underline;
.mw-parser-output table caption,
}
.mw-content-text table caption {
}
display: block !important;
 
text-align: left !important;
#page-tools {
width: 100% !important;
    display: flex;       /* Activa el modo flexible */
order: -1 !important;
    flex-wrap: wrap;     /* Permite que los elementos bajen a la siguiente línea si no caben */
margin-bottom: 0.5em !important;
    gap: 20px;           /* Añade espacio entre cada grupo (portlet) */
flex-shrink: 0 !important;
    width: 100%;         /* Asegura que use todo el ancho disponible */
}
}
 
/* El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */
.portlet.mw-portlet {
/* Mantener como table para que el JavaScript de collapse funcione */
    flex: 0 1 auto;     /* Los grupos mantienen su tamaño natural */
/* Usar min-width para activar scroll horizontal en el contenedor flex */
    min-width: 150px;   /* Evita que se compriman demasiado */
.mw-parser-output table.wikitable tbody,
}
.mw-content-text table.wikitable tbody,
 
.mw-parser-output table tbody,
.portlet ul {
.mw-content-text table tbody,
    list-style: none;
.mw-parser-output table.wikitable thead,
    margin: 0;
.mw-content-text table.wikitable thead,
    padding: 0;
.mw-parser-output table thead,
    display: flex;
.mw-content-text table thead {
    flex-direction: column;
display: table !important;
    gap: 5px;
width: 100% !important;
}
min-width: 2000px !important;
order: 1 !important;
flex-shrink: 0 !important;
align-self: stretch !important;
}
/* Restaurar estructura de filas y celdas */
.mw-parser-output table.wikitable tr,
.mw-content-text table.wikitable tr,
.mw-parser-output table tr,
.mw-content-text table tr {
display: table-row !important;
}
/* Sobrescribir estilos inline de width en las tablas */
.mw-parser-output table.wikitable[style*="width"],
.mw-content-text table.wikitable[style*="width"],
.mw-parser-output table[style*="width"],
.mw-content-text table[style*="width"] {
display: flex !important;
flex-direction: column !important;
overflow-x: auto !important;
overflow-y: hidden !important;
-webkit-overflow-scrolling: touch !important;
width: 100% !important;
max-width: 100% !important;
}
/* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
/* Sin max-width excesivo para evitar celdas de 12000px */
.mw-parser-output table.wikitable th,
.mw-content-text table.wikitable th,
.mw-parser-output table.wikitable td,
.mw-content-text table.wikitable td,
.mw-parser-output table th,
.mw-content-text table th,
.mw-parser-output table td,
.mw-content-text table td {
white-space: normal !important;
word-wrap: break-word !important;
overflow-wrap: break-word !important;
width: revert-layer !important;
max-width: 100% !important;
}
/* Excluir tablas dentro de .related-articles-box - revertir estilos */
.related-articles-box table {
display: table !important;
overflow-x: visible !important;
overflow-y: visible !important;
width: auto !important;
min-width: auto !important;
max-width: 100% !important;
}
.related-articles-box table tbody,
.related-articles-box table thead {
display: table-row-group !important;
min-width: auto !important;
}
.related-articles-box table[style*="width"] {
display: table !important;
overflow-x: visible !important;
overflow-y: visible !important;
width: auto !important;
min-width: auto !important;
max-width: 100% !important;
}
.related-articles-box table th,
.related-articles-box table td {
width: auto !important;
max-width: 100% !important;
}
  }

Latest revision as of 15:00, 29 January 2026

/* Responsive: Related articles - título arriba, contenido abajo */
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
 	
	/* Solución tipo table-responsive de Bootstrap - scroll solo en las tablas, no en el contenedor */
	/* El contenedor padre NO tiene scroll, solo las tablas individuales */
	.mw-parser-output,
	.mw-content-text {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: visible !important;
	}
	
	/* Las tablas tienen scroll horizontal individual - similar a .table-responsive de Bootstrap */
	/* Cada tabla es un contenedor con scroll independiente */
	/* Usar flexbox para reordenar caption primero, pero mantener estructura para collapse */
	.mw-parser-output table.wikitable,
	.mw-content-text table.wikitable,
	.mw-parser-output table,
	.mw-content-text table {
		display: flex !important;
		flex-direction: column !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch !important;
		width: 100% !important;
		max-width: 100% !important;
		table-layout: auto !important;
		margin: 1em 0 !important;
		align-items: flex-start !important;
	}
	
	/* Caption debe aparecer primero usando order */
	.mw-parser-output table.wikitable caption,
	.mw-content-text table.wikitable caption,
	.mw-parser-output table caption,
	.mw-content-text table caption {
		display: block !important;
		text-align: left !important;
		width: 100% !important;
		order: -1 !important;
		margin-bottom: 0.5em !important;
		flex-shrink: 0 !important;
	}
	
	/* El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */
	/* Mantener como table para que el JavaScript de collapse funcione */
	/* Usar min-width para activar scroll horizontal en el contenedor flex */
	.mw-parser-output table.wikitable tbody,
	.mw-content-text table.wikitable tbody,
	.mw-parser-output table tbody,
	.mw-content-text table tbody,
	.mw-parser-output table.wikitable thead,
	.mw-content-text table.wikitable thead,
	.mw-parser-output table thead,
	.mw-content-text table thead {
		display: table !important;
		width: 100% !important;
		min-width: 2000px !important;
		order: 1 !important;
		flex-shrink: 0 !important;
		align-self: stretch !important;
	}
	
	/* Restaurar estructura de filas y celdas */
	.mw-parser-output table.wikitable tr,
	.mw-content-text table.wikitable tr,
	.mw-parser-output table tr,
	.mw-content-text table tr {
		display: table-row !important;
	}
	
	/* Sobrescribir estilos inline de width en las tablas */
	.mw-parser-output table.wikitable[style*="width"],
	.mw-content-text table.wikitable[style*="width"],
	.mw-parser-output table[style*="width"],
	.mw-content-text table[style*="width"] {
		display: flex !important;
		flex-direction: column !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
	/* Sin max-width excesivo para evitar celdas de 12000px */
	.mw-parser-output table.wikitable th,
	.mw-content-text table.wikitable th,
	.mw-parser-output table.wikitable td,
	.mw-content-text table.wikitable td,
	.mw-parser-output table th,
	.mw-content-text table th,
	.mw-parser-output table td,
	.mw-content-text table td {
		white-space: normal !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
		width: revert-layer !important;
		max-width: 100% !important;
	}
	
	/* Excluir tablas dentro de .related-articles-box - revertir estilos */
	.related-articles-box table {
		display: table !important;
		overflow-x: visible !important;
		overflow-y: visible !important;
		width: auto !important;
		min-width: auto !important;
		max-width: 100% !important;
	}
	
	.related-articles-box table tbody,
	.related-articles-box table thead {
		display: table-row-group !important;
		min-width: auto !important;
	}
	
	.related-articles-box table[style*="width"] {
		display: table !important;
		overflow-x: visible !important;
		overflow-y: visible !important;
		width: auto !important;
		min-width: auto !important;
		max-width: 100% !important;
	}
	
	.related-articles-box table th,
	.related-articles-box table td {
		width: auto !important;
		max-width: 100% !important;
	}
	
  }