Diferencia entre revisiones de «MediaWiki:Common.css»

De Oroza RO Wiki
Ir a la navegación Ir a la búsqueda
Sin resumen de edición
Etiqueta: Reversión manual
Sin resumen de edición
Etiqueta: Revertido
Línea 1: Línea 1:
/* =========================================
  VARIABLES GLOBALES (Identidad Oroza)
  ========================================= */
:root {
  /* Paleta de colores */
  --bg-body: #f4f6f9;
  --bg-content: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
 
  --primary: #2b4a6d; /* Azul principal */
  --primary-dark: #1e324f;
  --accent: #ffb400; /* Dorado Oroza */
  --accent-light: #fff8e6; /* Dorado muy suave para fondos */
  --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 Suaves (Modernos y amigables) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  /* Sombras Modernas */
  --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); /* Sombra con un ligero tono azul */
  /* Densidad Media */
  --pad-sm: 12px;
  --pad-md: 20px;
  --pad-lg: 32px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
/* === Tipografía y fondo general === */
/* === Tipografía y fondo general === */
body {
body {
   background-color: #f2f2f2;
   background-color: var(--bg-body);
   font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
   color: var(--text-main);
   color: #333;
   line-height: 1.6;
}
}


/* === Contenido principal === */
/* === Contenido principal === */
#content {
#content {
   background-color: #fff;
   background-color: var(--bg-content);
   padding: 30px;
   padding: var(--pad-lg);
   margin: 20px auto;
   margin: 30px auto;
   border-radius: 12px;
   border-radius: var(--radius-lg); /* Borde bien redondeado */
   box-shadow: 0 0 10px rgba(0,0,0,0.1);
   box-shadow: var(--shadow-float);
   max-width: 1200px;
   max-width: 1200px;
}
/* === Título de página === */
.firstHeading {
  font-size: 2.2rem;
  font-weight: bold;
  color: #2b4a6d;
  margin-bottom: 20px;
}
/* === Tabla de contenido === */
#toc {
  background-color: #eef4ff;
  border: 1px solid #cddaf1;
  padding: 10px;
  border-radius: 8px;
}
}


/* === Enlaces === */
/* === Enlaces === */
a {
a {
   color: #1e70bf;
   color: var(--link);
   text-decoration: none;
   text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
}
a:hover {
a:hover {
   text-decoration: underline;
  color: var(--accent); /* Al pasar el mouse, brillan en dorado */
   text-decoration: none;
}
}


/* === Encabezados jerárquicos mejorados y sin subrayado === */
/* === Encabezados con detalles dorados === */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
   font-weight: 700;
   font-weight: 700;
  text-align: center;
   color: var(--primary);
   color: #2b4a6d;
   margin-top: 1.8em;
   margin-top: 40px;
   margin-bottom: 0.8em;
   margin-bottom: 30px; /* más espacio debajo */
   line-height: 1.3;
   line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
   border-bottom: none;  
   border-bottom: none; /* elimina subrayado si existiera */
   background: none !important;
   background: none !important; /* previene fondos heredados */
}
}


