mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 03:34:25 +00:00
styles: Remove references to WikimediaUI Base and use skin variables
Removing all references to WikimediaUI Base and replacing them with the Codex equivalents. Also removing variables redefinitions that are not needed anymore. Only value difference is a last family added before general fallback called 'Source Serif Pro', which basically will never be visible due to the general availability of Georgia and Times. Also removing general font stack comments, see Codex design tokens comments for these context explanations. Bug: T334934 Change-Id: I61aa44e40830ffdb308aaea4ca30af0f25ba2274
This commit is contained in:
parent
ce5c5dba93
commit
eb8f186a79
|
@ -28,21 +28,10 @@
|
|||
//
|
||||
// == Typography ==
|
||||
//
|
||||
// Typography in Wikimedia Design Style Guide:;
|
||||
// https://design.wikimedia.org/style-guide/visual-style_typography.html
|
||||
// Historic overview and background information of fonts in Wikimedia software:
|
||||
// https://www.mediawiki.org/wiki/Wikimedia_User_Interface/Use_cases/Font_family_stack
|
||||
// Source of this font stack definition in WikimediaUI Base:
|
||||
// https://phabricator.wikimedia.org/source/wikimedia-ui-base/browse/master/wikimedia-ui-base.less$202
|
||||
@font-family-serif: 'Linux Libertine', 'Georgia', 'Times', serif;
|
||||
|
||||
// Body content uses the user setting in browser / operating system default sans-serif font:
|
||||
// For example, Arial on Windows, Roboto on Android.
|
||||
// FIXME: Use WikimediaUI Base's OS specific default sans-serif fonts.
|
||||
// @font-family-sans is set in mediawiki.variables/variables.less
|
||||
|
||||
// Fallback for headings, language: ja,he,ko. See T73240, T65817, T65843, T65844, T65827.
|
||||
@font-family-sans--fallback: sans-serif;
|
||||
// Font family stack is defined in Codex “WikimediaUI“ theme, available
|
||||
// through 'mediawiki.less/mediawiki.skin.variables.less' in MediaWiki core:
|
||||
// https://gerrit.wikimedia.org/r/plugins/gitiles/design/codex/+/refs/heads/main/packages/codex-design-tokens/src/theme-wikimedia-ui.json#429
|
||||
// See also Vector's 'mediawiki.skin.variables.less' overrides.
|
||||
|
||||
@font-size-base: unit( 14 / @font-size-browser, em ); // Equals `0.875em`.
|
||||
@font-size-base--trident-hack: calc( 1em ~'*' unit( @font-size-base ) );
|
||||
|
|
|
@ -28,21 +28,10 @@
|
|||
//
|
||||
// == Typography ==
|
||||
//
|
||||
// Typography in Wikimedia Design Style Guide:;
|
||||
// https://design.wikimedia.org/style-guide/visual-style_typography.html
|
||||
// Historic overview and background information of fonts in Wikimedia software:
|
||||
// https://www.mediawiki.org/wiki/Wikimedia_User_Interface/Use_cases/Font_family_stack
|
||||
// Source of this font stack definition in WikimediaUI Base:
|
||||
// https://phabricator.wikimedia.org/source/wikimedia-ui-base/browse/master/wikimedia-ui-base.less$202
|
||||
@font-family-serif: 'Linux Libertine', 'Georgia', 'Times', serif;
|
||||
|
||||
// Body content uses the user setting in browser / operating system default sans-serif font:
|
||||
// For example, Arial on Windows, Roboto on Android.
|
||||
// FIXME: Use WikimediaUI Base's OS specific default sans-serif fonts.
|
||||
// @font-family-sans is set in mediawiki.variables/variables.less
|
||||
|
||||
// Fallback for headings, language: ja,he,ko. See T73240, T65817, T65843, T65844, T65827.
|
||||
@font-family-sans--fallback: sans-serif;
|
||||
// Font family stack is defined in Codex “WikimediaUI“ theme, available
|
||||
// through 'mediawiki.less/mediawiki.skin.variables.less' in MediaWiki core:
|
||||
// https://gerrit.wikimedia.org/r/plugins/gitiles/design/codex/+/refs/heads/main/packages/codex-design-tokens/src/theme-wikimedia-ui.json#429
|
||||
// See also Vector's 'mediawiki.skin.variables.less' overrides.
|
||||
|
||||
@font-size-base--trident-hack: calc( 1em ~'*' unit( @font-size-base ) );
|
||||
@font-size-reset: @font-size-root;
|
||||
|
|
|
@ -28,21 +28,10 @@
|
|||
//
|
||||
// == Typography ==
|
||||
//
|
||||
// Typography in Wikimedia Design Style Guide:;
|
||||
// https://design.wikimedia.org/style-guide/visual-style_typography.html
|
||||
// Historic overview and background information of fonts in Wikimedia software:
|
||||
// https://www.mediawiki.org/wiki/Wikimedia_User_Interface/Use_cases/Font_family_stack
|
||||
// Source of this font stack definition in WikimediaUI Base:
|
||||
// https://phabricator.wikimedia.org/source/wikimedia-ui-base/browse/master/wikimedia-ui-base.less$202
|
||||
@font-family-serif: 'Linux Libertine', 'Georgia', 'Times', serif;
|
||||
|
||||
// Body content uses the user setting in browser / operating system default sans-serif font:
|
||||
// For example, Arial on Windows, Roboto on Android.
|
||||
// FIXME: Use WikimediaUI Base's OS specific default sans-serif fonts.
|
||||
// @font-family-sans is set in mediawiki.variables/variables.less
|
||||
|
||||
// Fallback for headings, language: ja,he,ko. See T73240, T65817, T65843, T65844, T65827.
|
||||
@font-family-sans--fallback: sans-serif;
|
||||
// Font family stack is defined in Codex “WikimediaUI“ theme, available
|
||||
// through 'mediawiki.less/mediawiki.skin.variables.less' in MediaWiki core:
|
||||
// https://gerrit.wikimedia.org/r/plugins/gitiles/design/codex/+/refs/heads/main/packages/codex-design-tokens/src/theme-wikimedia-ui.json#429
|
||||
// See also Vector's 'mediawiki.skin.variables.less' overrides.
|
||||
|
||||
@font-size-base: unit( 14 / @font-size-browser, em ); // Equals `0.875em`.
|
||||
@font-size-base--trident-hack: calc( 1em ~'*' unit( @font-size-base ) );
|
||||
|
|
Loading…
Reference in a new issue