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 PROFESIONAL | /* --- DISEÑO PROFESIONAL KOPAITIC (MONOBOOK) --- */ | ||
/* Protegido para no romper la vista móvil nativa */ | |||
/* ================================================================== | /* ================================================================== | ||
1. | 1. SEGURIDAD: OCULTAR TÍTULOS TÉCNICOS QUE NO DEBEN VERSE | ||
================================================================== */ | ================================================================== */ | ||
.portlet:not(#p-cactions):not(#p-personal) { | /* Esto corrige el error de que aparezca el texto "PAGE ACTIONS" o "VISTAS" */ | ||
.skin-monobook #p-cactions h5, | |||
.skin-monobook #p-personal h5, | |||
.skin-monobook #p-logo h5 { | |||
display: none !important; | |||
} | |||
/* ================================================================== | |||
2. LIMPIEZA Y ESTRUCTURA (SOLO PARA MONOBOOK) | |||
================================================================== */ | |||
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) { | |||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
| Línea 11: | Línea 22: | ||
} | } | ||
.portlet:not(#p-cactions):not(#p-personal) .pBody { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) .pBody { | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
| Línea 18: | Línea 29: | ||
/* ================================================================== | /* ================================================================== | ||
3. TÍTULOS LATERALES (AZUL MARCA #263355) | |||
================================================================== */ | ================================================================== */ | ||
.portlet:not(#p-cactions):not(#p-personal) h3, | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) h3, | ||
.portlet:not(#p-cactions):not(#p-personal) h5 { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) h5 { | ||
font-family: 'Segoe UI', Roboto, sans-serif !important; | font-family: 'Segoe UI', Roboto, sans-serif !important; | ||
font-size: 13px !important; | font-size: 13px !important; | ||
| Línea 34: | Línea 45: | ||
/* ================================================================== | /* ================================================================== | ||
4. ESTILO DE BOTONES (MENÚ LATERAL) | |||
================================================================== */ | ================================================================== */ | ||
.portlet:not(#p-cactions):not(#p-personal) ul { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) ul { | ||
list-style: none !important; | list-style: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| Línea 42: | Línea 53: | ||
} | } | ||
.portlet:not(#p-cactions):not(#p-personal) li { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) li { | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| Línea 49: | Línea 60: | ||
/* Diseño del Botón */ | /* Diseño del Botón */ | ||
.portlet:not(#p-cactions):not(#p-personal) li a { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) li a { | ||
display: block !important; | display: block !important; | ||
background-color: #f8f9fa !important; | background-color: #f8f9fa !important; | ||
border: 1px solid #e0e0e0 !important; | border: 1px solid #e0e0e0 !important; | ||
color: #444 !important; | color: #444 !important; | ||
padding: | padding: 9px 12px !important; /* Altura cómoda */ | ||
margin-bottom: 4px !important; | margin-bottom: 4px !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
| Línea 64: | Línea 75: | ||
/* Flecha decorativa */ | /* Flecha decorativa */ | ||
.portlet:not(#p-cactions):not(#p-personal) li a::before { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) li a::before { | ||
content: "›" !important; | content: "›" !important; | ||
margin-right: 8px !important; | margin-right: 8px !important; | ||
| Línea 72: | Línea 83: | ||
/* Efecto Hover */ | /* Efecto Hover */ | ||
.portlet:not(#p-cactions):not(#p-personal) li a:hover { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) li a:hover { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
border-color: #263355 !important; | border-color: #263355 !important; | ||
| Línea 79: | Línea 90: | ||
padding-left: 15px !important; | padding-left: 15px !important; | ||
} | } | ||
.portlet:not(#p-cactions):not(#p-personal) li a:hover::before { | .skin-monobook .portlet:not(#p-cactions):not(#p-personal) li a:hover::before { | ||
color: #263355 !important; | color: #263355 !important; | ||
} | } | ||
/* ================================================================== | /* ================================================================== | ||
5. CAJA DE BÚSQUEDA | |||
================================================================== */ | ================================================================== */ | ||
#p-search .pBody { | .skin-monobook #p-search .pBody { | ||
text-align: center !important; | text-align: center !important; | ||
padding: 10px 0 !important; | padding: 10px 0 !important; | ||
| Línea 92: | Línea 103: | ||
} | } | ||
#searchInput { | .skin-monobook #searchInput { | ||
width: 90% !important; | width: 90% !important; | ||
padding: 8px !important; | padding: 8px !important; | ||
border: 1px solid #ccc !important; | border: 1px solid #ccc !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
| Línea 100: | Línea 111: | ||
} | } | ||
input.searchButton, #searchGoButton, #mw-searchButton { | .skin-monobook input.searchButton, | ||
.skin-monobook #searchGoButton, | |||
.skin-monobook #mw-searchButton { | |||
background-color: #263355 !important; | background-color: #263355 !important; | ||
color: white !important; | color: white !important; | ||
| Línea 114: | Línea 127: | ||
/* ================================================================== | /* ================================================================== | ||
6. RESPONSIVO: ARREGLAR VISUALIZACIÓN EN CELULARES | |||
(Solo afecta si se carga la piel Monobook en móvil) | |||
================================================================== */ | ================================================================== */ | ||
@media only screen and (max-width: | @media only screen and (max-width: 850px) { | ||
/* | /* Hacer que el contenido ocupe todo el ancho */ | ||
#globalWrapper { | .skin-monobook #globalWrapper { | ||
width: 100% !important; | width: 100% !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
.skin-monobook #content { | |||
margin: 0 !important; | |||
padding: 1em !important; | |||
margin | } | ||
.skin-monobook #column-content { | |||
width: 100% !important; | width: 100% !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* | /* MOVER LA BARRA LATERAL AL FINAL (ABAJO) */ | ||
.skin-monobook #column-one { | |||
position: static !important; /* Deja de flotar a la izquierda */ | |||
position: static !important; /* Deja de | |||
width: 100% !important; | width: 100% !important; | ||
padding | padding: 20px 10px !important; | ||
background-color: # | background-color: #f0f0f0 !important; /* Fondo gris para diferenciar el pie */ | ||
clear: both !important; | |||
} | } | ||
/* | /* Centrar los menús en el móvil */ | ||
.portlet { | .skin-monobook .portlet { | ||
width: | width: 100% !important; | ||
margin: 0 auto | margin: 0 auto 15px auto !important; | ||
text-align: left !important; | |||
} | } | ||
/* | /* Arreglar pestañas superiores (mensaje, editar, etc) para que no se amontonen */ | ||
#p- | .skin-monobook #p-cactions { | ||
position: static !important; | position: static !important; | ||
width: 100% !important; | width: 100% !important; | ||
padding: | padding-left: 0 !important; | ||
white-space: nowrap !important; | |||
overflow-x: auto !important; /* Scroll horizontal si no caben */ | |||
} | } | ||
#p- | |||
/* Ocultar el logo en móvil si molesta, o centrarlo */ | |||
.skin-monobook #p-logo { | |||
position: static !important; | |||
text-align: center !important; | text-align: center !important; | ||
margin-bottom: 10px !important; | |||
} | } | ||
#p- | .skin-monobook #p-logo a { | ||
margin: 0 auto !important; | |||
margin: 0 | |||
} | } | ||
} | } | ||
Revisión del 14:11 19 dic 2025
/* --- DISEÑO PROFESIONAL KOPAITIC (MONOBOOK) --- */
/* Protegido para no romper la vista móvil nativa */
/* ==================================================================
1. SEGURIDAD: OCULTAR TÍTULOS TÉCNICOS QUE NO DEBEN VERSE
================================================================== */
/* Esto corrige el error de que aparezca el texto "PAGE ACTIONS" o "VISTAS" */
.skin-monobook #p-cactions h5,
.skin-monobook #p-personal h5,
.skin-monobook #p-logo h5 {
display: none !important;
}
/* ==================================================================
2. LIMPIEZA Y ESTRUCTURA (SOLO PARA MONOBOOK)
================================================================== */
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding-top: 0 !important;
}
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) .pBody {
background: transparent !important;
border: none !important;
padding: 0 !important;
}
/* ==================================================================
3. TÍTULOS LATERALES (AZUL MARCA #263355)
================================================================== */
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) h3,
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) h5 {
font-family: 'Segoe UI', Roboto, sans-serif !important;
font-size: 13px !important;
font-weight: 800 !important;
color: #263355 !important; /* Azul Marca */
text-transform: uppercase;
letter-spacing: 0.5px;
border: none !important;
margin-bottom: 8px !important;
display: block !important;
}
/* ==================================================================
4. ESTILO DE BOTONES (MENÚ LATERAL)
================================================================== */
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) ul {
list-style: none !important;
padding: 0 !important;
margin: 0 !important;
}
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) li {
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
/* Diseño del Botón */
.skin-monobook .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: 9px 12px !important; /* Altura cómoda */
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 */
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) li a::before {
content: "›" !important;
margin-right: 8px !important;
color: #999 !important;
font-weight: bold !important;
}
/* Efecto Hover */
.skin-monobook .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;
}
.skin-monobook .portlet:not(#p-cactions):not(#p-personal) li a:hover::before {
color: #263355 !important;
}
/* ==================================================================
5. CAJA DE BÚSQUEDA
================================================================== */
.skin-monobook #p-search .pBody {
text-align: center !important;
padding: 10px 0 !important;
background: transparent !important;
}
.skin-monobook #searchInput {
width: 90% !important;
padding: 8px !important;
border: 1px solid #ccc !important;
border-radius: 4px !important;
margin-bottom: 5px !important;
}
.skin-monobook input.searchButton,
.skin-monobook #searchGoButton,
.skin-monobook #mw-searchButton {
background-color: #263355 !important;
color: white !important;
border: none !important;
padding: 8px 15px !important;
border-radius: 4px !important;
font-weight: bold !important;
text-transform: uppercase !important;
font-size: 11px !important;
width: 95% !important;
cursor: pointer !important;
}
/* ==================================================================
6. RESPONSIVO: ARREGLAR VISUALIZACIÓN EN CELULARES
(Solo afecta si se carga la piel Monobook en móvil)
================================================================== */
@media only screen and (max-width: 850px) {
/* Hacer que el contenido ocupe todo el ancho */
.skin-monobook #globalWrapper {
width: 100% !important;
padding: 0 !important;
}
.skin-monobook #content {
margin: 0 !important;
padding: 1em !important;
}
.skin-monobook #column-content {
width: 100% !important;
margin: 0 !important;
}
/* MOVER LA BARRA LATERAL AL FINAL (ABAJO) */
.skin-monobook #column-one {
position: static !important; /* Deja de flotar a la izquierda */
width: 100% !important;
padding: 20px 10px !important;
background-color: #f0f0f0 !important; /* Fondo gris para diferenciar el pie */
clear: both !important;
}
/* Centrar los menús en el móvil */
.skin-monobook .portlet {
width: 100% !important;
margin: 0 auto 15px auto !important;
text-align: left !important;
}
/* Arreglar pestañas superiores (mensaje, editar, etc) para que no se amontonen */
.skin-monobook #p-cactions {
position: static !important;
width: 100% !important;
padding-left: 0 !important;
white-space: nowrap !important;
overflow-x: auto !important; /* Scroll horizontal si no caben */
}
/* Ocultar el logo en móvil si molesta, o centrarlo */
.skin-monobook #p-logo {
position: static !important;
text-align: center !important;
margin-bottom: 10px !important;
}
.skin-monobook #p-logo a {
margin: 0 auto !important;
}
}
