Ir al contenido

Diferencia entre revisiones de «MediaWiki:Common.css»

De Compendio de la Campaña
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');


/* =========================================================
/* =========================================================
   VARIABLES & OVERRIDES GLOBALES DE MEDIAWIKI
   VARIABLES
   ========================================================= */
   ========================================================= */
:root {
:root {
Línea 16: Línea 14:
--gold: #a6802f;
--gold: #a6802f;
--gold-bright: #c9a44c;
--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
   FONDO BASE
   ========================================================= */
   ========================================================= */
body {
body {
Línea 43: Línea 32:


/* =========================================================
/* =========================================================
   CABECERA SUPERIOR & MW-HEAD (MISMO COLOR OSCURO)
   CABECERA SUPERIOR (#mw-head) & ENLACES DE USUARIO
   ========================================================= */
   ========================================================= */
html {
#mw-head {
background-color: #241a10 !important;
}
 
#mw-head,
.mw-header,
.mw-header-container,
.vector-header-container,
.vector-header,
.vector-sticky-header {
background: linear-gradient(180deg, #3a2a1a, #241a10) !important;
background: linear-gradient(180deg, #3a2a1a, #241a10) !important;
border-bottom: 2px solid var(--gold) !important;
border-bottom: 2px solid var(--gold) !important;
Línea 60: Línea 40:
}
}


/* Enlaces y textos dentro de mw-head y header */
/* Enlaces de usuario arriba a la derecha (Dungeon Master, Discusión, etc.) */
#mw-head a,
#p-personal ul li a {
.vector-header a,
color: var(--parchment-dark) !important;
.vector-header .cdx-button,
font-family: 'Cinzel', serif;
.vector-header .vector-menu-heading,
font-size: 12px;
.vector-sticky-header a,
}
.mw-header a {
#p-personal ul li a:hover {
color: var(--parchment) !important;
color: var(--gold-bright) !important;
text-decoration: underline;
}
}


/* Evitar fondo blanco en menús y herramientas de la barra */
/* Menú "Más" / desplegables de acciones */
#mw-head .vector-menu-portal,
.vector-menu-dropdown .vector-menu-heading {
#mw-head .vector-menu-content {
color: var(--parchment-dark) !important;
background: transparent !important;
}
}


/* Buscador */
/* Buscador Vector Legacy */
.vector-search-box-input,
.cdx-text-input__input,
#searchInput {
#searchInput {
background-color: var(--parchment) !important;
background-color: var(--parchment) !important;
Línea 85: Línea 63:
font-family: 'EB Garamond', serif !important;
font-family: 'EB Garamond', serif !important;
}
}
 
#searchButton {
.cdx-search-input__end-button,
.searchButton {
background-color: var(--wine) !important;
background-color: var(--wine) !important;
border-color: var(--gold) !important;
border: 1px solid var(--gold) !important;
color: var(--parchment) !important;
}
}


/* =========================================================
/* =========================================================
   SIDEBAR (VISIBLE, EN SU SITIO, SIN ROMPER EL LAYOUT)
   PESTAÑAS DE NAVEGACIÓN (PÁGINA, DISCUSIÓN, EDITAR...)
   ========================================================= */
   ========================================================= */
/* Vector Legacy: restaurar position absolute estándar */
#p-namespaces, #p-views {
#mw-panel {
position: absolute !important;
top: 0;
left: 0;
width: 10em !important;
background: transparent !important;
background: transparent !important;
border: none !important;
display: block !important;
visibility: visible !important;
z-index: 10;
}
}


/* Vector 2022 */
/* Pestañas inactivas (fondo oscuro translúcido para que destaquen sobre la barra) */
.vector-main-menu-container,
.vectorTabs ul li {
.vector-sidebar-container,
background: rgba(30, 20, 10, 0.6) !important;
#mw-sidebar {
border: 1px solid var(--gold) !important;
background: transparent !important;
margin-right: 2px;
border: none !important;
border-bottom: none !important;
display: block !important;
}
visibility: visible !important;
.vectorTabs ul li a {
color: var(--parchment-dark) !important;
font-family: 'Cinzel', serif;
font-size: 12px;
}
}


/* Portales y cajas internas transparentes */
/* Pestaña activa (se funde con el pergamino del contenido) */
#mw-panel .portal,
.vectorTabs ul li.selected {
#mw-panel .portal .body,
background: var(--parchment) !important;
.vector-main-menu ul,
border-top: 2px solid var(--wine) !important;
.vector-main-menu-content {
border-left: 1px solid var(--gold) !important;
background: transparent !important;
border-right: 1px solid var(--gold) !important;
border-bottom: 1px solid var(--parchment) !important;
}
}
 