/* Tamaños progresivos de mayor a menor */
h1.firstHeading, h1 {  
h1 {
   font-size: 2.5rem;
   font-size: 2.8rem;
  margin-top: 0;
  position: relative;
  padding-bottom: 10px;
}
}
h2 {
 
   font-size: 2.5rem;
/* Línea dorada decorativa debajo del título principal */
h1.firstHeading::after, h1::after {
   content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 4px;
}
}
h3 {
 
   font-size: 2.3rem;
h2 {  
   font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
}
h4 {
 
   font-size: 1.6rem;
/* Punto dorado al lado de los H2 para un toque premium */
h2::before {
   content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}
}
h5 {
 
   font-size: 1.3rem;
/* === Tabla de contenido (TOC) === */
#toc {
   background-color: #fafafa;
  border: 1px solid var(--border-color);
  padding: var(--pad-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  min-width: 250px;
}
}
h6 {
#toc h2 {
   font-size: 1.1rem;
   font-size: 1.2rem;
   color: #444;
   margin-top: 0;
}
}
#toc h2::before { display: none; } /* Quitamos el punto dorado aquí */


 
/* === Botones === */
/* === Botones con íconos === */
.button-icon {
.button-icon {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
   gap: 8px;
   gap: 8px;
   background: #2b4a6d;
   background: var(--primary);
   color: white;
   color: white !important;
   padding: 8px 12px;
   padding: 10px 20px;
   border-radius: 8px;
   border-radius: var(--radius-md);
   text-decoration: none;
   text-decoration: none;
   font-weight: 600;
   font-weight: 600;
   transition: background 0.2s ease;
   transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
}
.button-icon:hover {
.button-icon:hover {
   background: #1e324f;
   background: var(--primary-dark);
}
  border-color: var(--accent); /* Borde dorado al pasar el mouse */
.button-icon::before {
  transform: translateY(-2px);
   content: '🔹';
   box-shadow: var(--shadow-md);
}
}


/* === Cajas informativas === */
/* === Cajas informativas === */
.box-info, .box-warning, .box-tip {
  padding: var(--pad-md);
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.box-info {
.box-info {
   background: #eef4ff;
   background: var(--info-bg);
   border-left: 5px solid #1e70bf;
   border-left: 5px solid var(--info-border);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}
}
.box-warning {
.box-warning {
   background: #fff4e5;
   background: var(--warning-bg);
   border-left: 5px solid #ffa500;
   border-left: 5px solid var(--warning-border);
  padding: 15px;
   color: #78350f;  
  border-radius: 8px;
   margin: 20px 0;
}
}
.box-tip {
.box-tip {
   background: #eaffea;
   background: var(--success-bg);
   border-left: 5px solid #28a745;
   border-left: 5px solid var(--success-border);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}
}


/* === Listas === */
/* === Navbar Horizontal === */
ul, ol {
  padding-left: 40px;
  margin-bottom: 20px;
}
.mw-body a {
  color: #1e70bf;
  font-weight: 500;
}
 
/* === Navbar horizontal === */
.oroza-navbar {
.oroza-navbar {
   background: #2b3e50;
   background: var(--primary);
   padding: 15px 25px;
   padding: 0 var(--pad-lg);
  height: 70px;
   display: flex;
   display: flex;
  gap: 30px;
   justify-content: center;
   justify-content: center;
   align-items: center;
   align-items: center;
   font-weight: bold;
  gap: 30px;
   border-bottom: 3px solid #ffb400;
   font-weight: 600;
   border-radius: 12px;
   border-bottom: 4px solid var(--accent);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   border-radius: var(--radius-md);
   box-shadow: var(--shadow-md);
   margin: 20px auto;
   margin: 20px auto;
   max-width: 1200px;
   max-width: 1200px;
  position: relative;
}
}
.oroza-navbar a {
.oroza-navbar a {
   color: white !important;
   color: rgba(255, 255, 255, 0.9) !important;
   text-decoration: none;
   font-size: 15px;
   font-size: 16px;
  padding: 8px 12px;
   border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
}
.oroza-navbar a:hover {
.oroza-navbar a:hover {
   text-decoration: underline;
   background-color: rgba(255, 255, 255, 0.1);
  color: #ffcc33 !important;
   color: var(--accent) !important;
}
 
.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 white);
}
 
/* === Sidebar lateral personalizada === */
.oroza-sidebar {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 10px;
  width: 240px;
  font-size: 14px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
 
/* Menu title más grande y con más espaciado entre títulos */
.oroza-sidebar .menu-title {
  font-weight: bold;
   color: #2b4a6d;
  font-size: 17px; /* Aumentado */
  margin: 20px 0 12px; /* Espacio arriba y abajo */
  border-left: 4px solid #ffb400;
  padding-left: 10px;
}
 
/* Lista de items */
.oroza-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
}


.oroza-sidebar li {
/* === Tablas de Datos (Densidad Media) === */
  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 {
.oroza-table {
   width: 100%;
   width: 100%;
   border-collapse: collapse;
   border-collapse: separate;
   margin: 20px 0;
  border-spacing: 0;
   font-size: 14px;
   margin: 24px 0;
   background-color: #fff;
   font-size: 0.95rem;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
   background-color: var(--bg-content);
   border-radius: 8px;
   border-radius: var(--radius-md);
   overflow: hidden;
  overflow: hidden; /* Esto asegura que los bordes redondeados se apliquen */
   border: 1px solid var(--border-color);
   box-shadow: var(--shadow-sm);
}
}
.oroza-table thead {
.oroza-table thead {
   background-color: #2b4a6d;
   background-color: var(--bg-body);
   color: #fff;
}
   text-align: left;
.oroza-table th {
   font-weight: bold;
   color: var(--primary);
   font-weight: 700;
   font-size: 0.9rem;
  padding: 16px var(--pad-md); /* Densidad media */
  border-bottom: 2px solid var(--border-color);
}
}
.oroza-table th,
.oroza-table td {
.oroza-table td {
   padding: 12px 15px;
   padding: 14px var(--pad-md); /* Densidad media */
   border-bottom: 1px solid #eee;
   border-bottom: 1px solid var(--border-color);
}
}
.oroza-table tbody tr:nth-child(even) {
.oroza-table tbody tr:last-child td {
   background-color: #f9f9f9;
   border-bottom: none;
}
}
.oroza-table tbody tr:hover {
.oroza-table tbody tr:hover {
   background-color: #eef4ff;
   background-color: var(--accent-light); /* Hover sutil en dorado */
}
.oroza-table .highlight {
  color: #ffb400;
  font-weight: bold;
}
.oroza-table .center-icon {
  text-align: center;
  font-size: 18px;
}
.oroza-table .zeny {
  color: #28a745;
  font-weight: bold;
}
}


/* === Responsive === */
/* Clases útiles */
@media screen and (max-width: 768px) {
.oroza-table .highlight { color: var(--accent-hover); font-weight: bold; }
  .oroza-flex-wrapper {
.oroza-table .zeny { color: var(--success-border); font-weight: 600; }
    flex-direction: column;
    gap: 20px;
  }


  .oroza-flex-wrapper > div {
/* === Blockquotes === */
    width: 100% !important;
blockquote {
   }
  margin: 24px 0;
 
   padding: 20px var(--pad-lg);
  .oroza-sidebar {
  font-style: italic;
    width: 100% !important;
  color: var(--text-main);
    margin-bottom: 20px;
   background-color: var(--accent-light);
    display: block !important;
  border-left: 4px solid var(--accent);
   }
   border-radius: 0 var(--radius-md) var(--radius-md) 0;
 
   position: relative;
  .oroza-navbar {
    flex-direction: column;
    align-items: center;
   }
 
  .oroza-navbar a {
    display: block;
    padding: 10px 0;
   }
 
  .toggle-label {
    display: none !important;
  }
}
}


/* === Eliminar menú original de MediaWiki === */
/* === Badges (Etiquetas) === */
#p-logo,
.badge {
#footer,
  display: inline-block;
#mw-panel {
  padding: 4px 10px;
   display: none !important;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px; /* Muy redondeado tipo "píldora" */
  text-transform: uppercase;
   letter-spacing: 0.5px;
}
}
.badge-gold { background: var(--accent-light); color: #92400e; border: 1px solid var(--accent); }
.badge-primary { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }


/* === Quitar funcionalidad del menú colapsable móvil === */
/* === Imágenes === */
.toggle-checkbox {
.zoom-img {
   display: none;
   transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
   border-radius: var(--radius-sm);
.toggle-label {
   display: none !important;
}
}
 
.zoom-img:hover {
 
   transform: scale(1.05);
.oroza-table.auto-width {
   box-shadow: var(--shadow-md);
   width: auto !important;
   max-width: 100%;
  table-layout: auto !important;
  margin: 20px auto;
  display: table;
}
}
  .zoom-img {
    transition: transform 0.25s ease;
    cursor: zoom-in;
  }
  .zoom-img:hover {
    transform: scale(2);
    z-index: 10;
  }


img.round-fade {
img.round-fade {
  width: 55%;
   border-radius: var(--radius-lg);
   border-radius: 20px;
   box-shadow: var(--shadow-sm);
  margin: 10px auto;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
   box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 0 0 15px rgba(0,0,0,0.08);
   transition: transform 0.3s ease;
  object-fit: cover;
  opacity: 0.97;
}
}
img.round-fade:hover {
img.round-fade:hover {
   transform: scale(1.3);
   transform: scale(1.05);
  box-shadow: var(--shadow-md);
   opacity: 1;
   opacity: 1;
}
/* === Responsive === */
@media screen and (max-width: 768px) {
  #content { padding: var(--pad-md); }
  .oroza-navbar {
    height: auto;
    flex-direction: column;
    padding: var(--pad-md);
    gap: 10px;
  }
}
}

Revisión del 01:14 4 abr 2026

/* =========================================
   VARIABLES GLOBALES (Identidad Oroza)
   ========================================= */
:root {
  /* Paleta de colores */
  --bg-body: #f4f6f9; 
  --bg-content: #ffffff;
  --text-main: #334155; 
  --text-muted: #64748b;
  
  --primary: #2b4a6d; /* Azul principal */
  --primary-dark: #1e324f;
  --accent: #ffb400; /* Dorado Oroza */
  --accent-light: #fff8e6; /* Dorado muy suave para fondos */
  --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 Suaves (Modernos y amigables) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Sombras Modernas */
  --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); /* Sombra con un ligero tono azul */

  /* Densidad Media */
  --pad-sm: 12px;
  --pad-md: 20px;
  --pad-lg: 32px;

  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === Tipografía y fondo general === */
body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* === Contenido principal === */
#content {
  background-color: var(--bg-content);
  padding: var(--pad-lg);
  margin: 30px auto;
  border-radius: var(--radius-lg); /* Borde bien redondeado */
  box-shadow: var(--shadow-float);
  max-width: 1200px;
}

/* === Enlaces === */
a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent); /* Al pasar el mouse, brillan en dorado */
  text-decoration: none;
}

/* === Encabezados con detalles dorados === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  line-height: 1.3;
  border-bottom: none; 
  background: none !important;
}

h1.firstHeading, h1 { 
  font-size: 2.5rem; 
  margin-top: 0; 
  position: relative;
  padding-bottom: 10px;
}

/* Línea dorada decorativa debajo del título principal */
h1.firstHeading::after, h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 4px;
}

