Diferencia entre revisiones de «MediaWiki:Common.css»
Apariencia
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 1: | Línea 1: | ||
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap'); | ||
html, body { | |||
background-color: #241a10 !important; /* Evita destellos blancos en márgenes del viewport */ | |||
} | |||
/* ========================================================= | /* ========================================================= | ||
Revisión del 01:23 10 sep 2026
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');
html, body {
background-color: #241a10 !important; /* Evita destellos blancos en márgenes del viewport */
}
/* =========================================================
VARIABLES & OVERRIDES GLOBALES DE MEDIAWIKI
========================================================= */
:root {
--parchment: #ede0c3;
--parchment-dark: #d9c89e;
--parchment-shadow: #b9a06a;
--ink: #2e2115;
--ink-soft: #4a3b28;
--wine: #6e1423;
--wine-dark: #4a0e18;
--gold: #a6802f;
--gold-bright: #c9a44c;
/* Overrides directos de Codex / Vector */
--background-color-base: var(--parchment) !important;
--background-color-interactive-subtle: rgba(166, 128, 47, 0.15) !important;
--color-base: var(--ink) !important;
--color-base--hover: var(--wine-dark) !important;
--color-progressive: var(--wine) !important;
--color-progressive--hover: var(--wine-dark) !important;
--border-color-base: var(--gold) !important;
}
/* =========================================================
BASE
========================================================= */
body {
background-color: var(--parchment-dark);
background-image:
radial-gradient(ellipse at 20% 0%, rgba(255,250,235,0.35), transparent 55%),
radial-gradient(ellipse at 80% 100%, rgba(120,90,40,0.25), transparent 60%),
linear-gradient(160deg, var(--parchment) 0%, var(--parchment-dark) 100%);
color: var(--ink);
font-family: 'EB Garamond', Georgia, serif;
font-size: 17px;
line-height: 1.65;
}
/* =========================================================
CABECERA SUPERIOR (ELIMINA FONDO BLANCO TOTAL)
========================================================= */
header,
.mw-header,
.mw-header-container,
.vector-header-container,
.vector-header,
.vector-sticky-header {
background: linear-gradient(180deg, #3a2a1a, #241a10) !important;
border-bottom: 2px solid var(--gold) !important;
color: var(--parchment) !important;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
/* Forzar textos e iconos superiores */
.vector-header a,
.vector-header .cdx-button,
.vector-header .vector-menu-heading,
.vector-sticky-header a,
.mw-header a {
color: var(--parchment) !important;
}
/* Buscador */
.vector-search-box-input,
.cdx-text-input__input,
#searchInput {
background-color: var(--parchment) !important;
color: var(--ink) !important;
border: 1px solid var(--gold) !important;
font-family: 'EB Garamond', serif !important;
}
.vector-search-box-input::placeholder,
.cdx-text-input__input::placeholder {
color: var(--ink-soft) !important;
}
.cdx-search-input__end-button,
.searchButton {
background-color: var(--wine) !important;
border-color: var(--gold) !important;
color: var(--parchment) !important;
}
.cdx-search-input__end-button:hover,
.searchButton:hover {
background-color: var(--wine-dark) !important;
}
/* =========================================================
SIDEBAR / PANEL LATERAL CONTINUO
========================================================= */
/* Vector Legacy */
#mw-panel {
position: absolute;
top: 0;
bottom: 0;
min-height: 100vh;
background: #241a10 !important;
border-right: 2px solid var(--gold) !important;
box-sizing: border-box;
}
/* Vector 2022 y selectores universales */
.vector-main-menu-container,
.vector-sidebar-container,
.vector-pinned-container,
#mw-sidebar {
background: #241a10 !important;
border-right: 2px solid var(--gold) !important;
min-height: 100vh !important;
height: 100% !important;
padding-right: 0 !important;
margin-right: 0 !important;
box-sizing: border-box;
}
/* Forzar que el layout contenedor estire las columnas */
.mw-workspace-container,
.vector-main-menu {
height: 100% !important;
min-height: 100vh !important;
background: #241a10 !important;
}
/* Fondos limpios para enlaces y títulos */
#mw-panel .portal,
#mw-panel .portal .body,
.vector-main-menu ul,
.vector-main-menu-content {
background: transparent !important;
}
#mw-panel a,
.vector-main-menu a,
.vector-main-menu-heading,
#mw-panel .portal h3,
.vector-pinnable-header {
color: var(--parchment-dark) !important;
font-family: 'Cinzel', serif;
}
#mw-panel a:hover,
.vector-main-menu a:hover {
color: var(--gold-bright) !important;
text-decoration: none;
}
/* =========================================================
PESTAÑAS (LEER, EDITAR, HISTORIAL)
========================================================= */
.vector-menu-tabs-legacy,
.vector-menu-tabs,
.vector-page-toolbar {
background: transparent !important;
}
.vector-menu-tabs li,
.vector-tab-noicon {
background: rgba(58, 42, 26, 0.4) !important;
border: 1px solid var(--gold) !important;
margin-right: 2px;
border-radius: 4px 4px 0 0;
}
.vector-menu-tabs .selected,
.vector-tab-noicon.selected {
background: var(--parchment) !important;
border-bottom: 1px solid var(--parchment) !important;
border-top: 3px solid var(--wine) !important;
}
.vector-menu-tabs li a,
.vector-tab-noicon a {
color: var(--ink) !important;
font-family: 'Cinzel', serif;
font-size: 0.85em;
}
.vector-menu-tabs .selected a {
color: var(--wine-dark) !important;
font-weight: 700;
}
/* =========================================================
CUERPO PRINCIPAL DEL ARTÍCULO (SIN ROMPER EL LAYOUT)
========================================================= */
#content, .mw-body {
background-color: var(--parchment);
border: 1px solid var(--gold);
outline: 6px double var(--parchment-shadow);
outline-offset: -10px;
border-radius: 2px;
box-shadow: 0 8px 30px rgba(30, 20, 5, 0.35);
padding: 2em 2.4em;
/* No tocar margin-left aquí: rompe el cálculo de columnas con la sidebar */
}
/* Encabezados */
h1, h2, h3, h4, .firstHeading {
font-family: 'Cinzel', serif;
font-weight: 700;
color: var(--wine-dark);
letter-spacing: 0.5px;
}
.firstHeading {
font-size: 2em;
border-bottom: 2px solid var(--gold);
padding-bottom: 0.3em;
margin-bottom: 0.6em;
}
h2 {
border-bottom: 1px solid var(--gold);
padding-bottom: 0.15em;
}
/* Enlaces */
#content a, .mw-body a {
color: var(--wine);
text-decoration: none;
border-bottom: 1px solid rgba(110,20,35,0.35);
}
#content a:hover, .mw-body a:hover {
color: var(--wine-dark);
border-bottom-color: var(--wine-dark);
}
#content a.new, .mw-body a.new {
color: #9c2727;
border-bottom-color: rgba(156, 39, 39, 0.4);
}
/* Tablas */
table:not(.infobox):not(.pi-background) {
background-color: rgba(255,255,255,0.4);
border: 1px solid var(--gold);
border-collapse: collapse;
}
table:not(.infobox) th {
background: linear-gradient(180deg, #7a5a30, #5c4322);
color: var(--parchment);
font-family: 'Cinzel', serif;
font-weight: 500;
letter-spacing: 0.3px;
}
table:not(.infobox) td, table:not(.infobox) th {
border: 1px solid var(--gold);
padding: 6px 10px;
}
blockquote {
font-style: italic;
color: var(--ink-soft);
border-left: 3px solid var(--gold);
padding-left: 1em;
margin-left: 0;
}
/* =========================================================
INFOBOXES
========================================================= */
.portable-infobox {
background: var(--parchment);
border: 1px solid var(--gold);
outline: 3px double var(--gold-bright);
outline-offset: -6px;
border-radius: 3px;
box-shadow: 4px 6px 14px rgba(0,0,0,0.35);
font-family: 'EB Garamond', serif;
color: var(--ink);
width: 300px;
}
.portable-infobox .pi-title {
background: linear-gradient(135deg, var(--wine), var(--wine-dark));
color: #f3e6c8;
font-family: 'Cinzel', serif;
font-weight: 700;
font-size: 1.25em;
text-align: center;
padding: 10px 6px;
border-bottom: 3px solid var(--gold-bright);
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.portable-infobox .pi-image {
border: 3px solid var(--gold-bright);
border-radius: 2px;
margin: 8px auto;
max-width: 88%;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.portable-infobox .pi-header {
background: linear-gradient(180deg, #7a5a30, #5c4322);
color: var(--parchment);
font-family: 'Cinzel', serif;
font-weight: 500;
text-transform: uppercase;
font-size: 0.8em;
letter-spacing: 1.2px;
padding: 5px 6px;
border-top: 1px solid var(--gold-bright);
border-bottom: 1px solid var(--gold-bright);
}
.portable-infobox .pi-data {
border-bottom: 1px solid var(--parchment-shadow);
padding: 5px 10px;
}
.portable-infobox .pi-data-label {
font-weight: 600;
color: var(--wine-dark);
width: 45%;
}
.portable-infobox .pi-data-value {
color: var(--ink);
}
.portable-infobox .pi-group.pi-border-color {
background-color: rgba(166, 128, 47, 0.12);
border-top: 1px dashed var(--gold);
border-bottom: 1px dashed var(--gold);
}
.portable-infobox .pi-footer {
font-size: 0.75em;
text-align: center;
color: var(--ink-soft);
font-style: italic;
padding: 6px;
border-top: 1px solid var(--parchment-shadow);
}
.ficha-personaje .pi-title { background: linear-gradient(135deg, var(--wine), var(--wine-dark)); }
.ficha-monstruo .pi-title { background: linear-gradient(135deg, #4a2010, #2b1208); }
.ficha-hechizo .pi-title { background: linear-gradient(135deg, #2f4f4f, #1a2e2e); }
.ficha-localizacion .pi-title { background: linear-gradient(135deg, #5c4322, #3a2a15); }