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 INTEGRAL: MENÚS AZULES + CONTENIDO RESPONSIVO LIMPIO
   DISEÑO PROFESIONAL: MENÚS AZULES + BUSCADOR APP MÓVIL
   ================================================================== */
   ================================================================== */


/* ------------------------------------------------------------------
/* 1. LIMPIEZA TÉCNICA */
  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; }
  ------------------------------------------------------------------ */
#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)
   2. ESTILOS DE LA FICHA (CONTENIDO RESPONSIVO)
  Estos estilos hacen que tu contenido se vea limpio y moderno.
   ------------------------------------------------------------------ */
   ------------------------------------------------------------------ */
/* El contenedor principal (La caja blanca) */
.ficha-contenedor {
.ficha-contenedor {
     display: flex;
     display: flex; flex-wrap: wrap; background-color: #fff;
    flex-wrap: wrap;             /* Permite caer en móviles */
     border: 1px solid #e1e4e8; border-radius: 8px; padding: 20px;
    background-color: #ffffff;
     margin-bottom: 20px; gap: 30px; align-items: flex-start;
     border: 1px solid #e1e4e8;   /* Borde gris muy suave */
     box-shadow: 0 4px 12px rgba(0,0,0,0.05); max-width: 950px;
    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;
}
}
 
.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. MENÚS DE ESCRITORIO (PC > 850px)
   3. VERSIÓN ESCRITORIO (PC > 850px)
  Manteniendo tu diseño de "Botones Azules"
   ------------------------------------------------------------------ */
   ------------------------------------------------------------------ */
@media only screen and (min-width: 851px) {
@media only screen and (min-width: 851px) {
     /* Limpieza de fondo */
     /* Menús laterales azules */
     .portlet:not(#p-cactions):not(#p-personal) .pBody {
     .portlet:not(#p-cactions) .pBody { background: transparent !important; border: none !important; }
        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;
     }
     }
    /* Títulos Azules */
     .portlet li a {
     .portlet:not(#p-cactions):not(#p-personal) h3 {
        display: block !important; background: #f8f9fa !important; border: 1px solid #e0e0e0 !important;
         font-family: 'Segoe UI', Roboto, sans-serif !important;
         padding: 7px 10px !important; margin-bottom: 4px !important; border-radius: 4px !important;
        font-size: 13px !important; font-weight: 800 !important;
         color: #444 !important; text-decoration: none !important; transition: all 0.2s;
         color: #263355 !important; text-transform: uppercase;
        border: none !important; margin-bottom: 8px !important; display: block !important;
     }
     }
    /* Botones */
     .portlet li a:hover { background: #fff !important; border-color: #263355 !important; color: #263355 !important; }
    .portlet:not(#p-cactions):not(#p-personal) li a {
      
        display: block !important; background-color: #f8f9fa !important;
     /* Buscador PC */
        border: 1px solid #e0e0e0 !important; color: #444 !important;
     input.searchButton, #searchGoButton {
        padding: 7px 10px !important; margin-bottom: 4px !important;
         background: #263355 !important; color: white !important; padding: 5px 10px !important; font-weight: bold !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;
     }
     }
    /* Ocultar botón móvil en PC */
    #btn-menu-movil { display: none !important; }
}
}


/* ------------------------------------------------------------------
/* ------------------------------------------------------------------
   4. VERSIÓN CELULAR / TABLET (< 850px)
   4. VERSIÓN MÓVIL (APP MODE)
   Aquí ocurre la magia responsiva para MENÚS y CONTENIDO
   Buscador pegado arriba + Menú Oculto
   ------------------------------------------------------------------ */
   ------------------------------------------------------------------ */
@media only screen and (max-width: 850px) {
@media only screen and (max-width: 850px) {


     /* --- A. ARREGLO DE LA FICHA (CONTENIDO) --- */
     /* --- A. ARREGLOS DE CONTENIDO --- */
     .ficha-contenedor {
     .ficha-contenedor { flex-direction: column; gap: 15px; }
        flex-direction: column; /* Apilar verticalmente */
    .ficha-imagen { width: 100%; }
         padding: 15px;           /* Menos relleno en móvil */
    .dato-linea { flex-direction: column; }
         gap: 15px;
 
    /* --- 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;
     }
     }
     .ficha-imagen {
 
         flex: auto;
     #p-search .pBody {
        width: 100%;            /* Imagen ocupa todo el ancho */
         background: transparent !important; border: none !important; width: 100%;
        margin-bottom: 10px;
     }
     }
     .dato-linea {
      
        flex-direction: column;  /* Etiquetas arriba del valor en móvil */
    /* Estilo del input del buscador */
     }
     #searchInput {
    .dato-label {
         width: 70% !important; border-radius: 20px !important; border: none !important;
         margin-bottom: 3px;
         padding: 8px 15px !important; margin: 0 !important;
         color: #263355;         /* Destacar etiqueta en color azul */
     }
     }
   
    /* Botones 'Ir' y 'Buscar' ocultos para limpiar, se usa Enter */
    #searchGoButton, #mw-searchButton { display: none !important; }


     /* --- B. ARREGLO DE LOS MENÚS (NAVEGACIÓN) --- */
     /* --- C. MENÚ LATERAL (OCULTO POR DEFECTO) --- */
    #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 {
     #column-one {
         width: 100% !important; float: none !important; padding: 20px 10px !important; background-color: #f4f4f4 !important;
         padding-top: 80px !important; /* Espacio para no chocar con la barra */
        display: none; /* OCULTO INICIALMENTE */
     }
     }
     .portlet h3 {
 
         font-family: 'Segoe UI', Roboto, sans-serif !important; font-size: 14px !important;
    /* CLASE MÁGICA: Cuando JS la active, el menú aparece */
         font-weight: 800 !important; color: #263355 !important; text-transform: uppercase;
     body.menu-abierto #column-one {
         border-bottom: 2px solid #ccc !important; margin: 15px 0 10px 0 !important; display: block !important;
         display: block !important;
         background: #f4f4f4;
         padding-bottom: 50px;
     }
     }
     .portlet li { margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important; }
 
    /* 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 {
         display: block !important; padding: 12px 5px !important; background: transparent !important;
         padding: 12px 10px !important; border-bottom: 1px solid #ddd;
        border: none !important; border-bottom: 1px solid #e0e0e0 !important;
         font-size: 16px !important; display: block;
         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;
     /* --- D. BOTÓN HAMBURGUESA --- */
    }
     #btn-menu-movil {
    #searchInput {
         display: block;
        width: 100% !important; box-sizing: border-box !important; padding: 10px !important; font-size: 16px !important; margin-bottom: 10px !important;
        background: transparent; border: none;
    }
        color: white; font-size: 30px; cursor: pointer;
     input.searchButton, #searchGoButton, #mw-searchButton {
        padding: 0 15px;
         width: 100% !important; padding: 12px !important; background-color: #263355 !important; color: white !important; font-size: 14px !important; margin-top: 5px !important;
     }
     }
}
}

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