<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AButtonLua%2Fstyles.css</id>
	<title>Module:ButtonLua/styles.css - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AButtonLua%2Fstyles.css"/>
	<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:ButtonLua/styles.css&amp;action=history"/>
	<updated>2026-11-12T03:30:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:ButtonLua/styles.css&amp;diff=543&amp;oldid=prev</id>
		<title>starcitizen&gt;Alistar Bot: Sync from Git (4f4c2a2) (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:ButtonLua/styles.css&amp;diff=543&amp;oldid=prev"/>
		<updated>2026-09-26T01:14:51Z</updated>

		<summary type="html">&lt;p&gt;Sync from Git (4f4c2a2) (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;.t-button .cdx-icon {&lt;br /&gt;
	/*&lt;br /&gt;
	 * Render the icon as a CSS mask filled with the button&amp;#039;s text color&lt;br /&gt;
	 * (currentColor), so it matches the label and follows theme/hover. Use a&lt;br /&gt;
	 * mask rather than filter so any color works, not just black/white.&lt;br /&gt;
	 *&lt;br /&gt;
	 * HACK: stash the image-set in a custom property and consume it bare — the&lt;br /&gt;
	 * sanitizer rejects url(var()) inline but allows image-set() and bare var().&lt;br /&gt;
	 *&lt;br /&gt;
	 * This no longer needs a version pin. TemplateStylesExtender 3.0.0&lt;br /&gt;
	 * (3fe4835, 2026-08-24) lifted the a9043c4 custom-property&lt;br /&gt;
	 * external-resource ban, so image-set(var()) is supported rather than&lt;br /&gt;
	 * tolerated. The wiki&amp;#039;s enforced CSP default-src remains the guard on what&lt;br /&gt;
	 * those URLs may fetch. History:&lt;br /&gt;
	 * https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender/issues/45&lt;br /&gt;
	 */&lt;br /&gt;
	--t-button-icon-mask: image-set(var(--t-button-icon-url) 1x);&lt;br /&gt;
	mask-image: var(--t-button-icon-mask);&lt;br /&gt;
	-webkit-mask-image: var(--t-button-icon-mask);&lt;br /&gt;
	mask-size: contain;&lt;br /&gt;
	mask-repeat: no-repeat;&lt;br /&gt;
	mask-position: center;&lt;br /&gt;
	background-color: currentColor;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.t-button &amp;gt; a {&lt;br /&gt;
	/* Disable link underline for button */&lt;br /&gt;
	text-decoration: none !important;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Fix Citizen incorrect CSS override */&lt;br /&gt;
.t-button.cdx-button .cdx-icon {&lt;br /&gt;
	padding: 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.t-button.cdx-button .cdx-icon.cdx-icon--small {&lt;br /&gt;
	min-width: 14px;&lt;br /&gt;
	min-height: 14px;&lt;br /&gt;
	width: 1rem;&lt;br /&gt;
	height: 1rem;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.t-button.cdx-button .cdx-icon.cdx-icon--medium {&lt;br /&gt;
	min-width: 20px;&lt;br /&gt;
	min-height: 20px;&lt;br /&gt;
	width: 1.25rem;&lt;br /&gt;
	height: 1.25rem;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 * Branded buttons: an opt-in for buttons carrying an external site&amp;#039;s&lt;br /&gt;
 * identity. Pass class=&amp;quot;t-button--branded t-button--&amp;lt;brand&amp;gt;&amp;quot;: the brand&lt;br /&gt;
 * block declares its ground and content color, and the base, hover and&lt;br /&gt;
 * active grounds all derive from --t-button-ground via color-mix in oklch,&lt;br /&gt;
 * so every brand dims by the same perceptual step and per-brand shades&lt;br /&gt;
 * cannot drift. The mask icon above follows `color`, so it picks up the&lt;br /&gt;
 * brand content color for free. The compound selectors outweigh Codex&amp;#039;s&lt;br /&gt;
 * .cdx-button defaults.&lt;br /&gt;
 *&lt;br /&gt;
 * The sanitizer rejects color-mix() as a direct property value; the&lt;br /&gt;
 * derivations ride custom properties, which TemplateStylesExtender passes&lt;br /&gt;
 * through and the browser resolves.&lt;br /&gt;
 *&lt;br /&gt;
 * A brand ground is a fixed color in both themes, so it is declared as a&lt;br /&gt;
 * literal rather than a light-dark() token — the content color beside it is&lt;br /&gt;
 * chosen to clear WCAG AA against that one ground.&lt;br /&gt;
 */&lt;br /&gt;
.t-button--branded.cdx-button {&lt;br /&gt;
	--t-button-ground-hover: color-mix(in oklch, var(--t-button-ground) 88%, #000);&lt;br /&gt;
	--t-button-ground-active: color-mix(in oklch, var(--t-button-ground) 78%, #000);&lt;br /&gt;
	background-color: var(--t-button-ground);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.t-button--branded.cdx-button:hover {&lt;br /&gt;
	background-color: var(--t-button-ground-hover);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.t-button--branded.cdx-button:active {&lt;br /&gt;
	background-color: var(--t-button-ground-active);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Star Citizen Wiki API. */&lt;br /&gt;
.t-button--wiki-api.cdx-button {&lt;br /&gt;
	--t-button-ground: oklch(19.314% 0.037 265.754);&lt;br /&gt;
	color: oklch(84.153% 0.007 265.754);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Roberts Space Industries: the site&amp;#039;s filled call-to-action button. */&lt;br /&gt;
.t-button--rsi.cdx-button {&lt;br /&gt;
	--t-button-ground: #54adf7;&lt;br /&gt;
	color: #000;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Galactapedia, shared by the Starmap button (the mark is the Starmap&amp;#039;s&lt;br /&gt;
 * logo, so both RSI map properties share it). */&lt;br /&gt;
.t-button--galactapedia.cdx-button,&lt;br /&gt;
.t-button--starmap.cdx-button {&lt;br /&gt;
	--t-button-ground: #162535;&lt;br /&gt;
	color: #bae4f2;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* VerseGuide. */&lt;br /&gt;
.t-button--verseguide.cdx-button {&lt;br /&gt;
	--t-button-ground: #206484;&lt;br /&gt;
	color: #fff;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* SCMDB: the site&amp;#039;s own near-black ground and cyan accent. */&lt;br /&gt;
.t-button--scmdb.cdx-button {&lt;br /&gt;
	--t-button-ground: #0f1318;&lt;br /&gt;
	color: #00d4ff;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Patreon. */&lt;br /&gt;
.t-button--patreon.cdx-button {&lt;br /&gt;
	--t-button-ground: #ff424d;&lt;br /&gt;
	color: #fff;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Ko-fi. Their blue rather than their coral: the wiki&amp;#039;s own asset is&lt;br /&gt;
 * File:Kofi Logo Blue.png, and the coral would sit a hair from Patreon&amp;#039;s red&lt;br /&gt;
 * on a page that offers both side by side. */&lt;br /&gt;
.t-button--kofi.cdx-button {&lt;br /&gt;
	--t-button-ground: #29abe0;&lt;br /&gt;
	color: #fff;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Discord. */&lt;br /&gt;
.t-button--discord.cdx-button {&lt;br /&gt;
	--t-button-ground: #5865f2;&lt;br /&gt;
	color: #fff;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>starcitizen&gt;Alistar Bot</name></author>
	</entry>
</feed>