Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<link href="https://fonts.googleapis.com/css2?family=Newsreader:wght@400;700&family=Libre+Baskerville:wght@400;700&family=EB+Garamond:wght@400;700&family=Ysabeau+Infant:wght@400;700&family=Crimson+Pro:wght@400;700&display=swap" rel="stylesheet">
/* <pre><nowiki> */


/* --- Estilo General del Sitio --- */
/* Tolkien Gateway theme */
body {
 
  font-family: 'Newsreader', serif; /* Fuente para el texto principal */
/* Import fonts from Google Fonts: EB Garamond, Lora */
  background-color: #18181e; /* Fondo oscuro */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
  color: #ffffff; /* Texto blanco */
 
  line-height: 1.3; /* Espaciado cómodo */
/*
  margin: 0;
* Use customized system fonts as fallback for font stack
  padding: 0;
* Needed to avoid layout shift
*/
@font-face {
font-family: 'EB Garamond-fallback';
size-adjust: 94.29999999999998%;
ascent-override: 101%;
descent-override: 36.40000000000171%;
src: local('Times New Roman');
}
 
@font-face {
font-family: 'Lora-fallback';
size-adjust: 105.20000000000005%;
ascent-override: 92%;
descent-override: 32.60000000000166%;
src: local('Georgia');
}
 
/* CSS variables */
:root {
/* Border */
/* Border color */
--tg-border-color-base: rgba(0, 0, 0, 0.08);
--tg-border-color-subtle: rgba(0, 0, 0, 0.05);
--tg-border-color-interactive: rgba(0, 0, 0, 0.11);
/* Border radius */
--tg-border-radius-sharp: 0;
--tg-border-radius-small: 4px;
--tg-border-radius-medium: 8px;
--tg-border-radius-large: 12px;
--tg-border-radius-pill: 9999px;
--tg-border-radius-circle: 50%;
/* Shorthand */
--tg-border-base: 1px solid var(--tg-border-color-base);
 
/* Color */
/* Text color */
--tg-color-emphasized: #1a1f15;
--tg-color-base: #2a3025;
--tg-color-subtle: #4e5a42;
--tg-color-inverted-progressive: #fff;
--tg-color-link: #36c;
/* Background color */
--tg-color-surface-0: #f9f4ee;
--tg-color-surface-1: #fffbf6;
--tg-color-surface-2: #f6ede0;
--tg-color-surface-3: #f0e3cf;
--tg-color-surface-4: #e6d9c5;
--tg-color-surface-5: #e3d2b8;
/* Progressive color */
--tg-color-progressive: #507b07;
--tg-color-progressive--hover: #588418;
--tg-color-progressive--active: #4a710a;
 
/* Font */
/* Font family */
--tg-font-family-heading: 'EB Garamond', 'EB Garamond-fallback', serif;
--tg-font-family-body: 'Lora', 'Lora-fallback', serif;
/* Font size */
--tg-font-size-x-small: 0.8125rem;
--tg-font-size-small: 0.875rem;
--tg-font-size-medium: 1rem;
--tg-font-size-large: 1.125rem;
--tg-font-size-x-large: 1.25rem;
--tg-font-size-xx-large: 1.5rem;
--tg-font-size-xxx-large: 2rem;
/* Font weight */
--tg-font-weight-regular: 400;
--tg-font-weight-medium: 500;
--tg-font-weight-semibold: 600;
/* Line height */
--tg-line-height-xxx-small: 1.25;
--tg-line-height-xx-small: 1.375;
--tg-line-height: 1.6;
 
/* Opacity */
--tg-opacity-pattern: 0.08;
 
/* Codex token backport */
/* Quiet color */
--background-color-button-quiet--hover: rgba(0, 0, 0, 0.07);
--background-color-button-quiet--active: rgba(0, 0, 0, 0.09);
}
 
html {
/* Force serif fonts to format number on the same line */
font-variant-numeric: lining-nums;
}
}


/* --- Contenido Principal --- */
/* Blockquote */
.mw-parser-output {
blockquote {
  font-family: 'Newsreader', serif; /* Fuente principal */
padding-left: 1rem;
  color: #ffffff; /* Color blanco */
border-left: 2px solid var(--tg-border-color-base);
  font-size: 1rem; /* Tamaño estándar */
font-style: italic;
  line-height: 1.3; /* Espaciado cómodo entre líneas */
/* Fallback for non-Chromium browsers */
  margin: 0 10%; /* Márgenes laterales para centrar contenido */
text-wrap: balance;
/* Only works on Chromium browsers */
text-wrap: pretty;
}
}


