Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 5: Line 5:
   }
   }


/* Tables - Horizontal Scroll on Mobile */
.entry-content,
.entry-content,
.content {
.content {
overflow-x: auto;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
position: relative;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
}


/* Forzar scroll horizontal en tablas */
table {
table {
width: auto !important;
width: auto !important;
min-width: 100% !important;
min-width: 800px !important;
table-layout: auto !important;
table-layout: auto !important;
display: table !important;
}
}


table.wikitable {
table.wikitable {
width: auto !important;
width: auto !important;
min-width: 100% !important;
min-width: 800px !important;
table-layout: auto !important;
table-layout: auto !important;
display: table !important;
}
/* Asegurar que las celdas mantengan un ancho mínimo razonable */
table td,
table th {
min-width: 100px;
white-space: normal;
word-break: break-word;
}
table.wikitable td,
table.wikitable th {
min-width: 100px;
white-space: normal;
word-break: break-word;
}
}
}
}

Revision as of 13:41, 28 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;
  }

	.entry-content,
	.content {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		-ms-overflow-style: -ms-autohiding-scrollbar;
	}

	/* Forzar scroll horizontal en tablas */
	table {
		width: auto !important;
		min-width: 800px !important;
		table-layout: auto !important;
		display: table !important;
	}

	table.wikitable {
		width: auto !important;
		min-width: 800px !important;
		table-layout: auto !important;
		display: table !important;
	}

	/* Asegurar que las celdas mantengan un ancho mínimo razonable */
	table td,
	table th {
		min-width: 100px;
		white-space: normal;
		word-break: break-word;
	}

	table.wikitable td,
	table.wikitable th {
		min-width: 100px;
		white-space: normal;
		word-break: break-word;
	}
}