Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Responsive: Related articles - título arriba, contenido abajo */
/* 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) {
/* 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 */
    .related-articles-box{
.mw-parser-output,
word-break: keep-all;
.mw-content-text {
}
width: 100% !important;
 
max-width: 100% !important;
  /* Solución: scroll horizontal solo en el contenedor de la tabla, no en toda la página */
overflow-x: visible !important;
  /* Remover overflow-x de los contenedores principales para evitar scroll en toda la página */
}
  .mw-parser-output,
  .mw-content-text {
/* Las tablas tienen scroll horizontal individual - similar a .table-responsive de Bootstrap */
  overflow-x: visible !important;
/* Cada tabla es un contenedor con scroll independiente */
  }
/* Mantener estructura de tabla normal para que collapse funcione */
 
.mw-parser-output table.wikitable,
  /* Aplicar scroll horizontal a contenedores específicos que comúnmente tienen tablas */
.mw-content-text table.wikitable,
  /* Para elementos colapsables que contienen tablas */
.mw-parser-output table,
  .mw-parser-output .mw-collapsible-content,
.mw-content-text table {
  .mw-content-text .mw-collapsible-content,
display: block !important;
  .mw-parser-output .collapsible-content,
overflow-x: auto !important;
  .mw-content-text .collapsible-content {
overflow-y: hidden !important;
  overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important;
  -webkit-overflow-scrolling: touch !important;
width: 100% !important;
  width: 100% !important;
max-width: 100% !important;
  max-width: 100% !important;
table-layout: auto !important;
  }
margin: 1em 0 !important;
 
}
  /* Las tablas mantienen su ancho fijo de 2000px */
  .mw-parser-output table.wikitable,
/* Caption - mantener como block pero asegurar que aparezca visualmente primero */
  .mw-content-text table.wikitable,
.mw-parser-output table.wikitable caption,
  .mw-parser-output table:not([class]),
.mw-content-text table.wikitable caption,
  .mw-content-text table:not([class]) {
.mw-parser-output table caption,
  width: 2000px !important;
.mw-content-text table caption {
  min-width: 2000px !important;
display: block !important;
  max-width: 2000px !important;
text-align: left !important;
  table-layout: auto !important;
width: 100% !important;
  display: table !important;
margin-bottom: 0.5em !important;
  margin: 1em 0 !important;
position: relative !important;
  }
z-index: 1 !important;
 
}
  /* Sobrescribir estilos inline de width */
  .mw-parser-output table.wikitable[style*="width"],
/* El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */
  .mw-content-text table.wikitable[style*="width"],
/* Mantener como table para que el JavaScript de collapse funcione */
  .mw-parser-output table[style*="width"]:not([class]),
.mw-parser-output table.wikitable tbody,
  .mw-content-text table[style*="width"]:not([class]) {
.mw-content-text table.wikitable tbody,
  width: 2000px !important;
.mw-parser-output table tbody,
  min-width: 2000px !important;
.mw-content-text table tbody,
  max-width: 2000px !important;
.mw-parser-output table.wikitable thead,
  display: table !important;
.mw-content-text table.wikitable thead,
  }
.mw-parser-output table thead,
 
.mw-content-text table thead {
  /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
display: table !important;
  .mw-parser-output table.wikitable th,
width: 100% !important;
  .mw-content-text table.wikitable th,
min-width: 2000px !important;
  .mw-parser-output table.wikitable td,
}
  .mw-content-text table.wikitable td,
  .mw-parser-output table th,
/* Restaurar estructura de filas y celdas */
  .mw-content-text table th,
.mw-parser-output table.wikitable tr,
  .mw-parser-output table td,
.mw-content-text table.wikitable tr,
  .mw-content-text table td {
.mw-parser-output table tr,
  white-space: normal !important;
.mw-content-text table tr {
  word-wrap: break-word !important;
display: table-row !important;
  overflow-wrap: break-word !important;
}
  width: revert-layer !important;
  max-width: 100% !important;
/* Sobrescribir estilos inline de width en las tablas */
  }
.mw-parser-output table.wikitable[style*="width"],
 
.mw-content-text table.wikitable[style*="width"],
  /* Asegurar que el collapse/expand no se vea afectado */
.mw-parser-output table[style*="width"],
  .mw-collapsible.mw-collapsed table,
.mw-content-text table[style*="width"] {
  .mw-collapsible:not(.mw-collapsed) table {
display: block !important;
  display: table !important;
overflow-x: auto !important;
  }
overflow-y: hidden !important;
 
-webkit-overflow-scrolling: touch !important;
  table.wikitable > caption {
width: 100% !important;
  font-weight: bold;
max-width: 100% !important;
  width: 40%;
}
  text-align: left;
  }
/* 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 14:01, 30 January 2026

/* Responsive: Related articles - título arriba, contenido abajo */
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
  
    .related-articles-box{
		word-break: keep-all;
	 }
	   
	   /* Solución: scroll horizontal solo en el contenedor de la tabla, no en toda la página */
	   /* Remover overflow-x de los contenedores principales para evitar scroll en toda la página */
	   .mw-parser-output,
	   .mw-content-text {
		   overflow-x: visible !important;
	   }
	   
	   /* Aplicar scroll horizontal a contenedores específicos que comúnmente tienen tablas */
	   /* Para elementos colapsables que contienen tablas */
	   .mw-parser-output .mw-collapsible-content,
	   .mw-content-text .mw-collapsible-content,
	   .mw-parser-output .collapsible-content,
	   .mw-content-text .collapsible-content {
		   overflow-x: auto !important;
		   -webkit-overflow-scrolling: touch !important;
		   width: 100% !important;
		   max-width: 100% !important;
	   }
	   
	   /* Las tablas mantienen su ancho fijo de 2000px */
	   .mw-parser-output table.wikitable,
	   .mw-content-text table.wikitable,
	   .mw-parser-output table:not([class]),
	   .mw-content-text table:not([class]) {
		   width: 2000px !important;
		   min-width: 2000px !important;
		   max-width: 2000px !important;
		   table-layout: auto !important;
		   display: table !important;
		   margin: 1em 0 !important;
	   }
	   
	   /* Sobrescribir estilos inline de width */
	   .mw-parser-output table.wikitable[style*="width"],
	   .mw-content-text table.wikitable[style*="width"],
	   .mw-parser-output table[style*="width"]:not([class]),
	   .mw-content-text table[style*="width"]:not([class]) {
		   width: 2000px !important;
		   min-width: 2000px !important;
		   max-width: 2000px !important;
		   display: table !important;
	   }
	   
	   /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
	   .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;
	   }
	   
	   /* Asegurar que el collapse/expand no se vea afectado */
	   .mw-collapsible.mw-collapsed table,
	   .mw-collapsible:not(.mw-collapsed) table {
		   display: table !important;
	   }
	   
   table.wikitable > caption {
	   font-weight: bold;
	   width: 40%;
	   text-align: left;
   }
  }