Diferencia entre revisiones de «MediaWiki:Common.css»
De DerechoPedia
Ir a la navegaciónIr a la búsqueda
Sin resumen de edición Etiqueta: Revertido |
Sin resumen de edición Etiqueta: Revertido |
||
| Línea 1: | Línea 1: | ||
/* ================================================================== | /* ================================================================== | ||
DISEÑO | DISEÑO PROFESIONAL: MENÚS AZULES + BUSCADOR APP MÓVIL | ||
================================================================== */ | ================================================================== */ | ||
/* | /* 1. LIMPIEZA TÉCNICA */ | ||
#p-cactions h5, #p-personal h5, #p-logo h5, .portlet h5, #p-search h5 { display: none !important; } | |||
#p-cactions h5, #p-personal h5, #p-logo h5, .portlet h5, #p-search h5 { | |||
} | |||
/* ------------------------------------------------------------------ | /* ------------------------------------------------------------------ | ||
2. ESTILOS DE LA | 2. ESTILOS DE LA FICHA (CONTENIDO RESPONSIVO) | ||
------------------------------------------------------------------ */ | ------------------------------------------------------------------ */ | ||
.ficha-contenedor { | .ficha-contenedor { | ||
display: flex; | display: flex; flex-wrap: wrap; background-color: #fff; | ||
border: 1px solid #e1e4e8; border-radius: 8px; padding: 20px; | |||
margin-bottom: 20px; gap: 30px; align-items: flex-start; | |||
border: 1px solid #e1e4e8; | box-shadow: 0 4px 12px rgba(0,0,0,0.05); max-width: 950px; | ||
margin-bottom: 20px; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); | |||
} | } | ||
.ficha-imagen { flex: 0 0 300px; text-align: center; } | |||
.ficha-imagen img { border-radius: 6px; max-width: 100%; height: auto; } | |||
.ficha-datos { flex: 1; min-width: 250px; font-family: sans-serif; } | |||
.ficha-datos h1 { margin-top: 0; border-bottom: 1px solid #eee; color: #263355; } | |||
.dato-linea { padding: 8px 0; border-bottom: 1px solid #f0f0f0; display: flex; } | |||
.dato-label { font-weight: bold; color: #555; width: 130px; } | |||
/* ------------------------------------------------------------------ | /* ------------------------------------------------------------------ | ||
3. | 3. VERSIÓN ESCRITORIO (PC > 850px) | ||
------------------------------------------------------------------ */ | ------------------------------------------------------------------ */ | ||
@media only screen and (min-width: 851px) { | @media only screen and (min-width: 851px) { | ||
/* | /* Menús laterales azules */ | ||
.portlet:not(#p-cactions | .portlet:not(#p-cactions) .pBody { background: transparent !important; border: none !important; } | ||
.portlet h3 { | |||
color: #263355 !important; font-weight: 800 !important; text-transform: uppercase; | |||
display: block !important; margin-bottom: 8px !important; font-family: sans-serif !important; | |||
} | } | ||
.portlet li a { | |||
.portlet: | display: block !important; background: #f8f9fa !important; border: 1px solid #e0e0e0 !important; | ||
padding: 7px 10px !important; margin-bottom: 4px !important; border-radius: 4px !important; | |||
color: #444 !important; text-decoration: none !important; transition: all 0.2s; | |||
color: # | |||
} | } | ||
.portlet li a:hover { background: #fff !important; border-color: #263355 !important; color: #263355 !important; } | |||
/* Buscador PC */ | |||
input.searchButton, #searchGoButton { | |||
background: #263355 !important; color: white !important; padding: 5px 10px !important; font-weight: bold !important; | |||
.portlet | |||
/* Buscador */ | |||
input.searchButton, #searchGoButton | |||
background | |||
} | } | ||
/* Ocultar botón móvil en PC */ | |||
#btn-menu-movil { display: none !important; } | |||
} | } | ||
/* ------------------------------------------------------------------ | /* ------------------------------------------------------------------ | ||
4. VERSIÓN | 4. VERSIÓN MÓVIL (APP MODE) | ||
Buscador pegado arriba + Menú Oculto | |||
------------------------------------------------------------------ */ | ------------------------------------------------------------------ */ | ||
@media only screen and (max-width: 850px) { | @media only screen and (max-width: 850px) { | ||
/* --- A. | /* --- A. ARREGLOS DE CONTENIDO --- */ | ||
.ficha-contenedor { | .ficha-contenedor { flex-direction: column; gap: 15px; } | ||
.ficha-imagen { width: 100%; } | |||
padding: | .dato-linea { flex-direction: column; } | ||
/* --- B. HEADER FIJO (BARRA SUPERIOR) --- */ | |||
/* Creamos espacio arriba para que el contenido no quede tapado por la barra */ | |||
#content { margin-top: 110px !important; padding: 10px !important; } | |||
/* El contenedor del buscador se convierte en la BARRA SUPERIOR */ | |||
#p-search { | |||
position: fixed !important; | |||
top: 0; left: 0; width: 100%; | |||
background-color: #263355; /* Azul Barra */ | |||
z-index: 1000; | |||
padding: 10px; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.3); | |||
height: 60px; /* Altura fija */ | |||
display: flex; align-items: center; justify-content: space-between; | |||
} | } | ||
. | |||
#p-search .pBody { | |||
background: transparent !important; border: none !important; width: 100%; | |||
} | } | ||
/* Estilo del input del buscador */ | |||
#searchInput { | |||
width: 70% !important; border-radius: 20px !important; border: none !important; | |||
padding: 8px 15px !important; margin: 0 !important; | |||
} | } | ||
/* Botones 'Ir' y 'Buscar' ocultos para limpiar, se usa Enter */ | |||
#searchGoButton, #mw-searchButton { display: none !important; } | |||
/* --- | /* --- C. MENÚ LATERAL (OCULTO POR DEFECTO) --- */ | ||
#column-one { | #column-one { | ||
padding-top: 80px !important; /* Espacio para no chocar con la barra */ | |||
display: none; /* OCULTO INICIALMENTE */ | |||
} | } | ||
. | |||
/* CLASE MÁGICA: Cuando JS la active, el menú aparece */ | |||
body.menu-abierto #column-one { | |||
display: block !important; | |||
background: #f4f4f4; | |||
padding-bottom: 50px; | |||
} | } | ||
.portlet | |||
/* Estilo de los enlaces en móvil */ | |||
.portlet h3 { color: #263355; border-bottom: 2px solid #ccc; margin: 15px 10px !important; } | |||
.portlet li a { | .portlet li a { | ||
padding: 12px 10px !important; border-bottom: 1px solid #ddd; | |||
font-size: 16px !important; display: block; | |||
} | } | ||
/* --- D. BOTÓN HAMBURGUESA --- */ | |||
#btn-menu-movil { | |||
display: block; | |||
background: transparent; border: none; | |||
color: white; font-size: 30px; cursor: pointer; | |||
padding: 0 15px; | |||
} | } | ||
} | } | ||
Revisión del 15:58 23 dic 2025
/* ==================================================================
DISEÑO PROFESIONAL: MENÚS AZULES + BUSCADOR APP MÓVIL
================================================================== */
/* 1. LIMPIEZA TÉCNICA */
#p-cactions h5, #p-personal h5, #p-logo h5, .portlet h5, #p-search h5 { display: none !important; }
/* ------------------------------------------------------------------
2. ESTILOS DE LA FICHA (CONTENIDO RESPONSIVO)
------------------------------------------------------------------ */
.ficha-contenedor {
display: flex; flex-wrap: wrap; background-color: #fff;
border: 1px solid #e1e4e8; border-radius: 8px; padding: 20px;
margin-bottom: 20px; gap: 30px; align-items: flex-start;
box-shadow: 0 4px 12px rgba(0,0,0,0.05); max-width: 950px;
}
.ficha-imagen { flex: 0 0 300px; text-align: center; }
.ficha-imagen img { border-radius: 6px; max-width: 100%; height: auto; }
.ficha-datos { flex: 1; min-width: 250px; font-family: sans-serif; }
.ficha-datos h1 { margin-top: 0; border-bottom: 1px solid #eee; color: #263355; }
.dato-linea { padding: 8px 0; border-bottom: 1px solid #f0f0f0; display: flex; }
.dato-label { font-weight: bold; color: #555; width: 130px; }
/* ------------------------------------------------------------------
3. VERSIÓN ESCRITORIO (PC > 850px)
------------------------------------------------------------------ */
@media only screen and (min-width: 851px) {
/* Menús laterales azules */
.portlet:not(#p-cactions) .pBody { background: transparent !important; border: none !important; }
.portlet h3 {
color: #263355 !important; font-weight: 800 !important; text-transform: uppercase;
display: block !important; margin-bottom: 8px !important; font-family: sans-serif !important;
}
.portlet li a {
display: block !important; background: #f8f9fa !important; border: 1px solid #e0e0e0 !important;
padding: 7px 10px !important; margin-bottom: 4px !important; border-radius: 4px !important;
color: #444 !important; text-decoration: none !important; transition: all 0.2s;
}
.portlet li a:hover { background: #fff !important; border-color: #263355 !important; color: #263355 !important; }
/* Buscador PC */
input.searchButton, #searchGoButton {
background: #263355 !important; color: white !important; padding: 5px 10px !important; font-weight: bold !important;
}
/* Ocultar botón móvil en PC */
#btn-menu-movil { display: none !important; }
}
/* ------------------------------------------------------------------
4. VERSIÓN MÓVIL (APP MODE)
Buscador pegado arriba + Menú Oculto
------------------------------------------------------------------ */
@media only screen and (max-width: 850px) {
/* --- A. ARREGLOS DE CONTENIDO --- */
.ficha-contenedor { flex-direction: column; gap: 15px; }
.ficha-imagen { width: 100%; }
.dato-linea { flex-direction: column; }
/* --- B. HEADER FIJO (BARRA SUPERIOR) --- */
/* Creamos espacio arriba para que el contenido no quede tapado por la barra */
#content { margin-top: 110px !important; padding: 10px !important; }
/* El contenedor del buscador se convierte en la BARRA SUPERIOR */
#p-search {
position: fixed !important;
top: 0; left: 0; width: 100%;
background-color: #263355; /* Azul Barra */
z-index: 1000;
padding: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
height: 60px; /* Altura fija */
display: flex; align-items: center; justify-content: space-between;
}
#p-search .pBody {
background: transparent !important; border: none !important; width: 100%;
}
/* Estilo del input del buscador */
#searchInput {
width: 70% !important; border-radius: 20px !important; border: none !important;
padding: 8px 15px !important; margin: 0 !important;
}
/* Botones 'Ir' y 'Buscar' ocultos para limpiar, se usa Enter */
#searchGoButton, #mw-searchButton { display: none !important; }
/* --- C. MENÚ LATERAL (OCULTO POR DEFECTO) --- */
#column-one {
padding-top: 80px !important; /* Espacio para no chocar con la barra */
display: none; /* OCULTO INICIALMENTE */
}
/* CLASE MÁGICA: Cuando JS la active, el menú aparece */
body.menu-abierto #column-one {
display: block !important;
background: #f4f4f4;
padding-bottom: 50px;
}
/* Estilo de los enlaces en móvil */
.portlet h3 { color: #263355; border-bottom: 2px solid #ccc; margin: 15px 10px !important; }
.portlet li a {
padding: 12px 10px !important; border-bottom: 1px solid #ddd;
font-size: 16px !important; display: block;
}
/* --- D. BOTÓN HAMBURGUESA --- */
#btn-menu-movil {
display: block;
background: transparent; border: none;
color: white; font-size: 30px; cursor: pointer;
padding: 0 15px;
}
}
