This was not really how we envisioned to use this.
To support dismantling the targets system these definitions should
not be set.
Bug: T127268
Change-Id: Ie2fd46386e6fcda47d871d0ae950315ed423ac3b
* In Vector 2022, the link now uses the 'moon' and 'bright' icons from
the OOUI accessibility icon set
* Sync CSS from enwiki gadget
* Add tooltips to the links
* Use 'ext-darkmode-link' as the selector, per convention
* Refactor and cleanup the Hooks class
* Update JS to use ES6, since the CSS isn't supported by IE anyways
* Bump to version 0.2.0 and set MW requirement to >= 1.38.0
Change-Id: I454b0d7060818afb8c9c4635fd82e24de6de1d76
Use new hook handler system with DI, bump minimum MW version.
Other minor code tweaks.
Bump version to 0.1.0
Bug: T285171
Change-Id: Id128daf7519cfb2e781fd34672a798ff7ca4fb77
Moves "Dark mode" link to the footer to make it usable by everyone.
Adds a URL parameter that allows toggling dark mode for a specific page.
Adds a new user preference that allows toggling dark mode on all pages.
Bug: T241925
Change-Id: I12b92499f64860d921928496ee1b975e3982bb3f
This makes the extension functional. Making the dark mode preference
stick (either by cookie, localStorage or hidden preference) will be
tackled in a separate patch. The design of the toggle link is still
pending. For now it cheaply shows unicode moon and sun icons.
Note two StyleLint rules were disabled:
* no-descending-specificity - The CSS is currently organized by what the
selectors target, whether it be MediaWiki, or wiki/skin dependent.
This linter rule won't allow for this organization.
* selector-max-id - We need to target IDs to properly override some
styles that are added by MediaWiki.
Update Node dependencies
Bug: T222470
Change-Id: I665f98de4951ea92e7c5ad35a8cf9e0c63f5c8db
This includes just the basics. A link for "Dark mode" is added to the
personal toolbar, but this is not a final design, nor is it actually
functional. Actual functionality to come with a subsequent patch.
Bug: T221877
Change-Id: I89d9c17a701221c31bd6c4180dce038f1936fc06