MediaWiki:Common.css
De DerechoPedia
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
/* ==================================================================
DISEÑO INTEGRAL: MENÚS AZULES + CONTENIDO RESPONSIVO LIMPIO
================================================================== */
/* ------------------------------------------------------------------
1. LIMPIEZA GLOBAL (Ocultar elementos técnicos feos)
------------------------------------------------------------------ */
#p-cactions h5, #p-personal h5, #p-logo h5, .portlet h5, #p-search h5 {
display: none !important;
}
/* ------------------------------------------------------------------
2. ESTILOS DE LA "FICHA" (IMAGEN + TEXTO TIPO WIKIPEDIA)
Estos estilos hacen que tu contenido se vea limpio y moderno.
------------------------------------------------------------------ */
/* El contenedor principal (La caja blanca) */
.ficha-contenedor {
display: flex;
flex-wrap: wrap; /* Permite caer en móviles */
background-color: #ffffff;
border: 1px solid #e1e4e8; /* Borde gris muy suave */
border-radius: 8px; /* Bordes redondeados modernos */
padding: 25px; /* Espacio interno amplio */
margin-bottom: 20px;
gap: 30px; /* Separación entre foto y texto */
align-items: flex-start;
/* Sombra suave para efecto "flotante" y limpio */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
max-width: 950px; /* Ancho máximo de lectura */
}
/* Columna de la IMAGEN */
.ficha-imagen {
flex: 0 0 300px; /* Ancho fijo en PC */
text-align: center;
}
/* Estilo extra para que la imagen se vea bonita */
.ficha-imagen img {
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
max-width: 100%;
height: auto;
}
/* Columna de los DATOS/TEXTO */
.ficha-datos {
flex: 1; /* Ocupa el resto del espacio */
min-width: 280px;
font-family: 'Segoe UI', Roboto, sans-serif;
color: #202122;
}
/* Títulos dentro de la ficha */
.ficha-datos h1, .ficha-datos h2 {
margin-top: 0;
border-bottom: 1px solid #eaecf0;
padding-bottom: 10px;
color: #263355; /* Mismo azul que tus menús */
font-size: 1.8em;
}
/* Filas de datos (Nombre: Valor) */
.dato-linea {
padding: 8px 0;
border-bottom: 1px solid #f0f0f0;
display: flex;
}
.dato-label {
font-weight: bold;
color: #555;
width: 130px; /* Alineación de etiquetas */
flex-shrink: 0;
}
/* ------------------------------------------------------------------
3. MENÚS DE ESCRITORIO (PC > 850px)
Manteniendo tu diseño de "Botones Azules"
------------------------------------------------------------------ */
@media only screen and (min-width: 851px) {
/* Limpieza de fondo */
.portlet:not(#p-cactions):not(#p-personal) .pBody {
background: transparent !important; border: none !important;
}
/* Títulos Azules */
.portlet:not(#p-cactions):not(#p-personal) h3 {
font-family: 'Segoe UI', Roboto, sans-serif !important;
font-size: 13px !important; font-weight: 800 !important;
color: #263355 !important; text-transform: uppercase;
border: none !important; margin-bottom: 8px !important; display: block !important;
}
/* Botones */
.portlet:not(#p-cactions):not(#p-personal) li a {
display: block !important; background-color: #f8f9fa !important;
border: 1px solid #e0e0e0 !important; color: #444 !important;
padding: 7px 10px !important; margin-bottom: 4px !important;
border-radius: 4px !important; text-decoration: none !important;
font-family: 'Segoe UI', sans-serif !important; font-size: 13px !important;
transition: all 0.2s ease-in-out;
}
.portlet:not(#p-cactions):not(#p-personal) li a::before {
content: "›" !important; margin-right: 8px !important; color: #999 !important; font-weight: bold !important;
}
/* Hover */
.portlet:not(#p-cactions):not(#p-personal) li a:hover {
background-color: #fff !important; border-color: #263355 !important;
color: #263355 !important; box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important; padding-left: 15px !important;
}
.portlet:not(#p-cactions):not(#p-personal) li a:hover::before { color: #263355 !important; }
/* Buscador */
input.searchButton, #searchGoButton, #mw-searchButton {
background-color: #263355 !important; color: white !important;
border: none !important; padding: 6px 15px !important;
font-weight: bold !important; text-transform: uppercase !important; cursor: pointer !important;
}
}
/* ------------------------------------------------------------------
4. VERSIÓN CELULAR / TABLET (< 850px)
Aquí ocurre la magia responsiva para MENÚS y CONTENIDO
------------------------------------------------------------------ */
@media only screen and (max-width: 850px) {
/* --- A. ARREGLO DE LA FICHA (CONTENIDO) --- */
.ficha-contenedor {
flex-direction: column; /* Apilar verticalmente */
padding: 15px; /* Menos relleno en móvil */
gap: 15px;
}
.ficha-imagen {
flex: auto;
width: 100%; /* Imagen ocupa todo el ancho */
margin-bottom: 10px;
}
.dato-linea {
flex-direction: column; /* Etiquetas arriba del valor en móvil */
}
.dato-label {
margin-bottom: 3px;
color: #263355; /* Destacar etiqueta en color azul */
}
/* --- B. ARREGLO DE LOS MENÚS (NAVEGACIÓN) --- */
#p-cactions {
position: static !important; width: 100% !important; padding: 0 !important;
margin: 0 !important; white-space: nowrap !important; overflow-x: auto !important; height: auto !important;
}
#p-cactions ul { margin: 0 !important; padding: 5px !important; display: flex !important; }
#p-cactions li {
float: none !important; display: inline-block !important; margin: 0 2px !important;
border: 1px solid #ddd !important; background: #fff !important; border-radius: 4px !important;
}
#column-content { width: 100% !important; margin: 0 !important; float: none !important; }
#content { margin: 0 !important; padding: 10px !important; }
#column-one {
width: 100% !important; float: none !important; padding: 20px 10px !important; background-color: #f4f4f4 !important;
}
.portlet h3 {
font-family: 'Segoe UI', Roboto, sans-serif !important; font-size: 14px !important;
font-weight: 800 !important; color: #263355 !important; text-transform: uppercase;
border-bottom: 2px solid #ccc !important; margin: 15px 0 10px 0 !important; display: block !important;
}
.portlet li { margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important; }
.portlet li a {
display: block !important; padding: 12px 5px !important; background: transparent !important;
border: none !important; border-bottom: 1px solid #e0e0e0 !important;
color: #333 !important; font-size: 15px !important; text-decoration: none !important;
}
.portlet li a::after {
content: "›" !important; float: right !important; color: #bbb !important; font-size: 18px !important; font-weight: bold !important;
}
#searchInput {
width: 100% !important; box-sizing: border-box !important; padding: 10px !important; font-size: 16px !important; margin-bottom: 10px !important;
}
input.searchButton, #searchGoButton, #mw-searchButton {
width: 100% !important; padding: 12px !important; background-color: #263355 !important; color: white !important; font-size: 14px !important; margin-top: 5px !important;
}
}
