Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 8: Line 8:
       .mw-parser-output,
       .mw-parser-output,
       .mw-content-text {
       .mw-content-text {
        width: 100% !important;
          width: 100% !important;
        max-width: 100% !important;
          max-width: 100% !important;
        overflow-x: visible !important;
          overflow-x: visible !important;
       }
       }
        
        
Line 19: Line 19:
       .mw-parser-output table,
       .mw-parser-output table,
       .mw-content-text table {
       .mw-content-text table {
           width: 2000px !important;
           display: block !important;
           min-width: 2000px !important;
          overflow-x: auto !important;
           max-width: 2000px !important;
          overflow-y: hidden !important;
           -webkit-overflow-scrolling: touch !important;
          width: 100% !important;
           max-width: 100% !important;
           table-layout: auto !important;
           table-layout: auto !important;
           margin: 1em 0 !important;
           margin: 1em 0 !important;
Line 31: Line 34:
       .mw-parser-output table[style*="width"],
       .mw-parser-output table[style*="width"],
       .mw-content-text table[style*="width"] {
       .mw-content-text table[style*="width"] {
           width: 2000px !important;
          display: block !important;
          overflow-x: auto !important;
          overflow-y: hidden !important;
          -webkit-overflow-scrolling: touch !important;
          width: 100% !important;
          max-width: 100% !important;
      }
     
      * El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */
      .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;
           min-width: 2000px !important;
          max-width: 2000px !important;
       }
       }
        
        
       /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
       /* Restaurar estructura de filas y celdas */
      /* Sin max-width excesivo para evitar celdas de 12000px */
       .mw-parser-output table.wikitable tr,
       .mw-parser-output table.wikitable th,
       .mw-content-text table.wikitable tr,
       .mw-content-text table.wikitable th,
       .mw-parser-output table tr,
       .mw-parser-output table.wikitable td,
       .mw-content-text table tr {
       .mw-content-text table.wikitable td,
          display: table-row !important;
       .mw-parser-output table th,
      }
       .mw-content-text table th,
     
       .mw-parser-output table td,
      /* Caption debe aparecer primero */
       .mw-content-text table td {
       .mw-parser-output table.wikitable caption,
           white-space: normal !important;
       .mw-content-text table.wikitable caption,
           word-wrap: break-word !important;
       .mw-parser-output table caption,
           overflow-wrap: break-word !important;
       .mw-content-text table caption {
           width: revert-layer !important;
           display: block !important;
           max-width: 100% !important;
           caption-side: top !important;
           text-align: left !important;
           width: 100% !important;
           margin-bottom: 0.5em !important;
       }
       }
  table.wikitable > caption {
    display: block !important;
    caption-side: top !important;
    font-weight: bold;
    width: 100% !important;
    text-align: left;
    margin-bottom: 0.5em !important;
  }
        
        
      table.wikitable > caption {
        display: block !important;
        caption-side: top !important;
        font-weight: bold;
        width: 100% !important;
        text-align: left;
        margin-bottom: 0.5em !important;
    }
   }
   }

Revision as of 14:57, 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 {
          width: 100% !important;
          max-width: 100% !important;
          overflow-x: visible !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 {
          display: block !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;
      }
      
      /* 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"] {
          display: block !important;
          overflow-x: auto !important;
          overflow-y: hidden !important;
          -webkit-overflow-scrolling: touch !important;
          width: 100% !important;
          max-width: 100% !important;
      }
      
      * El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */
      .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;
      }
      
      /* 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;
      }
      
      /* Caption debe aparecer primero */
      .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;
          caption-side: top !important;
          text-align: left !important;
          width: 100% !important;
          margin-bottom: 0.5em !important;
      }
      
      table.wikitable > caption {
        display: block !important;
        caption-side: top !important;
        font-weight: bold;
        width: 100% !important;
        text-align: left;
        margin-bottom: 0.5em !important;
    }
  }