.vectorTabs ul li.selected a {
/* Títulos de sección de la sidebar */
#mw-panel .portal h3,
.vector-main-menu-heading,
.vector-pinnable-header {
color: var(--wine-dark) !important;
color: var(--wine-dark) !important;
font-family: 'Cinzel', serif !important;
font-weight: 700;
font-weight: 700;
border-bottom: 1px solid var(--gold);
padding-bottom: 3px;
margin-bottom: 8px;
}
/* Enlaces legibles de la sidebar */
#mw-panel a,
.vector-main-menu a {
color: var(--ink-soft) !important;
font-family: 'EB Garamond', serif;
font-size: 16px;
text-decoration: none;
border-bottom: none !important;
}
#mw-panel a:hover,
.vector-main-menu a:hover {
color: var(--wine) !important;
}
}


/* =========================================================
/* =========================================================
   PESTAÑAS (LEER, EDITAR, HISTORIAL)
   SIDEBAR (#mw-panel) — DEL MISMO COLOR QUE EL HEADER
   ========================================================= */
   ========================================================= */
.vector-menu-tabs-legacy,
#mw-panel {
.vector-menu-tabs,
position: absolute;
.vector-page-toolbar {
top: 0;
background: transparent !important;
left: 0;
width: 10em;
min-height: 100vh;
height: 100%;
background: linear-gradient(180deg, #3a2a1a, #241a10) !important;
border-right: 2px solid var(--gold) !important;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.35);
padding-top: 160px; /* Deja hueco para el logo */
}
}


.vector-menu-tabs li,
/* Eliminar fondos grises nativos de MediaWiki en la sidebar */
.vector-tab-noicon {
#mw-panel .portal,
background: rgba(58, 42, 26, 0.4) !important;
#mw-panel .portal .body {
border: 1px solid var(--gold) !important;
background: transparent !important;
margin-right: 2px;
background-image: none !important;
border-radius: 4px 4px 0 0;
}
}


.vector-menu-tabs .selected,
/* Títulos de sección (NAVEGACIÓN, HERRAMIENTAS, etc.) */
.vector-tab-noicon.selected {
#mw-panel .portal h3 {
background: var(--parchment) !important;
color: var(--gold-bright) !important;
border-bottom: 1px solid var(--parchment) !important;
font-family: 'Cinzel', serif !important;
border-top: 3px solid var(--wine) !important;
font-weight: 700 !important;
font-size: 0.85em !important;
letter-spacing: 1px;
border-bottom: 1px solid var(--gold);
padding: 0.25em 0;
margin: 0.8em 0.5em 0.4em 0.5em;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
}


.vector-menu-tabs li a,
/* Enlaces de la barra lateral (claros para fondo oscuro) */
.vector-tab-noicon a {
#mw-panel .portal .body li a {
color: var(--ink) !important;
color: var(--parchment) !important;
font-family: 'Cinzel', serif;
font-family: 'EB Garamond', serif !important;
font-size: 0.85em;
font-size: 15px !important;
line-height: 1.4;
border-bottom: none !important;
padding: 2px 0;
display: block;
}
}


.vector-menu-tabs .selected a {
#mw-panel .portal .body li a:hover {
color: var(--wine-dark) !important;
color: var(--gold-bright) !important;
font-weight: 700;
text-decoration: underline;
}
}


/* =========================================================
/* =========================================================
   CUERPO PRINCIPAL DEL ARTÍCULO (SIN ROMPER EL LAYOUT)
   CUERPO PRINCIPAL (#content / .mw-body)
   ========================================================= */
   ========================================================= */
#content, .mw-body {
#content, .mw-body {
Línea 201: Línea 164:
box-shadow: 0 8px 30px rgba(30, 20, 5, 0.35);
box-shadow: 0 8px 30px rgba(30, 20, 5, 0.35);
padding: 2em 2.4em;
padding: 2em 2.4em;
/* No tocar margin-left aquí: rompe el cálculo de columnas con la sidebar */
margin-left: 11.2em; /* Hueco exacto para que no toque la sidebar de 10em */
margin-right: 1em;
margin-top: -1px;
}
}


/* Encabezados */
/* Encabezados dentro del artículo */
h1, h2, h3, h4, .firstHeading {
h1, h2, h3, h4, .firstHeading {
font-family: 'Cinzel', serif;
font-family: 'Cinzel', serif;
Línea 224: Línea 189:
}
}


/* Enlaces */
/* Enlaces internos del artículo */
#content a, .mw-body a {
#content a, .mw-body a {
color: var(--wine);
color: var(--wine);
Línea 236: Línea 201:
}
}


/* Enlaces a páginas no creadas */
#content a.new, .mw-body a.new {
#content a.new, .mw-body a.new {
color: #9c2727;
color: #9c2727;
border-bottom-color: rgba(156, 39, 39, 0.4);
border-bottom-color: rgba(156, 39, 39, 0.4);
}
/* Cajas de código preformateadas (como la de MediaWiki:Common.css) */
pre, code {
background-color: rgba(255, 255, 255, 0.5) !important;
border: 1px solid var(--gold) !important;
color: var(--ink) !important;
}
}



