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: | ||
/* --- | /* --- SOLUCIÓN FINAL: ESCRITORIO PROFESIONAL vs CELULAR LIMPIO --- */ | ||
/* ================================================================== | /* ================================================================== | ||
1. REGLAS | 1. REGLAS GLOBALES (Se aplican siempre para ocultar errores) | ||
================================================================== */ | ================================================================== */ | ||
/* | /* Oculta los títulos técnicos que aparecían en tu captura (Page Actions, Vistas, etc) */ | ||
#p-cactions h5, | #p-cactions h5, | ||
#p-personal h5, | #p-personal h5, | ||
#p-logo h5, | #p-logo h5, | ||
. | .portlet h5, | ||
#p-search h5 { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* ================================================================== | /* ================================================================== | ||
2. | 2. VERSIÓN ESCRITORIO (Solo PC > 850px) | ||
Aquí mantenemos el diseño de "Botones Azules" que te gustó. | |||
================================================================== */ | ================================================================== */ | ||
@media only screen and (min-width: | @media only screen and (min-width: 851px) { | ||
/* | /* Limpieza de fondo */ | ||
.portlet:not(#p-cactions):not(#p-personal) .pBody { | .portlet:not(#p-cactions):not(#p-personal) .pBody { | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
} | } | ||
/* | /* Títulos Azules Corporativos */ | ||
.portlet:not(#p-cactions):not(#p-personal) h3 { | .portlet:not(#p-cactions):not(#p-personal) h3 { | ||
font-family: 'Segoe UI', Roboto, sans-serif !important; | font-family: 'Segoe UI', Roboto, sans-serif !important; | ||
| Línea 44: | Línea 37: | ||
} | } | ||
/* | /* ESTILO BOTÓN (Caja gris con flecha) */ | ||
.portlet:not(#p-cactions):not(#p-personal) li a { | .portlet:not(#p-cactions):not(#p-personal) li a { | ||
display: block !important; | display: block !important; | ||
| Línea 71: | Línea 52: | ||
} | } | ||
/* Flecha decorativa | /* Flecha decorativa */ | ||
.portlet:not(#p-cactions):not(#p-personal) li a::before { | .portlet:not(#p-cactions):not(#p-personal) li a::before { | ||
content: "›" !important; | content: "›" !important; | ||
| Línea 79: | Línea 60: | ||
} | } | ||
/* | /* Hover Azul */ | ||
.portlet:not(#p-cactions):not(#p-personal) li a:hover { | .portlet:not(#p-cactions):not(#p-personal) li a:hover { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Línea 87: | Línea 68: | ||
padding-left: 15px !important; | padding-left: 15px !important; | ||
} | } | ||
.portlet:not(#p-cactions):not(#p-personal) li a:hover::before { | .portlet:not(#p-cactions):not(#p-personal) li a:hover::before { | ||
color: #263355 !important; | color: #263355 !important; | ||
} | } | ||
/* | /* Botón de búsqueda PC */ | ||
input.searchButton, #searchGoButton, #mw-searchButton { | |||
background-color: #263355 !important; | background-color: #263355 !important; | ||
color: white !important; | color: white !important; | ||
| Línea 108: | Línea 81: | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
} | } | ||
} | } | ||
/* ================================================================== | /* ================================================================== | ||
3. | 3. VERSIÓN CELULAR (Pantallas < 850px) | ||
Diseño tipo "App Móvil": Lista limpia, sin cajas pálidas, texto negro. | |||
================================================================== */ | ================================================================== */ | ||
@media only screen and (max-width: | @media only screen and (max-width: 850px) { | ||
/* 1. | /* 1. Arreglar cabecera rota (Imagen 5) */ | ||
# | /* Esto evita que los iconos se monten unos encima de otros */ | ||
#p-cactions { | |||
position: static !important; | |||
width: 100% !important; | width: 100% !important; | ||
padding: 0 !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
white-space: nowrap !important; | |||
overflow-x: auto !important; /* Permite deslizar si hay muchos iconos */ | |||
height: auto !important; | |||
} | } | ||
# | #p-cactions ul { | ||
padding: | margin: 0 !important; | ||
padding: 5px !important; | |||
display: flex !important; /* Alinea iconos horizontalmente */ | |||
} | } | ||
#p-cactions li { | |||
# | float: none !important; | ||
display: inline-block !important; | |||
margin: 0 2px !important; | |||
border: 1px solid #ddd !important; | |||
background | background: #fff !important; | ||
border-radius: 4px !important; | |||
} | } | ||
. | /* 2. Mover menú al final (Clean Footer) */ | ||
width: | #column-content { | ||
margin: 0 | 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; /* Fondo gris claro para diferenciar zona de menú */ | |||
} | } | ||
/* 3. | /* 3. Títulos en Móvil */ | ||
.portlet h3 { | .portlet h3 { | ||
font-family: 'Segoe UI', Roboto, sans-serif !important; | font-family: 'Segoe UI', Roboto, sans-serif !important; | ||
font-size: | font-size: 14px !important; | ||
font-weight: 800 !important; | font-weight: 800 !important; | ||
color: #263355 !important; | color: #263355 !important; /* Azul Marca */ | ||
text-transform: uppercase; | text-transform: uppercase; | ||
border-bottom: 2px solid #ccc !important; | border-bottom: 2px solid #ccc !important; | ||
margin | margin: 15px 0 10px 0 !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* 4. ENLACES | /* 4. ENLACES TIPO LISTA (Soluciona botones pálidos) */ | ||
.portlet li { | .portlet li { | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border: none !important; | border: none !important; | ||
background: transparent !important; | |||
} | } | ||
.portlet li a { | .portlet li a { | ||
display: block !important; | display: block !important; | ||
padding: 12px | padding: 12px 5px !important; /* Espacio cómodo para el dedo */ | ||
background | |||
border-bottom: 1px solid # | /* AQUÍ QUITAMOS EL ESTILO BOTÓN Y USAMOS ESTILO LISTA: */ | ||
color: #333 !important; /* TEXTO NEGRO | background: transparent !important; | ||
font-size: | border: none !important; | ||
border-bottom: 1px solid #e0e0e0 !important; /* Línea separadora fina */ | |||
color: #333 !important; /* TEXTO NEGRO (Alto contraste) */ | |||
font-size: 15px !important; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
/* | /* Flecha al final de la línea estilo iOS/Android */ | ||
.portlet li a::after { | .portlet li a::after { | ||
content: "›" !important; | content: "›" !important; | ||
float: right !important; | float: right !important; | ||
color: # | color: #bbb !important; | ||
font-size: 18px !important; | |||
font-weight: bold !important; | font-weight: bold !important; | ||
} | } | ||
/* 5. | /* 5. Buscador móvil grande */ | ||
#searchInput { | #searchInput { | ||
width: | width: 100% !important; | ||
box-sizing: border-box !important; | |||
padding: 10px !important; | |||
font-size: 16px !important; /* Evita zoom | font-size: 16px !important; /* Evita zoom en iPhone */ | ||
margin-bottom: 10px !important; | |||
} | } | ||
#searchGoButton, #mw-searchButton { | input.searchButton, #searchGoButton, #mw-searchButton { | ||
width: | width: 100% !important; | ||
padding: | padding: 12px !important; | ||
background-color: #263355 !important; | background-color: #263355 !important; | ||
color: white !important; | color: white !important; | ||
font-size: 14px !important; | font-size: 14px !important; | ||
margin-top: 5px !important; | |||
} | } | ||
} | } | ||
Revisión del 14:22 19 dic 2025
/* --- SOLUCIÓN FINAL: ESCRITORIO PROFESIONAL vs CELULAR LIMPIO --- */
/* ==================================================================
1. REGLAS GLOBALES (Se aplican siempre para ocultar errores)
================================================================== */
/* Oculta los títulos técnicos que aparecían en tu captura (Page Actions, Vistas, etc) */
#p-cactions h5,
#p-personal h5,
#p-logo h5,
.portlet h5,
#p-search h5 {
display: none !important;
}
/* ==================================================================
2. VERSIÓN ESCRITORIO (Solo PC > 850px)
Aquí mantenemos el diseño de "Botones Azules" que te gustó.
================================================================== */
@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 Corporativos */
.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;
}
/* ESTILO BOTÓN (Caja gris con flecha) */
.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;
}
/* Flecha decorativa */
.portlet:not(#p-cactions):not(#p-personal) li a::before {
content: "›" !important;
margin-right: 8px !important;
color: #999 !important;
font-weight: bold !important;
}
/* Hover Azul */
.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;
}
/* Botón de búsqueda PC */
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;
}
}
/* ==================================================================
3. VERSIÓN CELULAR (Pantallas < 850px)
Diseño tipo "App Móvil": Lista limpia, sin cajas pálidas, texto negro.
================================================================== */
@media only screen and (max-width: 850px) {
/* 1. Arreglar cabecera rota (Imagen 5) */
/* Esto evita que los iconos se monten unos encima de otros */
#p-cactions {
position: static !important;
width: 100% !important;
padding: 0 !important;
margin: 0 !important;
white-space: nowrap !important;
overflow-x: auto !important; /* Permite deslizar si hay muchos iconos */
height: auto !important;
}
#p-cactions ul {
margin: 0 !important;
padding: 5px !important;
display: flex !important; /* Alinea iconos horizontalmente */
}
#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;
}
/* 2. Mover menú al final (Clean Footer) */
#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; /* Fondo gris claro para diferenciar zona de menú */
}
/* 3. Títulos en Móvil */
.portlet h3 {
font-family: 'Segoe UI', Roboto, sans-serif !important;
font-size: 14px !important;
font-weight: 800 !important;
color: #263355 !important; /* Azul Marca */
text-transform: uppercase;
border-bottom: 2px solid #ccc !important;
margin: 15px 0 10px 0 !important;
display: block !important;
}
/* 4. ENLACES TIPO LISTA (Soluciona botones pálidos) */
.portlet li {
margin: 0 !important;
padding: 0 !important;
border: none !important;
background: transparent !important;
}
.portlet li a {
display: block !important;
padding: 12px 5px !important; /* Espacio cómodo para el dedo */
/* AQUÍ QUITAMOS EL ESTILO BOTÓN Y USAMOS ESTILO LISTA: */
background: transparent !important;
border: none !important;
border-bottom: 1px solid #e0e0e0 !important; /* Línea separadora fina */
color: #333 !important; /* TEXTO NEGRO (Alto contraste) */
font-size: 15px !important;
text-decoration: none !important;
}
/* Flecha al final de la línea estilo iOS/Android */
.portlet li a::after {
content: "›" !important;
float: right !important;
color: #bbb !important;
font-size: 18px !important;
font-weight: bold !important;
}
/* 5. Buscador móvil grande */
#searchInput {
width: 100% !important;
box-sizing: border-box !important;
padding: 10px !important;
font-size: 16px !important; /* Evita zoom en iPhone */
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;
}
}
