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
Sin resumen de edición
 
(No se muestran 15 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
/* Fondo general y tipografía */
/* === Tipografía y fondo general === */
body {
body {
   background-color: #f2f2f2;
   background-color: #f2f2f2;
Línea 6: Línea 6:
}
}


/* Contenido principal */
/* === Contenido principal === */
#content {
#content {
   background-color: #fff;
   background-color: #fff;
Línea 16: Línea 16:
}
}


/* Cabecera de títulos */
/* === Título de página === */
.firstHeading {
.firstHeading {
   font-size: 2rem;
   font-size: 2.2rem;
   font-weight: bold;
   font-weight: bold;
   color: #2b4a6d;
   color: #2b4a6d;
  border-bottom: 2px solid #ddd;
   margin-bottom: 20px;
   margin-bottom: 20px;
}
}


/* Tabla de contenido */
/* === Tabla de contenido === */
#toc {
#toc {
   background-color: #eef4ff;
   background-color: #eef4ff;
Línea 33: Línea 32:
}
}


/* Enlaces */
/* === Enlaces === */
a {
a {
   color: #1e70bf;
   color: #1e70bf;
Línea 42: Línea 41:
}
}


/* Panel lateral de MediaWiki */
/* === Encabezados jerárquicos mejorados y sin subrayado === */
#mw-panel {
h1, h2, h3, h4, h5, h6 {
   background-color: #2b3e50;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
   padding-top: 10px;
  font-weight: 700;
   text-align: center;
  color: #2b4a6d;
   margin-top: 40px;
  margin-bottom: 30px; /* más espacio debajo */
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
  border-bottom: none; /* elimina subrayado si existiera */
  background: none !important; /* previene fondos heredados */
}
 
/* Tamaños progresivos de mayor a menor */
h1 {
  font-size: 2.8rem;
}
}
#mw-panel a {
h2 {
  color: #ccc !important;
   font-size: 2.5rem;
   font-weight: 500;
}
}
#mw-panel a:hover {
h3 {
   color: #fff !important;
   font-size: 2.3rem;
}
}
 
h4 {
/* Quitar logo grande si no se usa */
   font-size: 1.6rem;
#p-logo,
#footer {
   display: none;
}
}
 
h5 {
/* Botones */
   font-size: 1.3rem;
input[type="submit"],
input[type="button"],
button {
   background-color: #2b4a6d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
}
input[type="submit"]:hover,
h6 {
input[type="button"]:hover,
  font-size: 1.1rem;
button:hover {
   color: #444;
   background-color: #1e324f;
}
}


/* Encabezados h2 y h3 */
h2, h3 {
  border-left: 5px solid #ffb400;
  padding-left: 10px;
  margin-top: 30px;
  color: #2b4a6d;
}


/* Botones con íconos */
/* === Botones con íconos === */
.button-icon {
.button-icon {
   display: inline-flex;
   display: inline-flex;
Línea 106: Línea 97:
}
}


/* Cajas tipo aviso */
/* === Cajas informativas === */
.box-info {
.box-info {
   background: #eef4ff;
   background: #eef4ff;
Línea 129: Línea 120:
}
}


/* Listas */
/* === Listas === */
ul, ol {
ul, ol {
   padding-left: 40px;
   padding-left: 40px;
Línea 139: Línea 130:
}
}


/* Navbar horizontal */
/* === Navbar horizontal === */
.oroza-navbar {
.oroza-navbar {
   background: #2b3e50;
   background: #2b3e50;
   padding: 12px 20px;
   padding: 15px 25px;
   display: flex;
   display: flex;
   gap: 30px;
   gap: 30px;
   justify-content: center;
   justify-content: center;
  align-items: center;
   font-weight: bold;
   font-weight: bold;
   border-bottom: 3px solid #ffb400;
   border-bottom: 3px solid #ffb400;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  max-width: 1200px;
  position: relative;
}
}
.oroza-navbar a {
.oroza-navbar a {
   color: white !important;
   color: white !important;
Línea 159: Línea 157:
}
}


/* Sidebar lateral */
.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 {
.oroza-sidebar {
   background: #ffffff;
   background: #ffffff;
Línea 170: Línea 181:
   margin-bottom: 20px;
   margin-bottom: 20px;
}
}
/* Menu title más grande y con más espaciado entre títulos */
.oroza-sidebar .menu-title {
.oroza-sidebar .menu-title {
   font-weight: bold;
   font-weight: bold;
   color: #2b4a6d;
   color: #2b4a6d;
   font-size: 15px;
   font-size: 17px; /* Aumentado */
   margin-bottom: 10px;
   margin: 20px 0 12px; /* Espacio arriba y abajo */
   border-left: 4px solid #ffb400;
   border-left: 4px solid #ffb400;
   padding-left: 8px;
   padding-left: 10px;
}
}
/* Lista de items */
.oroza-sidebar ul {
.oroza-sidebar ul {
   list-style: none;
   list-style: none;
Línea 183: Línea 198:
   margin: 0;
   margin: 0;
}
}
.oroza-sidebar li {
.oroza-sidebar li {
   margin: 6px 0;
   margin: 6px 0;
Línea 189: Línea 205:
   gap: 8px;
   gap: 8px;
}
}
.oroza-sidebar li::before {
.oroza-sidebar li::before {
  content: '📌';
   display: inline-block;
   display: inline-block;
   margin-right: 5px;
   margin-right: 3px;
}
 
/* === Tablas personalizadas (oroza-table) === */
.oroza-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.oroza-table thead {
  background-color: #2b4a6d;
  color: #fff;
  text-align: left;
  font-weight: bold;
}
.oroza-table th,
.oroza-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
.oroza-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
.oroza-table tbody tr:hover {
  background-color: #eef4ff;
}
.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;
}
}