Revisión del 01:27 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');

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
	--parchment: #ede0c3;
	--parchment-dark: #d9c89e;
	--parchment-shadow: #b9a06a;
	--ink: #2e2115;
	--ink-soft: #4a3b28;
	--wine: #6e1423;
	--wine-dark: #4a0e18;
	--gold: #a6802f;
	--gold-bright: #c9a44c;
}

/* =========================================================
   FONDO 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 (#mw-head) & ENLACES DE USUARIO
   ========================================================= */
#mw-head {
	background: linear-gradient(180deg, #3a2a1a, #241a10) !important;
	border-bottom: 2px solid var(--gold) !important;
	color: var(--parchment) !important;
}

/* Enlaces de usuario arriba a la derecha (Dungeon Master, Discusión, etc.) */
#p-personal ul li a {
	color: var(--parchment-dark) !important;
	font-family: 'Cinzel', serif;
	font-size: 12px;
}
#p-personal ul li a:hover {
	color: var(--gold-bright) !important;
	text-decoration: underline;
}

/* Menú "Más" / desplegables de acciones */
.vector-menu-dropdown .vector-menu-heading {
	color: var(--parchment-dark) !important;
}

/* Buscador Vector Legacy */
#searchInput {
	background-color: var(--parchment) !important;
	color: var(--ink) !important;
	border: 1px solid var(--gold) !important;
	font-family: 'EB Garamond', serif !important;
}
#searchButton {
	background-color: var(--wine) !important;
	border: 1px solid var(--gold) !important;
}

/* =========================================================
   PESTAÑAS DE NAVEGACIÓN (PÁGINA, DISCUSIÓN, EDITAR...)
   ========================================================= */
#p-namespaces, #p-views {
	background: transparent !important;
}

/* Pestañas inactivas (fondo oscuro translúcido para que destaquen sobre la barra) */
.vectorTabs ul li {
	background: rgba(30, 20, 10, 0.6) !important;
	border: 1px solid var(--gold) !important;
	margin-right: 2px;
	border-bottom: none !important;
}
.vectorTabs ul li a {
	color: var(--parchment-dark) !important;
	font-family: 'Cinzel', serif;
	font-size: 12px;
}

/* Pestaña activa (se funde con el pergamino del contenido) */
.vectorTabs ul li.selected {
	background: var(--parchment) !important;
	border-top: 2px solid var(--wine) !important;
	border-left: 1px solid var(--gold) !important;
	border-right: 1px solid var(--gold) !important;
	border-bottom: 1px solid var(--parchment) !important;
}
.vectorTabs ul li.selected a {
	color: var(--wine-dark) !important;
	font-weight: 700;
}

/* =========================================================
   SIDEBAR (#mw-panel) — DEL MISMO COLOR QUE EL HEADER
   ========================================================= */
#mw-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 10em;
	min-height: 100vh;
	height: 100%;
	background: linear-gradient(180deg, #3a2a1a, #241a10) !important;
	border-right: 2px solid var(--gold) !important;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.35);
	padding-top: 160px; /* Deja hueco para el logo */
}

/* Eliminar fondos grises nativos de MediaWiki en la sidebar */
#mw-panel .portal,
#mw-panel .portal .body {
	background: transparent !important;
	background-image: none !important;
}

/* Títulos de sección (NAVEGACIÓN, HERRAMIENTAS, etc.) */
#mw-panel .portal h3 {
	color: var(--gold-bright) !important;
	font-family: 'Cinzel', serif !important;
	font-weight: 700 !important;
	font-size: 0.85em !important;
	letter-spacing: 1px;
	border-bottom: 1px solid var(--gold);
	padding: 0.25em 0;
	margin: 0.8em 0.5em 0.4em 0.5em;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Enlaces de la barra lateral (claros para fondo oscuro) */
#mw-panel .portal .body li a {
	color: var(--parchment) !important;
	font-family: 'EB Garamond', serif !important;
	font-size: 15px !important;
	line-height: 1.4;
	border-bottom: none !important;
	padding: 2px 0;
	display: block;
}

#mw-panel .portal .body li a:hover {
	color: var(--gold-bright) !important;
	text-decoration: underline;
}

/* =========================================================
   CUERPO PRINCIPAL (#content / .mw-body)
   ========================================================= */
#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;
	margin-left: 11.2em; /* Hueco exacto para que no toque la sidebar de 10em */
	margin-right: 1em;
	margin-top: -1px;
}

/* Encabezados dentro del artículo */
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 internos del artículo */
#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);
}

/* Enlaces a páginas no creadas */
#content a.new, .mw-body a.new {
	color: #9c2727;
	border-bottom-color: rgba(156, 39, 39, 0.4);
}

/* Cajas de código preformateadas (como la de MediaWiki:Common.css) */
pre, code {
	background-color: rgba(255, 255, 255, 0.5) !important;
	border: 1px solid var(--gold) !important;
	color: var(--ink) !important;
}

/* 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); }