Diferencia entre revisiones de «MediaWiki:Common.css»
Página de la interfaz de MediaWiki
Más acciones
Sin resumen de edición Etiqueta: Revertido |
Sin resumen de edición Etiqueta: Revertido |
||
| Línea 196: | Línea 196: | ||
} | } | ||
/* | /* FORZAR posicionamiento del contenedor */ | ||
.mw-highlight | .mw-highlight { | ||
position: relative !important; | |||
} | } | ||
/* Icono SVG de GitHub | /* Botón con especificidad máxima */ | ||
.mw-highlight .mw-code-copy, | |||
div.mw-highlight > .mw-code-copy { | |||
font-size: 0 !important; | |||
text-indent: -9999px !important; | |||
width: 24px !important; | |||
height: 20px !important; | |||
padding: 3px 8px !important; | |||
border: 1px solid #d0d7de !important; | |||
border-radius: 6px !important; | |||
background: #f6f8fa !important; | |||
position: absolute !important; | |||
top: 8px !important; | |||
right: 12px !important; | |||
z-index: 10 !important; | |||
line-height: 1 !important; | |||
} | |||
/* Icono SVG de GitHub EXACTO */ | |||
.mw-highlight .mw-code-copy::before { | .mw-highlight .mw-code-copy::before { | ||
content: ''; | content: '' !important; | ||
position: absolute !important; | |||
width: | top: 50% !important; | ||
height: 16px; | left: 50% !important; | ||
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' | transform: translate(-50%, -50%) !important; | ||
background-size: contain; | width: 14px !important; | ||
background-repeat: no-repeat; | height: 16px !important; | ||
background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-clippy' fill='%2356565c'%3e%3cpath d='M5.75 1a.75.75 0 00-.8.7L5 3h-.832l-.01-.015c-.14-.21-.4-.345-.75-.345-.72 0-1.3.58-1.3 1.3v7.5A1.3 1.3 0 003.2 13h7.6a1.3 1.3 0 001.3-1.3V4a1.3 1.3 0 00-1.3-1.3h-3a.75.75 0 01-.75-.75V1a.75.75 0 00-.75-.75h-1zM3.2 4a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.6a.25.25 0 00.25-.25V4a.25.25 0 00-.25-.25H3.2zM5 2.875v.5h4.5v-.5A.75.75 0 008.5 2h-3a.75.75 0 01-.5.875z'/%3e%3c/svg%3e") !important; | |||
background-size: contain !important; | |||
background-repeat: no-repeat !important; | |||
background-position: center !important; | |||
} | } | ||
/* Estado copiado | /* Estado copiado - icono check */ | ||
.mw-highlight .mw-code-copy.copied::before { | .mw-highlight .mw-code-copy.copied::before { | ||
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' | background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check' fill='%2326a641'%3e%3cpath d='M13.78 4.22a.75.75 0 010 1.06l-5.25 5.25a.75.75 0 01-1.06 0L4.22 9.28a.75.75 0 011.06-1.06L8 9.94l4.72-4.72a.75.75 0 011.06 0z'/%3e%3c/svg%3e") !important; | ||
} | |||
.mw-highlight .mw-code-copy.copied { | |||
background-color: #dafbe1 !important; | |||
border-color: #96d6a3 !important; | |||
} | } | ||
Revisión del 13:27 26 ene 2026
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
/* TOC escondida en todas las vistas */
.toc, #toc { display: none; }
/* Estilos generales */
.prettytable {
width: auto;
border-collapse: collapse;
font-family: Arial, sans-serif;
font-size: 14px;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-left: 0;
}
.prettytable th {
background: linear-gradient(135deg, #0073e6, #005bb5);
color: #fff;
padding: 6px;
text-align: center;
font-weight: bold;
border-bottom: 2px solid #004a99;
width: 150px; /* Ancho fijo de cada celda */
}
.prettytable td {
padding: 10px;
border-bottom: 1px solid #ddd;
width: 120px;
height: 120px;
text-align: center;
vertical-align: middle;
overflow: hidden;
}
.prettytable tr:nth-child(even) {
background: #f8f9fa;
}
.prettytable td:hover {
background: #add8e6;
transition: background 0.3s ease-in-out;
}
.prettytable img {
max-width: 100px;
max-height: 100px;
width: auto;
height: auto;
display: inline-block;
}
/* --- RESPONSIVE --- */
@media screen and (max-width: 767px) {
.prettytable {
width: 100%;
table-layout: fixed; /* Obligamos distribución uniforme */
}
.prettytable th {
width: auto;
font-size: 14px; /* Mantiene tamaño */
}
.prettytable td {
width: auto; /* Dejamos que table-layout controle el ancho */
height: 90px;
padding: 5px;
}
.prettytable img {
max-width: 70px; /* Imágenes más pequeñas aún */
max-height: 70px;
}
}
/* Contenedor general para el video */
.video-container {
position: relative;
padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
height: 0;
overflow: hidden;
background: #000;
max-width: 100%; /* El video ocupará el 100% del contenedor padre */
}
/* iFrame del video */
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
/* Limita el tamaño máximo en escritorio */
@media (min-width: 768px) {
.video-container {
max-width: 560px; /* Limita el ancho del video en desktop */
padding-bottom: 315px; /* Mantén la relación 16:9 */
}
}
.infobox-remake-wrapper {
float: right !important;
clear: right !important;
width: 25em;
margin: 0 0 1em 1em; /* margen: abajo y a la izquierda para separación */
display: block;
}
.wikitablelogo {
border-collapse: collapse;
width: auto; /* Ajusta el ancho según el contenido */
background-color: #F8F9FA; /* Fondo de la tabla */
margin-left: 0; /* Alinea la tabla a la izquierda */
}
.wikitablelogo-wrapper {
overflow-x: auto;
width: 100%;
}
.wikitablelogo th {
background-color: #EAECF0; /* Fondo de los encabezados */
color: #000; /* Texto negro para contraste */
text-align: center;
}
.wikitablelogo td {
background-color: #F8F9FA; /* Fondo de las celdas */
}
.wikitablelogo td:nth-child(1),
.wikitablelogo th:nth-child(1) { width: 125px; }
.wikitablelogo td:nth-child(2),
.wikitablelogo th:nth-child(2) { width: 150px; }
.wikitablelogo td:nth-child(3),
.wikitablelogo th:nth-child(3) { width: 500px; }
.wikitablelogo td:nth-child(4),
.wikitablelogo th:nth-child(4) { width: 200px; }
.wikitablelogo td:nth-child(5),
.wikitablelogo th:nth-child(5) { width: 125px; }
.wikitablelogo tr:not(:first-child) { height: 5em; }
.wikitablelogo th, .wikitablelogo td {
border: 1px solid #A2A9B1; /* Bordes en gris oscuro */
padding: 5px;
}
.wikitablelogo img {
max-width: 100px;
height: auto;
display: block;
margin: 0 auto;
}
.prettytable img {
max-width: 100px; /* Ajusta aquí si quieres más pequeño */
max-height: 100px;
width: auto;
height: auto;
display: inline-block;
}
/* Estilo mejorado para tablas */
.prettytablemain td {
padding: 10px;
border-bottom: 1px solid #ddd;
width: 150px;
text-align: left;
transition: background-color 0.3s ease;
}
/* Imágenes dentro de las celdas */
.prettytablemain td img {
max-width: 100%;
transition: transform 0.3s ease;
}
/* Efecto al pasar el cursor */
.prettytablemain td:hover {
background-color: #e0b3ff; /* Morado claro */
}
.prettytablemain td:hover img {
transform: scale(1.2); /* Aumenta el tamaño al 120% */
}
/* FORZAR posicionamiento del contenedor */
.mw-highlight {
position: relative !important;
}
/* Botón con especificidad máxima */
.mw-highlight .mw-code-copy,
div.mw-highlight > .mw-code-copy {
font-size: 0 !important;
text-indent: -9999px !important;
width: 24px !important;
height: 20px !important;
padding: 3px 8px !important;
border: 1px solid #d0d7de !important;
border-radius: 6px !important;
background: #f6f8fa !important;
position: absolute !important;
top: 8px !important;
right: 12px !important;
z-index: 10 !important;
line-height: 1 !important;
}
/* Icono SVG de GitHub EXACTO */
.mw-highlight .mw-code-copy::before {
content: '' !important;
position: absolute !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
width: 14px !important;
height: 16px !important;
background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-clippy' fill='%2356565c'%3e%3cpath d='M5.75 1a.75.75 0 00-.8.7L5 3h-.832l-.01-.015c-.14-.21-.4-.345-.75-.345-.72 0-1.3.58-1.3 1.3v7.5A1.3 1.3 0 003.2 13h7.6a1.3 1.3 0 001.3-1.3V4a1.3 1.3 0 00-1.3-1.3h-3a.75.75 0 01-.75-.75V1a.75.75 0 00-.75-.75h-1zM3.2 4a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.6a.25.25 0 00.25-.25V4a.25.25 0 00-.25-.25H3.2zM5 2.875v.5h4.5v-.5A.75.75 0 008.5 2h-3a.75.75 0 01-.5.875z'/%3e%3c/svg%3e") !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
/* Estado copiado - icono check */
.mw-highlight .mw-code-copy.copied::before {
background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check' fill='%2326a641'%3e%3cpath d='M13.78 4.22a.75.75 0 010 1.06l-5.25 5.25a.75.75 0 01-1.06 0L4.22 9.28a.75.75 0 011.06-1.06L8 9.94l4.72-4.72a.75.75 0 011.06 0z'/%3e%3c/svg%3e") !important;
}
.mw-highlight .mw-code-copy.copied {
background-color: #dafbe1 !important;
border-color: #96d6a3 !important;
}