Talk:Codex/Migrating from MediaWiki UI
Add topicAppearance
Latest comment: 10 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)
- See phab:T346469. —Tacsipacsi (talk) 00:20, 14 November 2023 (UTC)
- Oh, thanks :) Iniquity (talk) 02:19, 14 November 2023 (UTC)
- 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)
- 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)
- You can load either
load.php?modules=@wikimedia/codex&only=styles
orload.php?modules=codex-styles&only=styles
usingmw.loader.load
. - I'm using Google Translate. Funa-enpitu (talk) 10:27, 19 January 2024 (UTC)