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
 
(66 intermediate revisions by the same user not shown)
Line 1: Line 1:
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Abhaya+Libre:wght@400;700&family=Newsreader:wght@400;700&family=Garamond:wght@400&family=Commissioner:wght@400;700&display=swap');
/* <pre><nowiki> */


/* General */
/* Tolkien Gateway theme */
body {
 
    background-color: #18181e; /* Fondo oscuro */
/* Import fonts from Google Fonts: EB Garamond, Lora */
    font-family: "Newsreader", serif; /* Fuente principal para el cuerpo */
@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');
    font-size: 1.1em;
 
    color: #ffffff;
/*
    line-height: 1.7; /* Mejor legibilidad */
* 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');
}
}


/* Letra capital al inicio del artículo */
/* CSS variables */
.mw-body-content p:first-of-type::first-letter {
:root {
    font-size: 3em; /* Tamaño mayor */
/* Border */
    font-family: "Garamond", serif; /* Fuente elegante */
/* Border color */
    font-weight: 700; /* Negrita */
--tg-border-color-base: rgba(0, 0, 0, 0.08);
    float: left; /* Flota la letra a la izquierda */
--tg-border-color-subtle: rgba(0, 0, 0, 0.05);
    line-height: 1; /* Ajuste para alineación */
--tg-border-color-interactive: rgba(0, 0, 0, 0.11);
    margin-right: 10px; /* Espaciado con el texto */
/* Border radius */
    color: #f5ed56; /* Amarillo para destacar */
--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);
}
}


/* Títulos */
html {
#firstHeading {
/* Force serif fonts to format number on the same line */
    font-family: "Garamond", serif;
font-variant-numeric: lining-nums;
    font-size: 2.5em;
    text-decoration: none;
}
}


h2 {
/* Blockquote */
    font-family: "EB Garamond", serif;
blockquote {
    font-size: 1.8em;
padding-left: 1rem;
    font-weight: 700;
border-left: 2px solid var(--tg-border-color-base);
    margin-bottom: 10px;
font-style: italic;
    padding-bottom: 5px;
/* Fallback for non-Chromium browsers */
    border-bottom: 2px solid #f5ed56; /* Línea amarilla */
text-wrap: balance;
/* Only works on Chromium browsers */
text-wrap: pretty;
}
}


h3, h4, h5 {
blockquote cite {
    font-family: "Abhaya Libre", serif;
color: var(--tg-color-subtle);
    font-weight: 700;
font-size: var(--tg-font-size-x-small);
font-style: normal;
}
}


h6 {
blockquote cite::before {
    font-family: "Commissioner", sans-serif;
content: '―';
    font-size: 1.2em;
margin-right: 0.5em;
    font-weight: 700;
    margin-top: 15px;
}
}


/* Enlaces */
blockquote > p:first-child::before {
a {
content: open-quote;
    color: inherit; /* Mantiene el color del texto */
    text-decoration: underline 3px #f5ed56; /* Subrayado grueso amarillo */
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
}


a:visited {
/* <cite> is wrapped in the last <p> */
    text-decoration-color: #0078d7; /* Subrayado azul oscuro en enlaces visitados */
blockquote:has(cite) > p:nth-last-child(2)::after,
blockquote:not(:has(cite)) > p:last-child::after {
content: close-quote;
}
}


a:active {
/* LINKS */
    color: #0078d7; /* Azul oscuro elegante al hacer clic */
a {
    text-decoration-color: #0078d7;
/*color: var(--tg-color-link);*/
}
}


a:hover {
.underlinelink a {
    color: #ffffff; /* Mantiene el color blanco al pasar el cursor */
text-decoration: underline !important;
    text-decoration-color: #f5ed56; /* Subrayado amarillo */
}
.nounderlinelink a {
text-decoration: none !important;
}
.nounderlinelink a:hover {
text-decoration: underline !important;
}
}


a::before {
/* SEQUENCE TEMPLATE */
    content: "";
 
    position: absolute;
td.seqwhite a {
    bottom: 0;
color: #ffffff !important;
    left: 0;
}
    width: 0;
td.seqwhite div span a {
    height: 100%;
color: #ffffff !important;
    background-color: #f5ed56;
}
    z-index: -1;
td.seqcream a {
    transition: width 0.4s ease;
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;
}
}


a:hover::before {
/* REFERENCES TEMPLATE */
    width: 100%; /* Fondo amarillo dinámico */
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;
}
}


/* Quitar subrayados en enlaces dentro de títulos */
/* Infobox customizations so they scale for desktop and mobile appropriately */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
@media only screen and (max-width: 600px) {
    text-decoration: none;
.tginfobox {
min-width: 100%;
}
}
}


/* Texto seleccionado */
@media only screen and (min-width: 601px) {
::selection {
.tginfobox {
    background-color: #f5ed56; /* Fondo amarillo */
width: 275px;
    color: #18181e; /* Texto oscuro */
}
}
}


/* Citas */
@media screen and (max-width: 600px) {
blockquote {
.spotify,
    font-family: "Newsreader", serif;
.template-month {
    font-size: 1em;
float: center;
    color: #dcdcdc;
margin-left: 10px;
    border-left: 5px solid #f5ed56; /* Línea amarilla más visible */
}
    padding: 10px 20px; /* Espaciado interior */
    margin: 20px 25px; /* Espaciado externo */
    line-height: 1.8;
    background: #202020; /* Fondo ligeramente oscuro */
    border-radius: 4px; /* Bordes ligeramente redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra sutil */
}
}


blockquote p {
.pi-type-film .pi-secondary-background {
    margin: 0; /* Sin márgenes extra */
background: rgb(238, 249, 238);
    font-style: italic; /* Texto en cursiva para estilo clásico de cita */
background: linear-gradient(
90deg,
rgba(238, 249, 238, 1) 0%,
rgba(171, 194, 171, 1) 35%,
rgba(114, 139, 114, 1) 100%
);
}
}


/* Botón flotante "Volver al inicio" */
.pi-data {
#backToTop {
display: flex;
    position: fixed;
align-items: center;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f5ed56;
    color: #090a0a;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
}


#backToTop.show {
.spotify {
    opacity: 1;
float: right;
    visibility: visible;
width: 300px;
height: 100px;
}
}


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


/* Barra de progreso de lectura */
/* Print styles */
.reading-progress-bar-container {
@media print {
    position: fixed;
:root {
    top: 0;
/* Border */
    left: 0;
/* Border color */
    width: 100%;
--tg-border-color-base: #aaa !important;
    height: 5px;
--tg-border-color-subtle: #ddd !important;
    background-color: #f0f0f0;
--tg-border-color-interactive: #000 !important;
    z-index: 1000;
/* 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;
}
}
}


.reading-progress-bar {
/* Limit FloatingUI content width */
    height: 100%;
.ext-floatingui-floating-content {
    width: 0;
max-width: 50ch;
    background-color: #0078d7; /* Azul para el progreso */
padding: 12px;
    transition: width 0.2s ease-out;
}
}
/* </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> */