Ir al contenido

MediaWiki:Common.css

De BitcoinWiki

Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.

  • Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
  • Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
  • Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
/* BitcoinWiki reader-facing home page. The content remains a normal editable
 * Main Page; this stylesheet only supplies its responsive presentation. */
.bw-homepage {
	--bw-ink: #172033;
	--bw-muted: #536075;
	--bw-blue: #2767c9;
	--bw-blue-dark: #164792;
	--bw-blue-hover: #0b2b64;
	--bw-line: #d9e1ec;
	--bw-card: #fff;
	--bw-surface: #f5f8fc;
	color: var(--bw-ink);
	margin: 1.5rem auto 0;
	max-width: 76rem;
}

/* Legacy articles contain fixed-width media. Keep the intrinsic ratio while
 * preventing images from widening the mobile document viewport. */
.mw-parser-output .mw-file-description,
.mw-parser-output .mw-file-description > span {
	display: block;
	max-width: 100%;
}

.mw-parser-output img {
	height: auto;
	max-width: 100%;
}

/* Vector's appearance menu adds this class when the reader selects Dark. */
html.skin-theme-clientpref-night .bw-homepage {
	--bw-ink: #f1f5fb;
	--bw-muted: #bcc9dc;
	--bw-blue: #86baff;
	--bw-blue-dark: #a9ccff;
	--bw-blue-hover: #d9e9ff;
	--bw-line: #5d6f88;
	--bw-card: #202b3a;
	--bw-surface: #26364d;
}

/* Automatic follows the operating system setting without affecting Light. */
@media (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .bw-homepage {
		--bw-ink: #f1f5fb;
		--bw-muted: #bcc9dc;
		--bw-blue: #86baff;
		--bw-blue-dark: #a9ccff;
		--bw-blue-hover: #d9e9ff;
		--bw-line: #5d6f88;
		--bw-card: #202b3a;
		--bw-surface: #26364d;
	}
}

.bw-homepage a {
	color: var(--bw-blue-dark);
	font-weight: 600;
	text-decoration: none;
}

.bw-homepage a:hover,
.bw-homepage a:focus {
	color: var(--bw-blue-hover);
	text-decoration: underline;
}

.bw-homepage__hero {
	align-items: center;
	background: linear-gradient(125deg, #102a55, #2767c9 68%, #4f91e7);
	border-radius: 0.75rem;
	box-sizing: border-box;
	color: #fff;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 2.5rem 2.75rem;
}

.bw-homepage__hero .bw-homepage__eyebrow,
.bw-homepage__hero .bw-homepage__lede,
.bw-homepage__hero .bw-homepage__title {
	color: #fff;
}

.bw-homepage__eyebrow {
	color: var(--bw-muted);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.45rem;
	text-transform: uppercase;
}

.bw-homepage__title {
	font-family: sans-serif;
	font-size: clamp(1.85rem, 4vw, 3rem);
	font-weight: 750;
	line-height: 1.1;
	margin: 0;
}

.bw-homepage__lede {
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 1rem 0 0;
	max-width: 44rem;
}

.bw-homepage__hero-actions {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 0.5rem;
	line-height: 2.1;
	padding: 0.75rem 1rem;
	white-space: nowrap;
}

.bw-homepage__hero-actions a {
	color: #fff;
}

.bw-homepage__feature-grid,
.bw-homepage__bottom-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1.3fr 1fr 1fr;
	margin-top: 1rem;
}

.bw-homepage__feature,
.bw-homepage__list-card,
.bw-homepage__info-card {
	border: 1px solid var(--bw-line);
	border-radius: 0.6rem;
	box-sizing: border-box;
	padding: 1.4rem;
}

.bw-homepage__feature {
	background: var(--bw-surface);
}

.bw-homepage__list-card,
.bw-homepage__info-card {
	background: var(--bw-card);
}

.bw-homepage__feature p,
.bw-homepage__info-card p {
	line-height: 1.5;
}

.bw-homepage__card-title,
.bw-homepage__section-title {
	font-family: sans-serif;
	font-size: 1.35rem;
	font-weight: 750;
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.bw-homepage__list-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bw-homepage__list-card li {
	border-top: 1px solid var(--bw-line);
	line-height: 1.4;
	padding: 0.5rem 0;
}

.bw-homepage__section-heading {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin: 2.5rem 0 1rem;
}

.bw-homepage__section-heading > a {
	padding-bottom: 0.35rem;
}

.bw-homepage__section-title {
	font-size: 1.8rem;
	margin-bottom: 0;
}

.bw-homepage__category-grid {
	margin: 0;
}

.bw-homepage__category-grid > p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0;
}

.bw-homepage__category-grid a {
	align-items: center;
	background: var(--bw-card);
	border: 1px solid var(--bw-line);
	border-radius: 0.5rem;
	box-sizing: border-box;
	display: flex;
	min-height: 2.9rem;
	padding: 0.55rem 0.8rem;
}

.bw-homepage__category-grid a:hover,
.bw-homepage__category-grid a:focus {
	background: var(--bw-surface);
	border-color: var(--bw-blue);
	text-decoration: none;
}

/* Keep the curated desktop menu balanced at seven and six items, rather than
 * leaving a sparse third line as the available content width changes. */
@media (min-width: 760px) {
	.bw-homepage__category-grid > p {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}

	.bw-homepage__category-grid a {
		justify-content: center;
		min-width: 0;
		text-align: center;
	}
}

.bw-homepage__bottom-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1000px) {
	.bw-homepage__feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bw-homepage__feature { grid-column: span 2; }
}

@media (max-width: 640px) {
	/* Keep long hashes, addresses, code, and legacy tables inside the reader
	 * column without shrinking the entire page or hiding source content. */
	.mw-parser-output { overflow-wrap: anywhere; }
	.mw-parser-output pre,
	.mw-parser-output .mw-highlight,
	.mw-parser-output table {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
	}
	.mw-parser-output table { display: block; }

	/* Sixteen-pixel controls remain readable and avoid focus zoom on mobile
	 * browsers while preserving native checkbox and radio sizing. */
	.mw-body-content input:not([type="checkbox"]):not([type="radio"]),
	.mw-body-content select,
	.mw-body-content textarea,
	.mw-body-content button {
		box-sizing: border-box;
		font-size: 1rem;
		max-width: 100%;
	}
	body.skin--responsive .mw-body-content .oo-ui-buttonElement-button {
		font-size: 1rem;
	}

	.bw-homepage { margin-top: 1rem; }
	.bw-homepage__hero { grid-template-columns: 1fr; padding: 1.75rem 1.25rem; }
	.bw-homepage__hero-actions { white-space: normal; }
	.bw-homepage__feature-grid,
	.bw-homepage__bottom-grid { grid-template-columns: 1fr; }
	.bw-homepage__feature { grid-column: auto; }
	.bw-homepage__section-heading { align-items: start; flex-direction: column; gap: 0.6rem; }
	.bw-homepage__category-grid > p { gap: 0.5rem; }
	.bw-homepage__category-grid a { min-height: 2.75rem; padding: 0.5rem 0.65rem; }
}