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'); | ||
/* ========================================================= | /* ========================================================= | ||
VARIABLES | VARIABLES | ||
========================================================= */ | ========================================================= */ | ||
:root { | :root { | ||
| Línea 16: | Línea 14: | ||
--gold: #a6802f; | --gold: #a6802f; | ||
--gold-bright: #c9a44c; | --gold-bright: #c9a44c; | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
BASE | FONDO BASE | ||
========================================================= */ | ========================================================= */ | ||
body { | body { | ||
| Línea 43: | Línea 32: | ||
/* ========================================================= | /* ========================================================= | ||
CABECERA SUPERIOR | CABECERA SUPERIOR (#mw-head) & ENLACES DE USUARIO | ||
========================================================= */ | ========================================================= */ | ||
#mw-head { | |||
#mw-head | |||
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 | /* 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(-- | 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 */ | /* Buscador Vector Legacy */ | ||
#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 { | |||
background-color: var(--wine) !important; | background-color: var(--wine) !important; | ||
border | border: 1px solid var(--gold) !important; | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
PESTAÑAS DE NAVEGACIÓN (PÁGINA, DISCUSIÓN, EDITAR...) | |||
========================================================= */ | ========================================================= */ | ||
#p-namespaces, #p-views { | |||
# | |||
background: transparent !important; | 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; | |||
background: | margin-right: 2px; | ||
border: | 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; | color: var(--wine-dark) !important; | ||
font-weight: 700; | 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, | ||
background: | #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; | |||
border-bottom: 1px solid var(-- | 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(-- | color: var(--parchment) !important; | ||
font-family: ' | font-family: 'EB Garamond', serif !important; | ||
font-size: 0 | 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(-- | color: var(--gold-bright) !important; | ||
text-decoration: underline; | |||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
CUERPO PRINCIPAL | 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; | ||
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); }