|
|
| (17 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| /* Responsive: Related articles - título arriba, contenido abajo */ | | /* Responsive Hn */ |
| @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 */
| | h1 { |
| .mw-parser-output, | | font-size: 5.8rem !important; |
| .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 */ | | h2 { |
| /* Cada tabla es un contenedor con scroll independiente */
| | font-size: 5.2rem !important; |
| .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;
| |
| } | | } |
| | | |
| /* El tbody/thead mantiene la estructura de tabla con ancho fijo para activar scroll */ | | h3 { |
| .mw-parser-output table.wikitable tbody,
| | font-size: 4.8rem !important; |
| .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 */ | | h4 { |
| .mw-parser-output table.wikitable tr,
| | font-size: 3.8rem !important; |
| .mw-content-text table.wikitable tr,
| |
| .mw-parser-output table tr,
| |
| .mw-content-text table tr {
| |
| display: table-row !important; | |
| } | | } |
| | | |
| /* Caption también debe ser block */ | | h5 { |
| .mw-parser-output table.wikitable caption,
| | font-size: 4.0rem !important; |
| .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;
| |
| } | | } |
| | | |
| /* Sobrescribir estilos inline de width en las tablas */ | | h6 { |
| .mw-parser-output table.wikitable[style*="width"],
| | font-size: 3.8rem !important; |
| .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;
| |
| } | | } |
|
| | } |
| /* 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;
| |
| }
| |
| }
| |