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 11: Línea 11:
--ink-soft: #4a3b28;
--ink-soft: #4a3b28;
--wine: #8e2030;
--wine: #8e2030;
--wine-bright: #b82d42;
--gold: #a6802f;
--gold: #a6802f;
--gold-bright: #c9a44c;
--gold-bright: #c9a44c;
--dark-frame: #241a10;
--dark-bg: #241a10;
--dark-frame-grad: linear-gradient(180deg, #3a2a1a, #241a10);
--dark-frame-grad: linear-gradient(180deg, #3a2a1a, #241a10);
}
}


/* =========================================================
/* =========================================================
   FONDO BASE
   FONDO GLOBAL Y CONTENEDORES BASE (ELIMINA EL BEIGE TRASERO)
   ========================================================= */
   ========================================================= */
body {
html,
background-color: var(--parchment-dark);
body,
background-image:
#mw-page-base,
radial-gradient(ellipse at 20% 0%, rgba(255,250,235,0.35), transparent 55%),
#mw-head-base {
radial-gradient(ellipse at 80% 100%, rgba(120,90,40,0.25), transparent 60%),
background-color: var(--dark-bg) !important;
linear-gradient(160deg, var(--parchment) 0%, var(--parchment-dark) 100%);
background-image: none !important;
color: var(--parchment);
color: var(--parchment);
font-family: 'EB Garamond', Georgia, serif;
font-family: 'EB Garamond', Georgia, serif;
Línea 34: Línea 33:


/* =========================================================
/* =========================================================
   CABECERA SUPERIOR (#mw-head) & MENÚS DE USUARIO
   CABECERA SUPERIOR (#mw-head) & MENÚS
   ========================================================= */
   ========================================================= */
#mw-head {
#mw-head {
Línea 46: Línea 45:
font-family: 'Cinzel', serif;
font-family: 'Cinzel', serif;
font-size: 12px;
font-size: 12px;
text-decoration: none;
}
}
#p-personal ul li a:hover {
#p-personal ul li a:hover {
color: var(--gold-bright) !important;
color: var(--gold-bright) !important;
Línea 62: Línea 63:
font-family: 'EB Garamond', serif !important;
font-family: 'EB Garamond', serif !important;
}
}
#searchButton {
#searchButton {
background-color: var(--wine) !important;
background-color: var(--wine) !important;
Línea 68: Línea 70:


/* =========================================================
/* =========================================================
   PESTAÑAS (PÁGINA, DISCUSIÓN, LEER, EDITAR...)
   PESTAÑAS DE NAVEGACIÓN
   ========================================================= */
   ========================================================= */
#left-navigation, #right-navigation {
#left-navigation, #right-navigation {
Línea 74: Línea 76:
}
}


/* Limpiar sprites PNG que trae MediaWiki por defecto */
.vectorTabs,
.vectorTabs,
.vectorTabs ul,
.vectorTabs ul,
Línea 83: Línea 84:
}
}


/* Pestañas inactivas */
.vectorTabs li {
.vectorTabs li {
background: rgba(36, 26, 16, 0.8) !important;
background: rgba(36, 26, 16, 0.8) !important;
Línea 106: Línea 106:
background: rgba(58, 42, 26, 0.9) !important;
background: rgba(58, 42, 26, 0.9) !important;
}
}
.vectorTabs li:hover a {
.vectorTabs li:hover a {
color: var(--gold-bright) !important;
color: var(--gold-bright) !important;
}
}


/* Pestaña seleccionada (activa) */
.vectorTabs li.selected {
.vectorTabs li.selected {
background: var(--dark-frame) !important;
background: var(--dark-bg) !important;
border: 1px solid var(--gold) !important;
border: 1px solid var(--gold) !important;
border-top: 3px solid var(--gold-bright) !important;
border-top: 3px solid var(--gold-bright) !important;
border-bottom: 1px solid var(--dark-frame) !important;
border-bottom: 1px solid var(--dark-bg) !important;
}
}


Línea 125: Línea 125:


/* =========================================================
/* =========================================================
   SIDEBAR (#mw-panel)
   SIDEBAR (#mw-panel) — ALINEADA A LA IZQUIERDA
   ========================================================= */
   ========================================================= */
#mw-panel {
#mw-panel {
Línea 138: Línea 138:
box-shadow: 3px 0 12px rgba(0, 0, 0, 0.45);
box-shadow: 3px 0 12px rgba(0, 0, 0, 0.45);
padding-top: 160px;
padding-top: 160px;
text-align: left !important; /* Fuerza alineación izquierda */
}
}