h2 { 
  font-size: 1.8rem; 
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Punto dorado al lado de los H2 para un toque premium */
h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* === Tabla de contenido (TOC) === */
#toc {
  background-color: #fafafa;
  border: 1px solid var(--border-color);
  padding: var(--pad-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  min-width: 250px;
}
#toc h2 {
  font-size: 1.2rem;
  margin-top: 0;
}
#toc h2::before { display: none; } /* Quitamos el punto dorado aquí */

/* === Botones === */
.button-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  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); /* Borde dorado al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === Cajas informativas === */
.box-info, .box-warning, .box-tip {
  padding: var(--pad-md);
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.box-info {
  background: var(--info-bg);
  border-left: 5px solid var(--info-border);
}
.box-warning {
  background: var(--warning-bg);
  border-left: 5px solid var(--warning-border);
  color: #78350f; 
}
.box-tip {
  background: var(--success-bg);
  border-left: 5px solid var(--success-border);
}

/* === Navbar Horizontal === */
.oroza-navbar {
  background: var(--primary);
  padding: 0 var(--pad-lg);
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  border-bottom: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 20px auto;
  max-width: 1200px;
}
.oroza-navbar a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  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;
}

/* === Tablas de Datos (Densidad Media) === */
.oroza-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 0.95rem;
  background-color: var(--bg-content);
  border-radius: var(--radius-md);
  overflow: hidden; /* Esto asegura que los bordes redondeados se apliquen */
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.oroza-table thead {
  background-color: var(--bg-body);
}
.oroza-table th {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px var(--pad-md); /* Densidad media */
  border-bottom: 2px solid var(--border-color);
}
.oroza-table td {
  padding: 14px var(--pad-md); /* Densidad media */
  border-bottom: 1px solid var(--border-color);
}
.oroza-table tbody tr:last-child td {
  border-bottom: none;
}
.oroza-table tbody tr:hover {
  background-color: var(--accent-light); /* Hover sutil en dorado */
}

/* Clases útiles */
.oroza-table .highlight { color: var(--accent-hover); font-weight: bold; }
.oroza-table .zeny { color: var(--success-border); font-weight: 600; }

/* === Blockquotes === */
blockquote {
  margin: 24px 0;
  padding: 20px var(--pad-lg);
  font-style: italic;
  color: var(--text-main);
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

/* === Badges (Etiquetas) === */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px; /* Muy redondeado tipo "píldora" */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold { background: var(--accent-light); color: #92400e; border: 1px solid var(--accent); }
.badge-primary { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }

/* === Imágenes === */
.zoom-img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
}
.zoom-img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

img.round-fade {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
img.round-fade:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  #content { padding: var(--pad-md); }
  .oroza-navbar {
    height: auto;
    flex-direction: column;
    padding: var(--pad-md);
    gap: 10px;
  }
}