Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
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 - contenedor con scroll horizontal */
    .related-articles-box{
/* El contenedor padre actúa como wrapper con scroll, similar a .table-responsive */
      word-break: keep-all;
.mw-parser-output,
    }
.mw-content-text {
          /* Solución tipo table-responsive de Bootstrap - contenedor con scroll horizontal */
display: block !important;
      /* El contenedor padre actúa como wrapper con scroll, similar a .table-responsive */
overflow-x: auto !important;
      .mw-parser-output,
-webkit-overflow-scrolling: touch !important;
      .mw-content-text {
width: 100% !important;
          display: block !important;
max-width: 100% !important;
          overflow-x: auto !important;
}
          -webkit-overflow-scrolling: touch !important;
          width: 100% !important;
/* Las tablas mantienen su estructura normal pero con ancho fijo razonable similar a desktop */
          max-width: 100% !important;
/* Similar a como Bootstrap hace: la tabla tiene un ancho fijo que simula el ancho de desktop */
      }
.mw-parser-output table.wikitable,
     
.mw-content-text table.wikitable,
      /* Las tablas mantienen su estructura normal pero con ancho fijo razonable similar a desktop */
.mw-parser-output table,
      /* Similar a como Bootstrap hace: la tabla tiene un ancho fijo que simula el ancho de desktop */
.mw-content-text table {
      .mw-parser-output table.wikitable,
width: 2000px !important;
      .mw-content-text table.wikitable,
min-width: 2000px !important;
      .mw-parser-output table,
max-width: 2000px !important;
      .mw-content-text table {
table-layout: auto !important;
          width: 2000px !important;
margin: 1em 0 !important;
          min-width: 2000px !important;
}
          max-width: 2000px !important;
          table-layout: auto !important;
/* Sobrescribir estilos inline de width */
          margin: 1em 0 !important;
.mw-parser-output table.wikitable[style*="width"],
      }
.mw-content-text table.wikitable[style*="width"],
     
.mw-parser-output table[style*="width"],
      /* Sobrescribir estilos inline de width */
.mw-content-text table[style*="width"] {
      .mw-parser-output table.wikitable[style*="width"],
width: 2000px !important;
      .mw-content-text table.wikitable[style*="width"],
min-width: 2000px !important;
      .mw-parser-output table[style*="width"],
max-width: 2000px !important;
      .mw-content-text table[style*="width"] {
}
          width: 2000px !important;
          min-width: 2000px !important;
/* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
          max-width: 2000px !important;
/* Sin max-width excesivo para evitar celdas de 12000px */
      }
.mw-parser-output table.wikitable th,
     
.mw-content-text table.wikitable th,
      /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
.mw-parser-output table.wikitable td,
      /* Sin max-width excesivo para evitar celdas de 12000px */
.mw-content-text table.wikitable td,
      .mw-parser-output table.wikitable th,
.mw-parser-output table th,
      .mw-content-text table.wikitable th,
.mw-content-text table th,
      .mw-parser-output table.wikitable td,
.mw-parser-output table td,
      .mw-content-text table.wikitable td,
.mw-content-text table td {
      .mw-parser-output table th,
white-space: normal !important;
      .mw-content-text table th,
word-wrap: break-word !important;
      .mw-parser-output table td,
overflow-wrap: break-word !important;
      .mw-content-text table td {
width: revert-layer !important;
          white-space: normal !important;
max-width: 100% !important;
          word-wrap: break-word !important;
}
          overflow-wrap: break-word !important;
          width: revert-layer !important;
/* Excluir tablas dentro de .related-articles-box - revertir estilos */
          max-width: 100% !important;
.related-articles-box table {
      }
width: auto !important;
  table.wikitable > caption {
min-width: auto !important;
      font-weight: bold;
max-width: 100% !important;
      width: 40%;
}
      text-align: left;
  }
.related-articles-box table[style*="width"] {
     
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;
}
}

Revision as of 14:29, 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) {
    .related-articles-box{
       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 */
      .mw-parser-output,
      .mw-content-text {
          display: block !important;
          overflow-x: auto !important;
          -webkit-overflow-scrolling: touch !important;
          width: 100% !important;
          max-width: 100% !important;
      }
      
      /* Las tablas mantienen su estructura normal pero con ancho fijo razonable similar a desktop */
      /* Similar a como Bootstrap hace: la tabla tiene un ancho fijo que simula el ancho de desktop */
      .mw-parser-output table.wikitable,
      .mw-content-text table.wikitable,
      .mw-parser-output table,
      .mw-content-text table {
          width: 2000px !important;
          min-width: 2000px !important;
          max-width: 2000px !important;
          table-layout: auto !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"],
      .mw-content-text table[style*="width"] {
          width: 2000px !important;
          min-width: 2000px !important;
          max-width: 2000px !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;
      }
  table.wikitable > caption {
      font-weight: bold;
      width: 40%;
      text-align: left;
  }
      
  }