Línea 144: Línea 145:
background: transparent !important;
background: transparent !important;
background-image: none !important;
background-image: none !important;
text-align: left !important;
margin-left: 0 !important;
padding-left: 0.6em !important; /* Margen interior limpio */
}
#mw-panel .portal ul {
text-align: left !important;
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
}


Línea 154: Línea 165:
border-bottom: 1px solid var(--gold);
border-bottom: 1px solid var(--gold);
padding: 0.25em 0;
padding: 0.25em 0;
margin: 0.8em 0.5em 0.4em 0.5em;
margin: 0.8em 0.5em 0.4em 0;
text-align: left !important;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
#mw-panel .portal .body li {
text-align: left !important;
margin: 0 !important;
padding: 0 !important;
}
}


Línea 166: Línea 184:
padding: 3px 0;
padding: 3px 0;
display: block;
display: block;
text-align: left !important;
}
}


Línea 174: Línea 193:


/* =========================================================
/* =========================================================
   CUERPO PRINCIPAL (#content / .mw-body) — COLOR OSCURO
   CUERPO PRINCIPAL (#content / .mw-body)
   ========================================================= */
   ========================================================= */
#content, .mw-body {
#content, .mw-body {
Línea 210: Línea 229:
}
}


/* Enlaces del contenido */
/* =========================================================
#content a, .mw-body a {
  ESTILO FORZADO PARA ENLACES (<a>)
color: var(--gold-bright);
  ========================================================= */
text-decoration: none;
#content a,
border-bottom: 1px solid rgba(201, 164, 76, 0.35);
.mw-body a,
#bodyContent a,
.mw-parser-output a {
color: var(--gold-bright) !important;
text-decoration: none !important;
border-bottom: 1px solid rgba(201, 164, 76, 0.4) !important;
transition: color 0.15s ease, border-color 0.15s ease;
}
}


#content a:hover, .mw-body a:hover {
#content a:hover,
color: #fff;
.mw-body a:hover,
border-bottom-color: #fff;
#bodyContent a:hover,
.mw-parser-output a:hover {
color: #fff !important;
border-bottom-color: #fff !important;
}
}


#content a.new, .mw-body a.new {
/* Enlaces a páginas aún no creadas (rojos) */
#content a.new,
.mw-body a.new,
#bodyContent a.new,
.mw-parser-output a.new {
color: #e57373 !important;
color: #e57373 !important;
border-bottom-color: rgba(229, 115, 115, 0.4);
border-bottom-color: rgba(229, 115, 115, 0.5) !important;
}
}


/* Cajas de preformateado y código */
/* =========================================================
  TABLAS, CÓDIGO Y ELEMENTOS GENERALES
  ========================================================= */
pre, code {
pre, code {
background-color: rgba(0, 0, 0, 0.4) !important;
background-color: rgba(0, 0, 0, 0.4) !important;
Línea 234: Línea 268:
}
}


/* Tablas */
table:not(.infobox):not(.pi-background) {
table:not(.infobox):not(.pi-background) {
background-color: rgba(0, 0, 0, 0.25);
background-color: rgba(0, 0, 0, 0.25);

Revisión del 01:32 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: #8e2030;
	--gold: #a6802f;
	--gold-bright: #c9a44c;
	--dark-bg: #241a10;
	--dark-frame-grad: linear-gradient(180deg, #3a2a1a, #241a10);
}

/* =========================================================
   FONDO GLOBAL Y CONTENEDORES BASE (ELIMINA EL BEIGE TRASERO)
   ========================================================= */
html, 
body, 
#mw-page-base, 
#mw-head-base {
	background-color: var(--dark-bg) !important;
	background-image: none !important;
	color: var(--parchment);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 17px;
	line-height: 1.65;
}

/* =========================================================
   CABECERA SUPERIOR (#mw-head) & MENÚS
   ========================================================= */
#mw-head {
	background: var(--dark-frame-grad) !important;
	border-bottom: 2px solid var(--gold) !important;
	color: var(--parchment) !important;
}

#p-personal ul li a {
	color: var(--parchment-dark) !important;
	font-family: 'Cinzel', serif;
	font-size: 12px;
	text-decoration: none;
}

#p-personal ul li a:hover {
	color: var(--gold-bright) !important;
	text-decoration: underline;
}

.vector-menu-dropdown .vector-menu-heading {
	color: var(--parchment-dark) !important;
}

#searchInput {
	background-color: rgba(237, 224, 195, 0.9) !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
   ========================================================= */
#left-navigation, #right-navigation {
	margin-top: 2.5em !important;
}

.vectorTabs,
.vectorTabs ul,
.vectorTabs li,
.vectorTabs span,
.vectorTabs a {
	background-image: none !important;
}

