mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
221bfd981b
I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06 provides neutral values for the Codex tokens in mediawiki.skin.defaults.less in MW core, and expects skins to import the appropriate Codex themes in their mediawiki.skin.variables.less. For MinervaNeue, import the Codex tokens for the “WikimediaUI” theme. Remove variable assignments that are now redundant because their values are the same as the Codex tokens. After importing the Codex tokens, override some of their values where necessary so that all variables' values stay the same(*). We should consider whether to remove some of these overrides in a follow-up patch, but keeping everything the same for now makes this change less disruptive. (*) As in the core change, one variable's value does change: - @max-width-breakpoint-tablet from calc(719px) to 719px This has no visual impact. Bug: T325237 Depends-On: I3a8c89d8558022077be1f32c6a6f4733b6302948 Change-Id: Iafb3c60df0de87f7ba234b5972e75d85c046c4f9
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
/**
|
|
* ###IMPORTANT:##
|
|
* If editing this file, please also edit the respective file in the Vector skin.
|
|
* ####
|
|
*
|
|
* This file is a LESS @import match for 'mediawiki.skin.variables.less'
|
|
* when MinervaNeue is the active skin.
|
|
*
|
|
* Please also note, that both current Wikimedia Design Style Guide based skins,
|
|
* MinervaNeue and Vector 2022 are using the same variable values respectively in their
|
|
* repositories.
|
|
*/
|
|
@import 'mediawiki.skin.defaults.less';
|
|
|
|
// Import the Codex design tokens from the “WikimediaUI” theme.
|
|
@import 'mediawiki.skin.codex-design-tokens/theme-wikimedia-ui.less';
|
|
|
|
// Overrides for Codex tokens:
|
|
|
|
@font-size-base: 1em; // Codex: 16px
|
|
|
|
// == Typography ==
|
|
// Body content uses the user setting in browser / the system default sans-serif font:
|
|
// Arial on Windows, Roboto on Android.
|
|
// FIXME: Use WikimediaUI Base's OS specific default sans-serif fonts.
|
|
@font-family-sans: @font-family-sans--fallback;
|
|
|
|
// Overrides for non-Codex variables:
|
|
|
|
// == Colors ==
|
|
@color-link: #36c;
|
|
@color-link--visited: #795cb2;
|
|
@color-link--active: #faa700;
|
|
// Link colors for new or missing articles, also known as “Red links”.
|
|
// https://www.wikidata.org/wiki/Q13417974#sitelinks-wikipedia
|
|
@color-link-new: #d33;
|
|
@color-link-new--visited: #a55858;
|
|
// Link colors for a power user feature to highlight links to other projects.
|
|
// In Vector 2022 we unify these colors by default for simpler orientation by average users.
|
|
// It's still possible to overwrite the styles per user.
|
|
@color-link-external: #36c;
|
|
@color-link-external--visited: #795cb2;
|
|
@color-link-external--active: #faa700;
|