/* --- Título Principal del Artículo --- */
blockquote cite {
#content h1.firstHeading {
color: var(--tg-color-subtle);
  font-family: 'Libre Baskerville', serif; /* Fuente elegante */
font-size: var(--tg-font-size-x-small);
  font-size: 2.5rem; /* Tamaño destacado */
font-style: normal;
  font-weight: normal; /* Sin negrita */
  color: #ffffff;
  text-align: center; /* Centrar el título */
  margin-top: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffffff; /* Línea decorativa */
  padding-bottom: 10px;
}
}


/* --- Encabezados Secundarios --- */
blockquote cite::before {
.mw-parser-output h2 {
content: '';
  font-family: 'EB Garamond', serif;
margin-right: 0.5em;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 10px;
}
}


.mw-parser-output h3 {
blockquote > p:first-child::before {
  font-family: 'Ysabeau Infant', serif;
content: open-quote;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 20px;
}
}


/* --- Letra Capital al Inicio del Artículo --- */
/* <cite> is wrapped in the last <p> */
.mw-parser-output > p:first-of-type::first-letter {
blockquote:has(cite) > p:nth-last-child(2)::after,
  font-size: 3rem;
blockquote:not(:has(cite)) > p:last-child::after {
  font-family: 'Libre Baskerville', serif;
content: close-quote;
  font-weight: bold;
  color: #ffffff;
  float: left;
  line-height: 1;
  margin-right: 10px;
  margin-top: 5px;
}
}


/* --- Hipervínculos en Artículos --- */
/* LINKS */
.mw-parser-output a {
a {
  text-decoration: none; /* Sin subrayado por defecto */
/*color: var(--tg-color-link);*/
  color: #ffffff; /* Blanco como el texto normal */
  position: relative;
  border-bottom: 4px solid rgba(255, 255, 0, 0.8); /* Subrayado amarillo sutil */
  padding-bottom: 2px; /* Ajusta la proximidad del subrayado */
  transition: all 0.3s ease-in-out; /* Transición suave para el cambio */
}
}


.mw-parser-output a:hover {
.underlinelink a {
  color: #18181e; /* El texto se vuelve negro al pasar el mouse */
text-decoration: underline !important;
}
.nounderlinelink a {
text-decoration: none !important;
}
}
.nounderlinelink a:hover {
text-decoration: underline !important;
}
/* SEQUENCE TEMPLATE */


.mw-parser-output a::after {
td.seqwhite a {
  content: ''; /* Sin contenido por defecto */
color: #ffffff !important;
  position: absolute;
}
  width: 0; /* Inicialmente no se ve */
td.seqwhite div span a {
  height: 100%; /* Cubre toda la altura del texto */
color: #ffffff !important;
  background: yellow; /* Subrayado amarillo */
}
  bottom: 0;
td.seqcream a {
  left: 0;
color: #fffdd0 !important;
  z-index: -1; /* Lo coloca detrás del texto */
}
  transition: width 0.4s ease-in-out; /* Transición para el efecto */
td.seqcream div span a {
color: #fffdd0 !important;
}
td.seqgrey a {
color: #2a2a2a !important;
}
td.seqgrey div span a {
color: #2a2a2a !important;
}
}


.mw-parser-output a:hover::after {
/* REFERENCES TEMPLATE */
  width: 100%; /* Al pasar el mouse, se extiende el subrayado */
ol.references {
font-size: var(--tg-font-size-x-small);
margin-top: 0px;
padding-top: 0px;
}
.references-small {
font-size: 0.75rem;
}
ol.references > li:target {
background-color: #ddeeff;
}
sup.reference:target {
background-color: #ddeeff;
}
}


/* --- Listas --- */
/* Infobox customizations so they scale for desktop and mobile appropriately */
.mw-parser-output ul,
@media only screen and (max-width: 600px) {
.mw-parser-output ol {
.tginfobox {
  margin-left: 20px;
min-width: 100%;
}
}
}


.mw-parser-output li {
@media only screen and (min-width: 601px) {
  line-height: 1.8;
.tginfobox {
width: 275px;
}
}
}


/* --- Tablas --- */
@media screen and (max-width: 600px) {
.mw-parser-output table {
.spotify,
  border-collapse: collapse;
.template-month {
  width: 100%;
float: center;
  color: #ffffff;
margin-left: 10px;
  margin: 20px 0;
}
}
}


.mw-parser-output th,
.pi-type-film .pi-secondary-background {
.mw-parser-output td {
background: rgb(238, 249, 238);
  border: 1px solid #ffffff;
background: linear-gradient(
  padding: 10px;
90deg,
  text-align: left;
rgba(238, 249, 238, 1) 0%,
rgba(171, 194, 171, 1) 35%,
rgba(114, 139, 114, 1) 100%
);
}
}


