Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(8 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) {
 
     .related-articles-box{
     .related-articles-box{
      word-break: keep-all;
word-break: keep-all;
    }
}
          /* Solución tipo table-responsive de Bootstrap - contenedor con scroll horizontal */
 
      /* El contenedor padre actúa como wrapper con scroll, similar a .table-responsive */
  /* Solución: scroll horizontal solo en el contenedor de la tabla, no en toda la página */
      .mw-parser-output,
  /* Remover overflow-x de los contenedores principales para evitar scroll en toda la página */
      .mw-content-text {
  .mw-parser-output,
          width: 100% !important;
  .mw-content-text {
          max-width: 100% !important;
  overflow-x: visible !important;
          overflow-x: visible !important;
  }
      }
 
     
  /* Aplicar scroll horizontal a contenedores específicos que comúnmente tienen tablas */
      /* Las tablas mantienen su estructura normal pero con ancho fijo razonable similar a desktop */
  /* Para elementos colapsables que contienen tablas */
      /* Similar a como Bootstrap hace: la tabla tiene un ancho fijo que simula el ancho de desktop */
  .mw-parser-output .mw-collapsible-content,
      .mw-parser-output table.wikitable,
  .mw-content-text .mw-collapsible-content,
      .mw-content-text table.wikitable,
  .mw-parser-output .collapsible-content,
      .mw-parser-output table,
  .mw-content-text .collapsible-content {
      .mw-content-text table {
  overflow-x: auto !important;
          display: block !important;
  -webkit-overflow-scrolling: touch !important;
          overflow-x: auto !important;
  width: 100% !important;
          overflow-y: hidden !important;
  max-width: 100% !important;
          -webkit-overflow-scrolling: touch !important;
  }
          width: 100% !important;
 
          max-width: 100% !important;
  /* Las tablas mantienen su ancho fijo de 2000px */
          table-layout: auto !important;
  .mw-parser-output table.wikitable,
          margin: 1em 0 !important;
  .mw-content-text table.wikitable,
      }
  .mw-parser-output table:not([class]),
     
  .mw-content-text table:not([class]) {
      /* Sobrescribir estilos inline de width */
  width: 2000px !important;
      .mw-parser-output table.wikitable[style*="width"],
  min-width: 2000px !important;
      .mw-content-text table.wikitable[style*="width"],
  max-width: 2000px !important;
      .mw-parser-output table[style*="width"],
  table-layout: auto !important;
      .mw-content-text table[style*="width"] {
  display: table !important;
          display: block !important;
  margin: 1em 0 !important;
          overflow-x: auto !important;
  }
          overflow-y: hidden !important;
 
          -webkit-overflow-scrolling: touch !important;
  /* Sobrescribir estilos inline de width */
          width: 100% !important;
  .mw-parser-output table.wikitable[style*="width"],
          max-width: 100% !important;
  .mw-content-text table.wikitable[style*="width"],
      }
  .mw-parser-output table[style*="width"]:not([class]),
     
  .mw-content-text table[style*="width"]:not([class]) {
      * El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */
  width: 2000px !important;
      .mw-parser-output table.wikitable tbody,
  min-width: 2000px !important;
      .mw-content-text table.wikitable tbody,
  max-width: 2000px !important;
      .mw-parser-output table tbody,
  display: table !important;
      .mw-content-text table tbody,
  }
      .mw-parser-output table.wikitable thead,
 
      .mw-content-text table.wikitable thead,
  /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
      .mw-parser-output table thead,
  .mw-parser-output table.wikitable th,
      .mw-content-text table thead {
  .mw-content-text table.wikitable th,
          display: table !important;
  .mw-parser-output table.wikitable td,
          width: 100% !important;
  .mw-content-text table.wikitable td,
          min-width: 2000px !important;
  .mw-parser-output table th,
      }
  .mw-content-text table th,
     
  .mw-parser-output table td,
      /* Restaurar estructura de filas y celdas */
  .mw-content-text table td {
      .mw-parser-output table.wikitable tr,
  white-space: normal !important;
      .mw-content-text table.wikitable tr,
  word-wrap: break-word !important;
      .mw-parser-output table tr,
  overflow-wrap: break-word !important;
      .mw-content-text table tr {
  width: revert-layer !important;
          display: table-row !important;
  max-width: 100% !important;
      }
  }
     
 
      /* Caption debe aparecer primero */
  /* Asegurar que el collapse/expand no se vea afectado */
      .mw-parser-output table.wikitable caption,
  .mw-collapsible.mw-collapsed table,
      .mw-content-text table.wikitable caption,
  .mw-collapsible:not(.mw-collapsed) table {
      .mw-parser-output table caption,
  display: table !important;
      .mw-content-text table caption {
  }
          display: block !important;
 
          caption-side: top !important;
  table.wikitable > caption {
          text-align: left !important;
  font-weight: bold;
          width: 100% !important;
  width: 40%;
          margin-bottom: 0.5em !important;
  text-align: left;
      }
  }
     
      table.wikitable > caption {
        display: block !important;
        caption-side: top !important;
        font-weight: bold;
        width: 100% !important;
        text-align: left;
        margin-bottom: 0.5em !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;
   }
  }