Commit graph

9 commits

Author SHA1 Message Date
Jon Robson
51c6fe6167 Login page: Use Codex CSS components
Changes:
* Use Codex markup instead of mediawiki ui markup
* We limit what can be customized by the skin
* Current rules for touch area and snapping of
inputs is moved from Minerva into core so other skins
benefit from the styling
* A placeholder text is adding to the "real name" field.
* Introduce CodexHTMLForm

Bug: T182050
Change-Id: I834cc0e07fc1e705753df6866a5eeda2ac77fb8e
2023-07-06 17:20:17 -07:00
Ed Sanders
4c845198b0 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: I59c7507fef057a880bca62a156662ee66f89ed94
2022-05-04 23:17:03 +01:00
Volker E
83a9a7b1b5 build: Replace 'grade-a' by 'support-basic' in stylelint config
On a CSS linting perspective, this aims to
- provide a safer default for CSS architecture and
- replace deprecated grade based naming with support naming

Bug: T306567
Change-Id: I502c57a6879d83a02a857c84bc566c080091b811
2022-04-20 13:50:37 -07:00
Ed Sanders
b089533e03 stylelint: Enforce no-unsupported-browser-features
Change-Id: Ic4fb9d27aa94594584327a3d1fc5495861e09ebd
2021-06-05 14:42:03 +01:00
Ammarpad
742c6cc124 stylelintrc.json: Remove unused pattern
This was recently added in I276325d to allow utilizing the
exception in CSS file but subsequent iterations of the patch
voided the need for this exception, but this file was not updated.

Change-Id: I67cbebe6ba541ca0a3b1ff4a731d949a1d88c994
2020-12-29 14:19:43 +01:00
Ammar Abdulhamid
14ce139f94 Provide native support to dismiss sitenotice in core.
This patch adds a private method and other mechanisms to handle
generation of dismiss button for site notices (which are already
generated by core).

It also adds the $wgDismissableSiteNoticeForAnons global with its
default as set in the DismissableSiteNotice extension. The plan is,
however, to deprecate it later.

Native support will streamline the sitenotice processing and helps
towards more optimum default MediaWiki experience. It will also
eventually obsoletes the need for an extension to provide this crucial
button as well as remove the overhead of managing such extensions.

Bug: T262118
Bug: T259903
Depends-On: Ib80fc24c84eb333daa016c9816fdf91cc60d3983
Change-Id: I276325dc55fd475655e0212fc256b95ebb41b276
2020-12-22 08:04:44 +01:00
James D. Forrester
ae3f5f12ff linting: Start enforcing a basic CSS class naming rule (with lots of opt-outs)
Wow, so many opt-outs, and a lot of probably-not-going-to-change ones.

Actually wanted pattern:
* "^mw-…"

Content-related classes we're probably not going to scrap:
* "^wikitable$"

Hard-to-change classes used in lots of skins:
* "^toc$"
* "^toctoggle$"
* "^tochidden$"

Necessary for over-rides/specificity battles:
* "^oo-ui-…"

Probably worth considering changing soon:
* "^client-js$"
* "^client-nojs$"

Some of the exemptions have been applied to deprecated styles (where they're being
renamed); some are for code in entirely deprecated areas themselves; some have the
"wrong" name but sit alongside classes with an appropriate one. And some are, very
clearly, in the wrong repo. Such sigh.

Change-Id: I9b8423d53b6750b5ca79d2f69e111f75c93c5bdc
2019-04-12 10:18:45 -07:00
Ed Sanders
1064426327 build: Update stylelint
Change-Id: I5a0ccb26a54109e641fd121c6427a71e82e05c74
2017-10-27 13:31:41 +01:00
WMDE-Fisch
4e076701a0 Use json extension for .stylelintrc
Bug: T173516
Change-Id: I19e00ca6503b0212642bdb3a4735e0a52e43d670
2017-08-17 17:42:14 +02:00
Renamed from .stylelintrc (Browse further)