/* --- Descripciones de Imágenes --- */
.pi-data {
.mw-parser-output .thumbcaption {
display: flex;
  font-family: 'Ysabeau Infant', serif;
align-items: center;
  font-size: 0.875rem;
  color: #ffffff;
  text-align: center;
  margin-top: 5px;
}
}


/* --- Referencias y Notas --- */
.spotify {
.mw-parser-output sup {
float: right;
  font-family: 'Crimson Pro', serif;
width: 300px;
  font-size: 0.75rem;
height: 100px;
  color: #ffcc00;
}
}


.mw-parser-output sup a {
@media screen and (max-width: 850px) {
  text-decoration: none;
#p-logo-text {
  color: #ffcc00;
/* Tighten the logo a bit more to the left on mobile devices to prevent overlapping */
left: 3em;
}
}
}


/* --- Botones (si aplica) --- */
/* Print styles */
button, input[type="button"] {
@media print {
  font-family: 'Newsreader', serif;
:root {
  background-color: #ffcc00;
/* Border */
  color: #18181e;
/* Border color */
  border: none;
--tg-border-color-base: #aaa !important;
  padding: 10px 20px;
--tg-border-color-subtle: #ddd !important;
  cursor: pointer;
--tg-border-color-interactive: #000 !important;
  transition: background-color 0.3s ease;
/* Color */
/* Text color */
--tg-color-emphasized: #000 !important;
--tg-color-base: #222 !important;
--tg-color-subtle: #444 !important;
/* Background color */
--tg-color-surface-0: #fff !important;
--tg-color-surface-1: #fff !important;
--tg-color-surface-2: #fff !important;
--tg-color-surface-3: #fff !important;
--tg-color-surface-4: #fff !important;
--tg-color-surface-5: #fff !important;
/* Progressive color */
--tg-color-progressive: #000 !important;
}
}
}


button:hover, input[type="button"]:hover {
/* Limit FloatingUI content width */
  background-color: #ffffff;
.ext-floatingui-floating-content {
  color: #18181e;
max-width: 50ch;
padding: 12px;
}
}
/* </nowiki></pre> */

Latest revision as of 03:57, 29 March 2025

/* <pre><nowiki> */

/* Tolkien Gateway theme */

/* Import fonts from Google Fonts: EB Garamond, Lora */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/*
 * Use customized system fonts as fallback for font stack
 * Needed to avoid layout shift
 */
@font-face {
	font-family: 'EB Garamond-fallback';
	size-adjust: 94.29999999999998%;
	ascent-override: 101%;
	descent-override: 36.40000000000171%;
	src: local('Times New Roman');
}

@font-face {
	font-family: 'Lora-fallback';
	size-adjust: 105.20000000000005%;
	ascent-override: 92%;
	descent-override: 32.60000000000166%;
	src: local('Georgia');
}

/* CSS variables */
:root {
	/* Border */
	/* Border color */
	--tg-border-color-base: rgba(0, 0, 0, 0.08);
	--tg-border-color-subtle: rgba(0, 0, 0, 0.05);
	--tg-border-color-interactive: rgba(0, 0, 0, 0.11);
	/* Border radius */
	--tg-border-radius-sharp: 0;
	--tg-border-radius-small: 4px;
	--tg-border-radius-medium: 8px;
	--tg-border-radius-large: 12px;
	--tg-border-radius-pill: 9999px;
	--tg-border-radius-circle: 50%;
	/* Shorthand */
	--tg-border-base: 1px solid var(--tg-border-color-base);

	/* Color */
	/* Text color */
	--tg-color-emphasized: #1a1f15;
	--tg-color-base: #2a3025;
	--tg-color-subtle: #4e5a42;
	--tg-color-inverted-progressive: #fff;
	--tg-color-link: #36c;
	/* Background color */
	--tg-color-surface-0: #f9f4ee;
	--tg-color-surface-1: #fffbf6;
	--tg-color-surface-2: #f6ede0;
	--tg-color-surface-3: #f0e3cf;
	--tg-color-surface-4: #e6d9c5;
	--tg-color-surface-5: #e3d2b8;
	/* Progressive color */
	--tg-color-progressive: #507b07;
	--tg-color-progressive--hover: #588418;
	--tg-color-progressive--active: #4a710a;

	/* Font */
	/* Font family */
	--tg-font-family-heading: 'EB Garamond', 'EB Garamond-fallback', serif;
	--tg-font-family-body: 'Lora', 'Lora-fallback', serif;
	/* Font size */
	--tg-font-size-x-small: 0.8125rem;
	--tg-font-size-small: 0.875rem;
	--tg-font-size-medium: 1rem;
	--tg-font-size-large: 1.125rem;
	--tg-font-size-x-large: 1.25rem;
	--tg-font-size-xx-large: 1.5rem;
	--tg-font-size-xxx-large: 2rem;
	/* Font weight */
	--tg-font-weight-regular: 400;
	--tg-font-weight-medium: 500;
	--tg-font-weight-semibold: 600;
	/* Line height */
	--tg-line-height-xxx-small: 1.25;
	--tg-line-height-xx-small: 1.375;
	--tg-line-height: 1.6;

	/* Opacity */
	--tg-opacity-pattern: 0.08;

	/* Codex token backport */
	/* Quiet color */
	--background-color-button-quiet--hover: rgba(0, 0, 0, 0.07);
	--background-color-button-quiet--active: rgba(0, 0, 0, 0.09);
}

