Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
    figure > a > img {
/* Responsive: Related articles - título arriba, contenido abajo */
        width: 100% !important
    }
 
@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) {
     .site-header {
 
        padding-bottom: 24px;
     .related-articles-box{
        padding: 36px 0;
word-break: keep-all;
    }
}
    .site-header .header-widget-area {
 
        display: none;  
  /* 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 */
    .site-header .site-title a {
  .mw-parser-output,
        display: inline-block;
  .mw-content-text {
        width: 100%;
  overflow-x: visible !important;
        min-height: 100px;
  }
        background-size: contain !important;
 
        background-position: center !important;
  /* Aplicar scroll horizontal a contenedores específicos que comúnmente tienen tablas */
        height: 109px;
  /* Para elementos colapsables que contienen tablas */
        margin-top: 42px;
  .mw-parser-output .mw-collapsible-content,
    }
  .mw-content-text .mw-collapsible-content,
    .site-header .title-area {
  .mw-parser-output .collapsible-content,
        width: 100%;
  .mw-content-text .collapsible-content {
        max-width: 100%;
  overflow-x: auto !important;
        text-align: center;
  -webkit-overflow-scrolling: touch !important;
        margin-bottom: 20px;
  width: 100% !important;
    }
  max-width: 100% !important;
    .site-header .title-area img {
  }
        width: auto;
 
        max-width: 250px;
  /* Las tablas mantienen su ancho fijo de 2000px */
        height: auto;
  .mw-parser-output table.wikitable,
    }
  .mw-content-text table.wikitable,
    .menu-toggle {
  .mw-parser-output table:not([class]),
        width: 100%;
  .mw-content-text table:not([class]) {
        border: none;
  width: 2000px !important;
        border-top: 5px solid #eeeeee;
  min-width: 2000px !important;
        color: #444;
  max-width: 2000px !important;
        font-weight: bold;
  table-layout: auto !important;
        padding: 15px 0;
  display: table !important;
        text-transform: none;
  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;
  }
  }

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;
   }
  }