MediaWiki:Common.css
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
/* =========================================
VARIABLES GLOBALES (Identidad Oroza)
========================================= */
:root {
--bg-body: #f4f6f9;
--bg-content: #ffffff;
--text-main: #334155;
--text-muted: #64748b;
--primary: #2b4a6d;
--primary-dark: #1e324f;
--accent: #ffb400;
--accent-light: #fff8e6;
--accent-hover: #e6a200;
--link: #1e70bf;
--link-hover: #155594;
--border-color: #e2e8f0;
/* Estados */
--info-bg: #eff6ff;
--info-border: #3b82f6;
--warning-bg: var(--accent-light);
--warning-border: var(--accent);
--success-bg: #f0fdf4;
--success-border: #22c55e;
/* Bordes y Sombras */
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 20px;
--shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
--shadow-md: 0 6px 12px rgba(0,0,0,0.06);
--shadow-float: 0 10px 25px rgba(43, 74, 109, 0.1);
font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}
/* === Tipografía y fondo general === */
body {
background-color: var(--bg-body);
font-family: var(--font-family);
color: var(--text-main);
line-height: 1.6;
}
/* === Contenido principal === */
#content {
background-color: var(--bg-content);
padding: 30px;
margin: 20px auto;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-float);
max-width: 1200px;
}
/* === Título de página === */
.firstHeading {
font-size: 2.5rem;
font-weight: bold;
color: var(--primary);
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.firstHeading::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 4px;
background-color: var(--accent);
border-radius: 4px;
}
/* === Tabla de contenido === */
#toc {
background-color: #fafafa;
border: 1px solid var(--border-color);
padding: 20px;
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}
/* === Enlaces === */
a {
color: var(--link);
text-decoration: none;
transition: color 0.2s ease;
}
a:hover {
color: var(--accent);
text-decoration: underline;
}
.mw-body a {
color: var(--link);
font-weight: 500;
}
/* === Encabezados jerárquicos mejorados === */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family);
font-weight: 700;
text-align: center;
color: var(--primary);
margin-top: 40px;
margin-bottom: 30px;
line-height: 1.3;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.04);
border-bottom: none;
background: none !important;
}
h1 { font-size: 2.8rem; }
h2 {
font-size: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
h2::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
background-color: var(--accent);
border-radius: 50%;
}
h3 { font-size: 2.3rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; color: var(--text-muted); }
/* === Botones con íconos === */
.button-icon {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--primary);
color: white !important;
padding: 10px 18px;
border-radius: var(--radius-md);
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: var(--shadow-sm);
border: 2px solid transparent;
}
.button-icon:hover {
background: var(--primary-dark);
border-color: var(--accent);
transform: translateY(-2px);
text-decoration: none;
}
.button-icon::before {
content: '🔹';
}
/* === Cajas informativas === */
.box-info {
background: var(--info-bg);
border-left: 5px solid var(--info-border);
padding: 20px;
border-radius: var(--radius-md);
margin: 20px 0;
box-shadow: var(--shadow-sm);
}
.box-warning {
background: var(--warning-bg);
border-left: 5px solid var(--warning-border);
padding: 20px;
border-radius: var(--radius-md);
margin: 20px 0;
color: #78350f;
box-shadow: var(--shadow-sm);
}
.box-tip {
background: var(--success-bg);
border-left: 5px solid var(--success-border);
padding: 20px;
border-radius: var(--radius-md);
margin: 20px 0;
box-shadow: var(--shadow-sm);
}
/* === Listas === */
ul, ol {
padding-left: 40px;
margin-bottom: 20px;
}
/* === Navbar horizontal (TU ESTRUCTURA ORIGINAL) === */
.oroza-navbar {
background: var(--primary);
padding: 15px 25px;
display: flex;
gap: 30px;
justify-content: center;
align-items: center;
font-weight: bold;
border-bottom: 4px solid var(--accent);
border-radius: var(--radius-md);
box-shadow: var(--shadow-md);
margin: 20px auto;
max-width: 1200px;
position: relative;
}
.oroza-navbar a {
color: white !important;
text-decoration: none;
font-size: 16px;
padding: 8px 12px;
border-radius: var(--radius-sm);
transition: all 0.2s ease;
}
.oroza-navbar a:hover {
background-color: rgba(255, 255, 255, 0.1);
color: var(--accent) !important;
text-decoration: none;
}
.oroza-navbar-logo {
position: absolute;
left: 25px;
display: flex;
align-items: center;
}
.oroza-navbar-logo img {
width: 80px;
height: auto;
filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}
/* === Sidebar lateral personalizada (TU ESTRUCTURA ORIGINAL) === */
.oroza-sidebar {
background: var(--bg-content);
border: 1px solid var(--border-color);
padding: 15px 20px;
border-radius: var(--radius-md);
width: 240px;
font-size: 14px;
box-shadow: var(--shadow-sm);
margin-bottom: 20px;
}
.oroza-sidebar .menu-title {
font-weight: bold;
color: var(--primary);
font-size: 17px;
margin: 20px 0 12px;
border-left: 4px solid var(--accent);
padding-left: 10px;
}
.oroza-sidebar ul {
list-style: none;
padding-left: 0;
margin: 0;
}
.oroza-sidebar li {
margin: 6px 0;
display: flex;
align-items: center;
gap: 8px;
}
.oroza-sidebar li::before {
display: inline-block;
margin-right: 3px;
}
/* === Tablas personalizadas (oroza-table) === */
.oroza-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 24px 0;
font-size: 14px;
background-color: var(--bg-content);
box-shadow: var(--shadow-sm);
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-color);
}
.oroza-table thead {
background-color: var(--bg-body);
}
.oroza-table th {
color: var(--primary);
font-weight: bold;
text-align: left;
padding: 16px 20px;
border-bottom: 2px solid var(--border-color);
}
.oroza-table td {
padding: 14px 20px;
border-bottom: 1px solid var(--border-color);
}
.oroza-table tbody tr:hover {
background-color: var(--accent-light);
}
.oroza-table .highlight {
color: var(--accent-hover);
font-weight: bold;
}
.oroza-table .center-icon {
text-align: center;
font-size: 18px;
}
.oroza-table .zeny {
color: var(--success-border);
font-weight: bold;
}
.oroza-table.auto-width {
width: auto !important;
max-width: 100%;
table-layout: auto !important;
margin: 20px auto;
display: table;
}
/* === Imágenes === */
.zoom-img {
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: zoom-in;
border-radius: var(--radius-sm);
}
.zoom-img:hover {
transform: scale(1.05); /* Cambiado de 2 a 1.05 para no romper layout */
z-index: 10;
box-shadow: var(--shadow-md);
}
img.round-fade {
width: 55%;
border-radius: var(--radius-lg);
margin: 10px auto;
display: block;
box-shadow: var(--shadow-sm);
transition: transform 0.3s ease, opacity 0.3s ease;
object-fit: cover;
opacity: 0.97;
}
img.round-fade:hover {
transform: scale(1.05); /* Cambiado de 1.3 a 1.05 para no romper layout */
opacity: 1;
box-shadow: var(--shadow-md);
}
/* === Eliminar menús de MediaWiki (TU ESTRUCTURA ORIGINAL) === */
#p-logo,
#footer,
#mw-panel {
display: none !important;
}
.toggle-checkbox {
display: none;
}
.toggle-label {
display: none !important;
}
/* === Responsive (TU ESTRUCTURA ORIGINAL) === */
@media screen and (max-width: 768px) {
.oroza-flex-wrapper {
flex-direction: column;
gap: 20px;
}
.oroza-flex-wrapper > div {
width: 100% !important;
}
.oroza-sidebar {
width: 100% !important;
margin-bottom: 20px;
display: block !important;
}
.oroza-navbar {
flex-direction: column;
align-items: center;
padding: 20px;
}
.oroza-navbar-logo {
position: relative;
left: 0;
margin-bottom: 10px;
}
.oroza-navbar a {
display: block;
padding: 10px 0;
}
.toggle-label {
display: none !important;
}
}