html {
	/* Force serif fonts to format number on the same line */
	font-variant-numeric: lining-nums;
}

/* Blockquote */
blockquote {
	padding-left: 1rem;
	border-left: 2px solid var(--tg-border-color-base);
	font-style: italic;
	/* Fallback for non-Chromium browsers */
	text-wrap: balance;
	/* Only works on Chromium browsers */
	text-wrap: pretty;
}

blockquote cite {
	color: var(--tg-color-subtle);
	font-size: var(--tg-font-size-x-small);
	font-style: normal;
}

blockquote cite::before {
	content: '―';
	margin-right: 0.5em;
}

blockquote > p:first-child::before {
	content: open-quote;
}

/* <cite> is wrapped in the last <p> */
blockquote:has(cite) > p:nth-last-child(2)::after,
blockquote:not(:has(cite)) > p:last-child::after {
	content: close-quote;
}

/* LINKS */
a {
	/*color: var(--tg-color-link);*/
}

.underlinelink a {
	text-decoration: underline !important;
}
.nounderlinelink a {
	text-decoration: none !important;
}
.nounderlinelink a:hover {
	text-decoration: underline !important;
}

/* SEQUENCE TEMPLATE */

td.seqwhite a {
	color: #ffffff !important;
}
td.seqwhite div span a {
	color: #ffffff !important;
}
td.seqcream a {
	color: #fffdd0 !important;
}
td.seqcream div span a {
	color: #fffdd0 !important;
}
td.seqgrey a {
	color: #2a2a2a !important;
}
td.seqgrey div span a {
	color: #2a2a2a !important;
}

/* REFERENCES TEMPLATE */
ol.references {
	font-size: var(--tg-font-size-x-small);
	margin-top: 0px;
	padding-top: 0px;
}
.references-small {
	font-size: 0.75rem;
}
ol.references > li:target {
	background-color: #ddeeff;
}
sup.reference:target {
	background-color: #ddeeff;
}

/* Infobox customizations so they scale for desktop and mobile appropriately */
@media only screen and (max-width: 600px) {
	.tginfobox {
		min-width: 100%;
	}
}

@media only screen and (min-width: 601px) {
	.tginfobox {
		width: 275px;
	}
}

@media screen and (max-width: 600px) {
	.spotify,
	.template-month {
		float: center;
		margin-left: 10px;
	}
}

.pi-type-film .pi-secondary-background {
	background: rgb(238, 249, 238);
	background: linear-gradient(
		90deg,
		rgba(238, 249, 238, 1) 0%,
		rgba(171, 194, 171, 1) 35%,
		rgba(114, 139, 114, 1) 100%
	);
}

.pi-data {
	display: flex;
	align-items: center;
}

.spotify {
	float: right;
	width: 300px;
	height: 100px;
}

@media screen and (max-width: 850px) {
	#p-logo-text {
		/* Tighten the logo a bit more to the left on mobile devices to prevent overlapping */
		left: 3em;
	}
}

/* Print styles */
@media print {
	:root {
		/* Border */
		/* Border color */
		--tg-border-color-base: #aaa !important;
		--tg-border-color-subtle: #ddd !important;
		--tg-border-color-interactive: #000 !important;
		/* Color */
		/* Text color */
		--tg-color-emphasized: #000 !important;
		--tg-color-base: #222 !important;
		--tg-color-subtle: #444 !important;
		/* Background color */
		--tg-color-surface-0: #fff !important;
		--tg-color-surface-1: #fff !important;
		--tg-color-surface-2: #fff !important;
		--tg-color-surface-3: #fff !important;
		--tg-color-surface-4: #fff !important;
		--tg-color-surface-5: #fff !important;
		/* Progressive color */
		--tg-color-progressive: #000 !important;
	}
}

/* Limit FloatingUI content width */
.ext-floatingui-floating-content {
	max-width: 50ch;
	padding: 12px;
}

/* </nowiki></pre> */