/* Estilos responsivos */
/* === Responsive === */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
   .oroza-flex-wrapper {
   .oroza-flex-wrapper {
Línea 209: Línea 266:
     width: 100% !important;
     width: 100% !important;
     margin-bottom: 20px;
     margin-bottom: 20px;
    display: block !important;
   }
   }


Línea 222: Línea 280:


   .toggle-label {
   .toggle-label {
     display: block;
     display: none !important;
   }
   }
}


  .oroza-sidebar {
/* === Eliminar menú original de MediaWiki === */
    display: none;
#p-logo,
  }
#footer,
 
#mw-panel {
  .toggle-checkbox:checked + .toggle-label + .oroza-sidebar {
  display: none !important;
    display: block;
  }
}
}


/* Menú colapsable */
/* === Quitar funcionalidad del menú colapsable móvil === */
.toggle-checkbox {
.toggle-checkbox {
   display: none;
   display: none;
}
}
.toggle-label {
.toggle-label {
   display: none;
   display: none !important;
  background: #2b4a6d;
}
  color: white;
 
   padding: 10px 15px;
 
   border-radius: 6px;
.oroza-table.auto-width {
   font-weight: bold;
   width: auto !important;
  cursor: pointer;
   max-width: 100%;
   margin-bottom: 10px;
   table-layout: auto !important;
   text-align: center;
   margin: 20px auto;
   display: table;
}
}
  .zoom-img {
    transition: transform 0.25s ease;
    cursor: zoom-in;
  }
  .zoom-img:hover {
    transform: scale(2);
    z-index: 10;
  }

Revisión actual - 20:11 2 jun 2025

/* === Tipografía y fondo general === */
body {
  background-color: #f2f2f2;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: #333;
}

/* === Contenido principal === */
#content {
  background-color: #fff;
  padding: 30px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  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 === */
a {
  color: #1e70bf;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Tamaños progresivos de mayor a menor */
h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2.3rem;
}
h4 {
  font-size: 1.6rem;
}
h5 {
  font-size: 1.3rem;
}
h6 {
  font-size: 1.1rem;
  color: #444;
}


/* === Botones con íconos === */
.button-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2b4a6d;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.button-icon:hover {
  background: #1e324f;
}
.button-icon::before {
  content: '🔹';
}

/* === Cajas informativas === */
.box-info {
  background: #eef4ff;
  border-left: 5px solid #1e70bf;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}
.box-warning {
  background: #fff4e5;
  border-left: 5px solid #ffa500;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}
.box-tip {
  background: #eaffea;
  border-left: 5px solid #28a745;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

/* === Listas === */
ul, ol {
  padding-left: 40px;
  margin-bottom: 20px;
}
.mw-body a {
  color: #1e70bf;
  font-weight: 500;
}

/* === Navbar horizontal === */
.oroza-navbar {
  background: #2b3e50;
  padding: 15px 25px;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-bottom: 3px solid #ffb400;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  max-width: 1200px;
  position: relative;
}

.oroza-navbar a {
  color: white !important;
  text-decoration: none;
  font-size: 16px;
}
.oroza-navbar a:hover {
  text-decoration: underline;
  color: #ffcc33 !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 {
  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: collapse;
  margin: 20px 0;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.oroza-table thead {
  background-color: #2b4a6d;
  color: #fff;
  text-align: left;
  font-weight: bold;
}
.oroza-table th,
.oroza-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
.oroza-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
.oroza-table tbody tr:hover {
  background-color: #eef4ff;
}
.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 === */
@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;
  }

  .oroza-navbar a {
    display: block;
    padding: 10px 0;
  }

  .toggle-label {
    display: none !important;
  }
}

/* === Eliminar menú original de MediaWiki === */
#p-logo,
#footer,
#mw-panel {
  display: none !important;
}

/* === Quitar funcionalidad del menú colapsable móvil === */
.toggle-checkbox {
  display: none;
}
.toggle-label {
  display: none !important;
}


.oroza-table.auto-width {
  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;
  }