Diferencia entre revisiones de «MediaWiki:Common.css»
De DerechoPedia
Ir a la navegaciónIr a la búsqueda
(Página creada con «→Los estilos CSS colocados aquí se aplicarán a todas las apariencias: →--- INICIO DE DISEÑO MODERNO PARA BARRA LATERAL (MONOBOOK) ---: →1. Limpiar el fondo gris y los bordes antiguos de las cajas: .portlet { background: transparent; border: none; margin-bottom: 15px; box-shadow: none; } .portlet .pBody { background-color: transparent; border: none; padding: 0; } /* 2. Títulos de secciones (Navegación, Herramientas, etc.)…») |
Sin resumen de edición |
||
| Línea 1: | Línea 1: | ||
```css | |||
/* --- | /* --- DISEÑO MODERNO COMPLETO PARA MONOBOOK (CORREGIDO) --- */ | ||
/* 1. | /* ================================================================== | ||
.portlet { | 1. LIMPIEZA GENERAL (QUITAR EL ESTILO ANTIGUO DE CAJAS GRISES) | ||
background: transparent; | ================================================================== */ | ||
border: none; | /* Forza a que todas las cajas sean transparentes y sin bordes */ | ||
.portlet, | |||
.portlet .pBody, | |||
#p-personal, | |||
#p-personal .pBody, | |||
#p-cactions, | |||
#p-cactions .pBody, | |||
#p-logo, | |||
#column-one { | |||
background: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
padding-top: 0 !important; | |||
} | } | ||
.portlet .pBody { | /* Quita el fondo gris general del contenedor principal */ | ||
#globalWrapper { | |||
background-color: #fff !important; | |||
} | |||
/* ================================================================== | |||
2. BARRA LATERAL: TÍTULOS (CORREGIDO) | |||
================================================================== */ | |||
.portlet h3, | |||
.portlet h5 { | |||
font-family: 'Segoe UI', Roboto, sans-serif !important; | |||
font-size: 13px !important; | |||
font-weight: 700 !important; | |||
color: #2c3e50 !important; /* Gris oscuro elegante */ | |||
text-transform: uppercase; | |||
letter-spacing: 0.5px; | |||
/* CORRECCIÓN: Más espacio abajo para que la línea no toque las letras */ | |||
border-bottom: 2px solid #3498db !important; | |||
padding-bottom: 8px !important; | |||
margin-bottom: 10px !important; | |||
line-height: 1.4 !important; | |||
display: inline-block !important; | |||
width: auto !important; | |||
background: none !important; | |||
} | |||
/* Si el título es un enlace, evitar que se subraye o cambie de color */ | |||
.portlet h3 a, | |||
.portlet h5 a { | |||
text-decoration: none !important; | |||
color: inherit !important; | |||
background: none !important; | |||
border: none !important; | |||
} | |||
/* ================================================================== | |||
3. BARRA LATERAL: ENLACES | |||
================================================================== */ | |||
.portlet .pBody ul { | |||
list-style: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
} | |||
.portlet .pBody li { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
border: none !important; | |||
} | |||
/* Estilo de los botones */ | |||
.portlet .pBody li a { | |||
display: block !important; | |||
padding: 6px 10px !important; | |||
margin-bottom: 4px !important; | |||
text-decoration: none !important; | |||
color: #555 !important; | |||
font-family: 'Segoe UI', sans-serif !important; | |||
font-size: 13px !important; | |||
border-radius: 4px !important; | |||
background-color: transparent; | background-color: transparent; | ||
transition: all 0.2s ease; | |||
padding: 0; | } | ||
/* Efecto al pasar el mouse */ | |||
.portlet .pBody li a:hover { | |||
background-color: #f0f6fa !important; /* Fondo azul muy claro */ | |||
color: #3498db !important; /* Texto azul vivo */ | |||
padding-left: 15px !important; /* Pequeño desplazamiento */ | |||
} | |||
/* ================================================================== | |||
4. BARRA SUPERIOR (USUARIO Y PESTAÑAS) | |||
================================================================== */ | |||
/* Alineación a la derecha */ | |||
#p-personal ul { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
text-align: right !important; | |||
} | } | ||
#p-personal li { | |||
background: none !important; | |||
font-family: 'Segoe UI | border: none !important; | ||
font-size: | padding: 0 !important; | ||
font-weight: | margin: 0 0 0 15px !important; | ||
color: # | display: inline-block !important; | ||
} | |||
#p-personal li a { | |||
color: #555 !important; | |||
font-family: 'Segoe UI', sans-serif !important; | |||
font-size: 12px !important; | |||
text-decoration: none !important; | |||
font-weight: 600 !important; | |||
text-transform: lowercase !important; | |||
} | |||
#p-personal li a:hover { | |||
color: #3498db !important; | |||
text-decoration: underline !important; | |||
} | |||
/* Icono usuario */ | |||
li#pt-userpage a { | |||
padding-left: 20px !important; | |||
background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/16px-User_font_awesome.svg.png') no-repeat left center !important; | |||
color: #2c3e50 !important; | |||
font-weight: 700 !important; | |||
} | |||
/* Pestañas (Mensaje, Editar, etc.) */ | |||
#p-cactions { | |||
top: 0 !important; | |||
margin-left: 10px !important; | |||
} | } | ||
#p-cactions ul { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
list-style: none !important; | |||
} | } | ||
#p-cactions li { | |||
border: none !important; | |||
background: none !important; | |||
margin: 0 5px 0 0 !important; | |||
padding: 0 !important; | |||
display: inline-block !important; | |||
} | } | ||
#p-cactions li a { | |||
background-color: transparent !important; | |||
background-color: | color: #555 !important; | ||
color: # | border: 1px solid transparent !important; | ||
border- | border-radius: 4px 4px 0 0 !important; | ||
padding- | padding: 8px 15px !important; | ||
text-decoration: none !important; | |||
text- | font-family: 'Segoe UI', sans-serif !important; | ||
font-size: 13px !important; | |||
font-weight: 600 !important; | |||
text-transform: capitalize !important; | |||
} | } | ||
#p-cactions li.selected a { | |||
#p- | background-color: #fff !important; | ||
color: #2c3e50 !important; | |||
border: 1px solid #dcdcdc !important; | |||
border-bottom: 1px solid #fff !important; | |||
z-index: 10 !important; | |||
} | } | ||
# | #p-cactions li a:hover { | ||
background-color: #f0f6fa !important; | |||
color: #3498db !important; | |||
} | } | ||
# | /* ================================================================== | ||
5. CAJA DE BÚSQUEDA | |||
================================================================== */ | |||
#p-search .pBody { | |||
text-align: center !important; | |||
padding: 15px 0 !important; | |||
} | } | ||
#searchInput { | |||
# | width: 85% !important; | ||
padding: 8px 12px !important; | |||
border: 1px solid #ccc !important; | |||
border: | border-radius: 20px !important; | ||
margin-bottom: 8px !important; | |||
margin- | font-family: 'Segoe UI', sans-serif !important; | ||
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important; | |||
font- | |||
} | } | ||
#searchGoButton | input.searchButton, | ||
background-color: # | #searchGoButton, | ||
#mw-searchButton { | |||
background-color: #3498db !important; | |||
color: white !important; | |||
border: none !important; | |||
padding: 8px 15px !important; | |||
border-radius: 4px !important; | |||
font-weight: bold !important; | |||
font-size: 12px !important; | |||
cursor: pointer !important; | |||
text-transform: uppercase !important; | |||
letter-spacing: 1px !important; | |||
} | } | ||
input.searchButton:hover, | |||
#searchGoButton:hover, | |||
#mw-searchButton:hover { | |||
background-color: #2980b9 !important; | |||
} | |||
/* --- FIN DEL CÓDIGO --- */ | /* --- FIN DEL CÓDIGO --- */ | ||
``` | |||
Revisión del 13:44 19 dic 2025
```css
/* --- DISEÑO MODERNO COMPLETO PARA MONOBOOK (CORREGIDO) --- */
/* ==================================================================
1. LIMPIEZA GENERAL (QUITAR EL ESTILO ANTIGUO DE CAJAS GRISES)
================================================================== */
/* Forza a que todas las cajas sean transparentes y sin bordes */
.portlet,
.portlet .pBody,
#p-personal,
#p-personal .pBody,
#p-cactions,
#p-cactions .pBody,
#p-logo,
#column-one {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding-top: 0 !important;
}
/* Quita el fondo gris general del contenedor principal */
#globalWrapper {
background-color: #fff !important;
}
/* ==================================================================
2. BARRA LATERAL: TÍTULOS (CORREGIDO)
================================================================== */
.portlet h3,
.portlet h5 {
font-family: 'Segoe UI', Roboto, sans-serif !important;
font-size: 13px !important;
font-weight: 700 !important;
color: #2c3e50 !important; /* Gris oscuro elegante */
text-transform: uppercase;
letter-spacing: 0.5px;
/* CORRECCIÓN: Más espacio abajo para que la línea no toque las letras */
border-bottom: 2px solid #3498db !important;
padding-bottom: 8px !important;
margin-bottom: 10px !important;
line-height: 1.4 !important;
display: inline-block !important;
width: auto !important;
background: none !important;
}
/* Si el título es un enlace, evitar que se subraye o cambie de color */
.portlet h3 a,
.portlet h5 a {
text-decoration: none !important;
color: inherit !important;
background: none !important;
border: none !important;
}
/* ==================================================================
3. BARRA LATERAL: ENLACES
================================================================== */
.portlet .pBody ul {
list-style: none !important;
padding: 0 !important;
margin: 0 !important;
}
.portlet .pBody li {
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
/* Estilo de los botones */
.portlet .pBody li a {
display: block !important;
padding: 6px 10px !important;
margin-bottom: 4px !important;
text-decoration: none !important;
color: #555 !important;
font-family: 'Segoe UI', sans-serif !important;
font-size: 13px !important;
border-radius: 4px !important;
background-color: transparent;
transition: all 0.2s ease;
}
/* Efecto al pasar el mouse */
.portlet .pBody li a:hover {
background-color: #f0f6fa !important; /* Fondo azul muy claro */
color: #3498db !important; /* Texto azul vivo */
padding-left: 15px !important; /* Pequeño desplazamiento */
}
/* ==================================================================
4. BARRA SUPERIOR (USUARIO Y PESTAÑAS)
================================================================== */
/* Alineación a la derecha */
#p-personal ul {
padding: 0 !important;
margin: 0 !important;
text-align: right !important;
}
#p-personal li {
background: none !important;
border: none !important;
padding: 0 !important;
margin: 0 0 0 15px !important;
display: inline-block !important;
}
#p-personal li a {
color: #555 !important;
font-family: 'Segoe UI', sans-serif !important;
font-size: 12px !important;
text-decoration: none !important;
font-weight: 600 !important;
text-transform: lowercase !important;
}
#p-personal li a:hover {
color: #3498db !important;
text-decoration: underline !important;
}
/* Icono usuario */
li#pt-userpage a {
padding-left: 20px !important;
background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/16px-User_font_awesome.svg.png') no-repeat left center !important;
color: #2c3e50 !important;
font-weight: 700 !important;
}
/* Pestañas (Mensaje, Editar, etc.) */
#p-cactions {
top: 0 !important;
margin-left: 10px !important;
}
#p-cactions ul {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
#p-cactions li {
border: none !important;
background: none !important;
margin: 0 5px 0 0 !important;
padding: 0 !important;
display: inline-block !important;
}
#p-cactions li a {
background-color: transparent !important;
color: #555 !important;
border: 1px solid transparent !important;
border-radius: 4px 4px 0 0 !important;
padding: 8px 15px !important;
text-decoration: none !important;
font-family: 'Segoe UI', sans-serif !important;
font-size: 13px !important;
font-weight: 600 !important;
text-transform: capitalize !important;
}
#p-cactions li.selected a {
background-color: #fff !important;
color: #2c3e50 !important;
border: 1px solid #dcdcdc !important;
border-bottom: 1px solid #fff !important;
z-index: 10 !important;
}
#p-cactions li a:hover {
background-color: #f0f6fa !important;
color: #3498db !important;
}
/* ==================================================================
5. CAJA DE BÚSQUEDA
================================================================== */
#p-search .pBody {
text-align: center !important;
padding: 15px 0 !important;
}
#searchInput {
width: 85% !important;
padding: 8px 12px !important;
border: 1px solid #ccc !important;
border-radius: 20px !important;
margin-bottom: 8px !important;
font-family: 'Segoe UI', sans-serif !important;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
}
input.searchButton,
#searchGoButton,
#mw-searchButton {
background-color: #3498db !important;
color: white !important;
border: none !important;
padding: 8px 15px !important;
border-radius: 4px !important;
font-weight: bold !important;
font-size: 12px !important;
cursor: pointer !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
}
input.searchButton:hover,
#searchGoButton:hover,
#mw-searchButton:hover {
background-color: #2980b9 !important;
}
/* --- FIN DEL CÓDIGO --- */
```
