Talk:Codex/Migrating from MediaWiki UI

Add topic
From mediawiki.org
Latest comment: 3 months ago by Funa-enpitu in topic Codex classes for wikis

Codex classes for wikis[edit]

Hello! Will it be possible to use new classes within the wiki itself? For templates and modules.

<button class="cdx-button">
Click me
</button>

The current code currently does not work as it should, and not all styles are linked for span tag. Iniquity (talk) 22:57, 13 November 2023 (UTC)Reply

See phab:T346469. —Tacsipacsi (talk) 00:20, 14 November 2023 (UTC)Reply
Oh, thanks :) Iniquity (talk) 02:19, 14 November 2023 (UTC)Reply
One more question. What is the right way to use Codex CSS in gadgets? For shadows, for example: https://doc.wikimedia.org/codex/latest/design-tokens/box-shadow.html Iniquity (talk) 19:50, 15 January 2024 (UTC)Reply
This question bothers me too. (Along with starting to use Codex in JS, but there is so far no such opportunity AFAIU.) JWBTH (talk) 22:00, 18 January 2024 (UTC)Reply
You can load either load.php?modules=@wikimedia/codex&only=styles or load.php?modules=codex-styles&only=styles using mw.loader.load.
I'm using Google Translate. Funa-enpitu (talk) 10:27, 19 January 2024 (UTC)Reply