.vectorTabs li {
	background: rgba(36, 26, 16, 0.8) !important;
	border: 1px solid var(--gold) !important;
	border-bottom: none !important;
	margin-right: 4px !important;
	border-radius: 4px 4px 0 0 !important;
	padding: 0 !important;
}

.vectorTabs li a,
.vectorTabs li a span {
	color: var(--parchment-dark) !important;
	font-family: 'Cinzel', serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	padding: 6px 12px !important;
	display: inline-block;
}

.vectorTabs li:hover {
	background: rgba(58, 42, 26, 0.9) !important;
}

.vectorTabs li:hover a {
	color: var(--gold-bright) !important;
}

.vectorTabs li.selected {
	background: var(--dark-bg) !important;
	border: 1px solid var(--gold) !important;
	border-top: 3px solid var(--gold-bright) !important;
	border-bottom: 1px solid var(--dark-bg) !important;
}

.vectorTabs li.selected a,
.vectorTabs li.selected a span {
	color: var(--gold-bright) !important;
	font-weight: 700 !important;
}

/* =========================================================
   SIDEBAR (#mw-panel) — ALINEADA A LA IZQUIERDA
   ========================================================= */
#mw-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 10em;
	min-height: 100vh;
	height: 100%;
	background: var(--dark-frame-grad) !important;
	border-right: 2px solid var(--gold) !important;
	box-shadow: 3px 0 12px rgba(0, 0, 0, 0.45);
	padding-top: 160px;
	text-align: left !important; /* Fuerza alineación izquierda */
}

#mw-panel .portal,
#mw-panel .portal .body {
	background: transparent !important;
	background-image: none !important;
	text-align: left !important;
	margin-left: 0 !important;
	padding-left: 0.6em !important; /* Margen interior limpio */
}

#mw-panel .portal ul {
	text-align: left !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#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;
	text-align: left !important;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

#mw-panel .portal .body li {
	text-align: left !important;
	margin: 0 !important;
	padding: 0 !important;
}

#mw-panel .portal .body li a {
	color: var(--parchment-dark) !important;
	font-family: 'EB Garamond', serif !important;
	font-size: 15px !important;
	line-height: 1.4;
	border-bottom: none !important;
	padding: 3px 0;
	display: block;
	text-align: left !important;
}

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

/* =========================================================
   CUERPO PRINCIPAL (#content / .mw-body)
   ========================================================= */
#content, .mw-body {
	background: var(--dark-frame-grad) !important;
	color: var(--parchment) !important;
	border: 1px solid var(--gold);
	outline: 4px double var(--gold);
	outline-offset: -8px;
	border-radius: 2px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
	padding: 2em 2.4em;
	margin-left: 11.2em;
	margin-right: 1.2em;
	margin-top: -1px;
}

/* Encabezados */
h1, h2, h3, h4, .firstHeading {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	color: var(--gold-bright) !important;
	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;
}

/* =========================================================
   ESTILO FORZADO PARA ENLACES (<a>)
   ========================================================= */
#content a,
.mw-body a,
#bodyContent a,
.mw-parser-output a {
	color: var(--gold-bright) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(201, 164, 76, 0.4) !important;
	transition: color 0.15s ease, border-color 0.15s ease;
}

#content a:hover,
.mw-body a:hover,
#bodyContent a:hover,
.mw-parser-output a:hover {
	color: #fff !important;
	border-bottom-color: #fff !important;
}

/* Enlaces a páginas aún no creadas (rojos) */
#content a.new,
.mw-body a.new,
#bodyContent a.new,
.mw-parser-output a.new {
	color: #e57373 !important;
	border-bottom-color: rgba(229, 115, 115, 0.5) !important;
}

/* =========================================================
   TABLAS, CÓDIGO Y ELEMENTOS GENERALES
   ========================================================= */
pre, code {
	background-color: rgba(0, 0, 0, 0.4) !important;
	border: 1px solid var(--gold) !important;
	color: var(--parchment) !important;
}

table:not(.infobox):not(.pi-background) {
	background-color: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--gold);
	border-collapse: collapse;
}

table:not(.infobox) th {
	background: linear-gradient(180deg, #5c4322, #3a2a15);
	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;
	color: var(--parchment);
}

blockquote {
	font-style: italic;
	color: var(--parchment-dark);
	border-left: 3px solid var(--gold-bright);
	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.5);
	font-family: 'EB Garamond', serif;
	color: var(--ink);
	width: 300px;
}

.portable-infobox .pi-title {
	background: linear-gradient(135deg, var(--wine), #4a0e18);
	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);
	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), #4a0e18); }
.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); }