aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.special/contribute.less
Commit message (Collapse)AuthorAgeFilesLines
* mediawiki.special, styles: Use Codex lightbulb iconVolker E.2025-01-271-10/+4
| | | | | | | | It's available since v1.20.0 of Codex. Also apply MediaWiki whitespace guidance on all mixin calls. Bug: T346320 Change-Id: I1cba243d209665fa9da7aa22d6a0346885dc1cfd
* build: Upgrade stylelint-config-wikimedia from 0.17.2 to 0.18.0James D. Forrester2024-12-191-2/+0
| | | | | | | Drop some of the extra plugin/no-unsupported-browser-features warning suppressions for flexbox-gap to make pass. Change-Id: I665bce898ec9742061b54c32c079ab16518e6118
* build: Update stylelint-config-wikimedia to 0.17.2Ed Sanders2024-06-131-2/+5
| | | | Change-Id: I8d68bcae416463ceec6d7b617e38d34c57360698
* styles: Use newly-introduced static 'neutral' background tokensVolker E.2024-04-011-1/+1
| | | | | | | | | | | | | Applying new tokens: - @background-color-neutral: #eaecf0; - @background-color-neutral-subtle: #f8f9fa; … instead of static values. Also import skin variables and change files to Less where necessary. Change-Id: I64c9f570fdd36abe5c8d62a98425911ef7b9e6d3
* mediawiki.special: Replace deprecated breakpointsVolker E2023-10-311-2/+2
| | | | | | | | | | | | | | | Note that this change is only caring about tablet breakpoints on special pages where breakpoints were basically implemented to only care about big pain points and weren't designed specifically for mobile. The values have slightly changed. Tablet breakpoint is decreased by 80px, pushing lesser devices into a mobile phone only experience but should in these three contexts make barely a difference to vast majority of our users. RCFilters and Interwiki search styles will be handled in a separate patch to have more QA space for these two. See also T349793. Bug: T331403 Change-Id: I00a06a5a2e8892054a6d947e10e95af559fa5bda
* SpecialContribute: No Icons on Contribute special page mobileMoh'd Khier Abualruz2023-09-141-0/+22
| | | | | | | | - After moving minerva and mobile frontend to utilise the codex icons. Contribute Special page on mobile did not have access to the mw-ui icons. - Updated the .less files and the mustache markup to utilise the codex icons Bug: T345706 Change-Id: Id42ca923340e412a49120189c4d4f389e8f69df0
* build: Update lintersEd Sanders2023-08-211-2/+0
| | | | Change-Id: I35fa6b68e1ffdc563bd49de06d8ba11561f9cfdc
* mediawiki.special: Replace 'mediawiki.ui/variables' call with skin varsVolker E2023-04-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Replacing 'mediawiki.ui/variables.less' `@import` with new skin-aware 'mediawiki.skin.variables.less' standard. Also - replacing several static values with new Codex design token featuring skin variables of following properties: - background color - color - border - box shadow - removing obsolete same-value variables from code base - bringing Less imports in the same order, with variables first, as they are used in mixins as well and always add `.less` extension to path - renaming 'userlogin.css' to 'userlogin.less' to enable use of skin variables consistently Note, - there's a small number of static values reintroduced where no token is available yet. DS team will provide in follow-up patches after a future Codex release. - there are a number of color choices in the code, that should be revisited by help of designers. They seem like non-standard choices. Bug: T332541 Change-Id: I603a7bc52bf31233b2a82cdc2bff08fd1cb294fe
* Special:Contribute: Responsive adjustments and stylingSanthosh Thottingal2022-11-211-6/+44
| | | | | | | | | | | | | | | * Two cards per row on wider screens. On Desktop and Tablet, the options to contribute will be displayed showing two on each row with a separation of 24px between cards (and 32px distance to the edges). * Edge-to-edge background on mobile. Let the gray box for card extend to page margins * Avoid extra space below last card * Use a lighter grey for card background * Add border to the cards * Make action link bold and increase spacing Bug: T321550 Change-Id: I1f90f141b573de8a836bb1b3c0a5f08328446138
* SpecialContribute Follow upMoh'd Khier Abualruz2022-09-301-43/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up to I7f064a954a77373dfec86efae7e378402f500198 From: I28aa164119bc0dbc00f5fcf20bc53dc4851ca0b5 * Fix typo in contribute.css * Removes selector specificity (scoped to body class to prevent these styles loading on other special pages) * Removes non-existent mediawiki.special.contribute module * Fixes font-sizes to match specification (existing values were invalid). From: Icfd8a7965d83f2429637139ca0de9ed1520b4169 This module contains all the possible icons this page could make use of. Seems better to load this one than create an additional ResourceLoader module to fragment things further. Changes: * Use Context for messages instead of wfMessage * Use generated URLs rather than static ones for the default card * ContributeCardsHook::onContributeCards is void ( no prevention mode ) * SpecialContribute fixed typo * Fixed capitalization in messages jsons * Load Classes with PSR-4 * Redirected always to user's page of the Special:Contribute page ( fixes default selection of tab) Bug: T286466 includes: I28aa164119bc0dbc00f5fcf20bc53dc4851ca0b5 includes: Icfd8a7965d83f2429637139ca0de9ed1520b4169 Change-Id: Iac34777a89e3e6732a0916dbf0a22677cbc6d121
* Persistent contribution entry point on the mobile navigation menuMoh'd Khier Abualruz2022-09-281-0/+54
* Add new special page SpecialContribute * Added messages and aliases for EN language * Add classes to carry cards Data * Added Hook ContributeCardsHook for adding/removing updating cards * Moved HTML to template * Added main page and 1st tab styles * Removed the dependency on minerva skin code * Added Unit Tests * Fixed Jenkins, and qqq messages * Added an override for getShortDescription in special pages to generate unified tab message keys Bug: T286466 Change-Id: I7f064a954a77373dfec86efae7e378402f500198