aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.special
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Fix Special:ComparePages form layout when there are errors"jenkins-bot2022-03-171-3/+3
|\
| * Fix Special:ComparePages form layout when there are errorsBartosz Dziewoński2022-03-171-3/+3
| | | | | | | | | | | | | | | | | | | | The nth-of-type() selector only looks for elements with the same tag name (in this case 'div'), and not elements matching the whole selector as one might assume. When error messages were shown, using another 'div' element, it applied to the wrong elements. Bug: T256805 Change-Id: I1d5d2d17c65a23980ca01534581c7098f01bc8dc
* | listFiles: Display file name instead of versionFunc2022-03-171-1/+1
|/ | | | | Bug: T293576 Change-Id: If97f83dbf95de2fc3e0e3fc366034610dfce3f4d
* Update Special:Block UISTran2021-09-081-7/+15
| | | | | | | | Adjust UI to be more explicit about which options apply to sitewide vs partial blocks Bug: T280719 Change-Id: I38943124c7f3c1aeb4ea8c9b92971a8f59801205
* Move several legacy style rules to existing dedicated modulesmainframe982021-03-262-0/+12
| | | | | | | | | | | | | | These are often two or three css rules and can be included in the style sheets of other modules. To facilitate a good migration from mw-warning-with-logexcerpt, mw-logevent-loglines has been added to the log event list of LogEventsList, to allow styling previously provided under mw-warning-with-logexcerpt to be selected only in cases where the styles should actually be applied. See also T278002. Bug: T278576 Change-Id: I3f45c95d2856c8fce2da5175b52089d4e629a41e
* Add clearfix to upload warningsEd Sanders2021-01-221-0/+6
| | | | | | The warnings sometimes contain a right-floated image Change-Id: If9aec1d6ed942bd669c9f9e0dc6822c725d9b370
* Make use of LESS nesting in a few filesDannyS7122020-12-152-38/+42
| | | | | | Should all be no-ops Change-Id: If3f5c154c206fa34e7445368a82470a6d9cc8f6c
* Fix units of copy-pasted @ooui-font-size-base LESS variableBartosz Dziewoński2020-10-163-3/+3
| | | | | | | Same change as I3baf15fd8e0435fc7a05ba6ff6fef58f7aa55563 in OOUI. Bug: T265650 Change-Id: Ic829a494220bba00758febde1ce679cc9ecf0165
* Conform to selector-class-pattern for watchlist expiry classSam Wilson2020-09-161-3/+9
| | | | | | | | | | | | | This is a follow up to I9aba8cccc2ef75c59b78008723d0ae76d853c5f2 to add the 'mw-' prefix to the CSS class added there. The whole of special.less has the stylelint selector-class-pattern rule being excluded, so this wasn't picked up when it was first added. For this reason, the disabling is moved to next-line form and copied to all the remaining incorrect selectors (to avoid this problem in the future). Change-Id: Idfaec3ff3aa0e3ecc5217aa4a557a67378991757
* Change 'width' to 'max-width' for Special:MovePage formBartosz Dziewoński2020-09-141-1/+1
| | | | | | | We use max-width for all other forms like that (e.g. Blocklist, Contributions), which allows them to adapt to narrow devices. Change-Id: I0d30544d3d3baa07078cac91dd91c1892023a146
* Merge "Add UI support in Special:EditWatchlist for watchlist expiry"jenkins-bot2020-08-031-0/+7
|\
| * Add UI support in Special:EditWatchlist for watchlist expiryhmonroy2020-07-301-0/+7
| | | | | | | | | | | | | | | | | | Add text to indicate remaining days for temporarily watched items in the Special:EditWatchlist page. Add ascending sorting by expiration date. Display the items that will expire soonest at the top. Bug: T250214 Change-Id: I9aba8cccc2ef75c59b78008723d0ae76d853c5f2
* | Add watchlist clock icon to RecentChangesSam Wilson2020-07-281-9/+0
|/ | | | | | | | | Extend the watchlist expiry clock icon from Special:Watchlist to also be displayed on Special:RecentChanges for expiring watchlist items. Bug: T258310 Change-Id: I254570addd1835119c863639111bd5394cb4b697
* Add clock icon to expiring items in Special:WatchlistSam Wilson2020-06-191-0/+9
| | | | | | | | | If a changeslist item has an expiry date, add a grey clock icon after the page title, with a tooltip indicating when the item expires. Bug: T250212 Change-Id: I38f8c85321cf257eeea8de5a3bd73bbc0b5ea393
* Merge "Use more appropriate CSS selectors for Special:Block"jenkins-bot2020-03-191-13/+14
|\
| * Use more appropriate CSS selectors for Special:BlockThalia2020-02-201-13/+14
| | | | | | | | | | | | | | Refer to the specific classes that are being overridden and use more specific selectors where appropriate. Change-Id: I4383cc31d90247f95fde7af55d2545dd12e96ff8
* | special pages: Avoid column break inside of list itemsFomafix2020-02-081-0/+4
|/ | | | | | | | | | This change avoids a column break inside of list items on Special:AllPages and Special:PrefixIndex in Firefox. Firefox doesn't support break-inside: avoid-column. Bug: T244108 Change-Id: I6adce3f9baaebb371ce1c6c00c4579292e01fb1e
* Reduce top margin for multiselect widgets on Special:BlockThalia2019-10-281-0/+1
| | | | | Bug: T236679 Change-Id: I8f27254c24dad847370321d4b0425843d838cf83
* Reduce top margin for block type options on Special:BlockThalia2019-10-281-0/+1
| | | | | Bug: T236679 Change-Id: Ief58d250b928c8c25b1593cce52fff6bfa856949
* Don't apply styling for Special:Contributions on other pagesBartosz Dziewoński2019-10-161-38/+40
| | | | | | | | | | | This file is part of a large ResourceLoader module that is loaded on many special pages. The change here uses the same approach as other files in this directory, e.g. block.less. Bug: T235137 Change-Id: I23c552944c6e7e31a4107f7974bb1e5867627283
* LESS imports should not be ambigiousjdlrobson2019-10-023-3/+3
| | | | | | | | | | Although it's not a problem currently, some LESS parsers will get confused with the lack of file extension. It's better to be explicit. This causes problems with Storybook adoption inside repositories (See I42fbf37124477e2d950b4bca15acf77703cd3f5d for example) Change-Id: I379334d7729e587a2a0029550e30e7c46a4f7a7a
* Make Special:Contributions use OOUIjdlrobson2019-09-232-4/+65
| | | | | | | | | | | Changes: * IP address/username is now a single label & input element combination * Add page-specific styles in separate LESS file * Remove no longer necessary CSS rule Bug: T117736 Bug: T219238 Change-Id: I979078d8937898acae22bc28d5ed51da1d4ed627
* Mobile friendly styling of Special:ListFilesjdlrobson2019-09-181-0/+43
| | | | | | | | | | | | | This makes core's Special:ListFiles match the styling of Special:Uploads that is provided by MobileFrontend. The latter can be removed once this change is incorporated. The tablet/desktop mode of this page is not impacted except that the title will be context aware when a username is selected to show "Uploads by <username>" rather than the generic "list files". Bug: T102139 Change-Id: I266313b8c71bdf410d336e020aca7dabbe115be5
* Add block type filter to Special:BlockListDayllan Maza2019-04-171-0/+19
| | | | | | | | | Now that Partial Blocks feature is being enabled on multiple wikis a new filter (Block Type) is added to Special:BlockList to facilitate viewing the different blocks in place. Bug: T191549 Change-Id: I0bc8c6eaff22930c2e3c12ae5e77e03287910db9
* linting: Start enforcing a basic CSS class naming rule (with lots of opt-outs)James D. Forrester2019-04-123-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Unify code comments across special page stylesheetsVolker E2019-03-2910-12/+27
| | | | Change-Id: I6311b441552bfd05f737f106b534f213797d426a
* Show password policy flags on Special:PasswordPoliciesGergő Tisza2019-03-011-0/+4
| | | | | | | | | | Follow-up to I28c31fc4ea. Also improves what policy values are considered disabled, documents how to extend core checks/flags and adds a structure test for it. Bug: T118774 Change-Id: I66bf396e8e8a8c310a47ba337abe9070e7e83ff6
* Special:AllMessages: Visually hide repeating textVolker E2019-01-231-0/+7
| | | | | | | | | Leaving it in for better screen reader navigation though. Also, in order for this to use 'mediawiki.mixins' renaming special stylesheet from CSS to LESS. Bug: T209253 Change-Id: I40ac43d0a4a379a71ce78f2bd1f62b828170f4d8
* Add namespace restrictions to Special:Block and APIThalia2019-01-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | This adds a UI for blocking namespaces to Special:Block and a namespacerestrictions parameter to the block API. The number of namespace restrictions in a single block is not limited as page restrictions are. The checkbox allowing the blocker to specify whether the target can edit their own user page is normally disabled for a partial block, but is re-enabled if the block is to the user talk namespace. If the config $wgBlockAllowsUTEdit is set to false, the checkbox will not appear, and the target will not be able to edit their own user talk page if they are sitewide-blocked, namespace-blocked from the user talk namespace, or page-blocked from their user talk page. Bug: T204986 Change-Id: I9e231ad109d7285486ec332b26780339592b8df7
* Update the design of Special:BlockThalia2019-01-071-5/+18
| | | | | | | | | Update the design now we have the extra options for partial blocks. Bug: T202773 Bug: T212964 Change-Id: I569eb2a8b15b9ad7f9f0e99bce2cd9b818a82fb4
* Remove unnecessary calc operation in .less fileThalia2019-01-041-4/+1
| | | | Change-Id: I3db79e58e6d590da0fc2b168d784e1f666c2337b
* Always load styles for Special:Block pageThalia2019-01-031-0/+19
| | | | | | | | Load the styles regardless of whether the user has JavaScript. Bug: T212880 Change-Id: If103aebd1ca1368ddee7322bf52f7d9d35bd950c
* Special:AllMessages: Improve zebra striping on hoverBartosz Dziewoński2018-12-171-2/+9
| | | | | | | | | Previously, the full row (spanning two sub-rows) would not get the hover effect when hovering over the second sub-row. Inspired by <https://stackoverflow.com/a/15465002>. Change-Id: Id698516da4fbe01f90cbe1499fb81721642a4dfd
* Special:AllMessages: Remove al_title and allmessages-customised classesTimo Tijhof2018-12-171-3/+3
| | | | | | | | | | | | | | | | * The al_title class was unused, and thus removed. * The allmessages-customised class was used in CSS to target elements with 'al_default' and 'al_actual' classses within it, which are in turn only used for that purpose. Change the HTML to match the needs of the CSS by only setting al_default/al_actual classes on customised messages and remove need for the parent element class. On a plain install this reduced output by ~2K from 75.8K to 74.0K, and allocate 100 (2x50) fewer attribute nodes. Change-Id: If2dd4cf5c937935f03f30b8410a32b6821b0bf34
* build: Upgrade stylelint-config-wikimedia to 0.5.0 and make passVolker E2018-11-282-0/+4
| | | | Change-Id: I648375927bace5fc21bd842268c645570759ce85
* Move generic HTMLSizeFilterField styles from newpages.lessBartosz Dziewoński2018-08-011-1/+0
| | | | | | | | These styles should apply to all OOUI HTMLForms (and they already were accidentally being applied to the form on Special:ProtectedPages). Move them to mediawiki.htmlform.ooui.styles.less. Change-Id: Ie51fbbd997648495779c822c421bbfb4a3ea74c4
* Special:NewPages: Change to use OOUIPankajeshkr2018-07-301-0/+15
| | | | | Bug: T117739 Change-Id: I802d215374c0b5247247dd4ae2facce251e8d369
* Add Special:PasswordPoliciesReedy2018-05-191-0/+5
| | | | | Bug: T174812 Change-Id: Ifb4876f7309a667154c7469c29e703b6c33d54af
* mediawiki.special: Combine various tiny specialpage style modulesTimo Tijhof2018-05-169-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These stylesheets are sufficiently tiny that it doesn't make sense to offer them the ability to be loaded separately from each other (saving bytes in double-digits) at the cost of 1) exporting a dedicated registry item with meta data shipped on every page view, 2) reduced cache re-use from increased fragmentation. Instead, move these to the 'mediawiki.special' style module. The entries retain their own files to keep them as easy to find and edit as before. Where not already, ensure addModuleStyles() is always placed above any addModules() call in the same method. The load order isn't affected by the call order, but given blocking style-modules load before async JS, it helps to order them in a way that visually matches the effective load order (from top to bottom). The following 7 modules were remove without deprecation: 1. "mediawiki.special.apisandbox.styles" (1 rule) 2. "mediawiki.special.edittags.styles" (3 rules) 3. "mediawiki.special.movePage.styles" (1 rule) 4. "mediawiki.special.pagesWithProp" (1 rule) 5. "mediawiki.special.upload.styles" (2 rules) 6. "mediawiki.special.watchlist.styles" (3 rules) 7. "mediawiki.special.comparepages.styles" (4 rules) These module names were only used on the core classes loading them, and aren't depended on outside core by module name, rather, extensions and gadgets depend on the styles styles being loaded in a blocking manner on these pages, which remains unaffected. Bug: T192623 Change-Id: I6e663dc3c80c7104c9b9abdde44c654543185373
* resources: Give mediawiki.special.* files their own place in src/Timo Tijhof2018-05-1154-4945/+0
| | | | | Bug: T193826 Change-Id: Id25cd18079f48308f6ab42207445bbbd74ed5fda
* Remove width restriction on gadget labelsEd Sanders2018-05-091-0/+6
| | | | | Bug: T181733 Change-Id: Ia4bb7f49f89dbd62a21dd125e6a209a4f176844d
* Special:Preferences: Create flag to enable OOjs UIEd Sanders2018-05-037-107/+438
| | | | | | | This reverts commit 808e45d13d400256d36cfcd95e79a567197d9a8b. Bug: T117781 Change-Id: I152b82bcd647d97062eb82cd2d1064609124f9bc
* media: Rename files to match the name of the class they defineTimo Tijhof2018-04-281-1/+1
| | | | | | | | This will make jumping from file to file much easier in text editors when file name lookups will autocomplete naturally when looking for a class by name. Change-Id: I4b2e55a2e72674b619d5a592866c8a019a2b0224
* ApiSandbox: Resize layout to fit content, and remove fullscreen modeEd Sanders2018-04-252-76/+12
| | | | | | | | | Avoids unpleasant nested scrollbars, and hacky fullscren mode. Make toolbar position:sticky to keep buttons visible. Bug: T129157 Change-Id: Ia3c3176c1bd7cac6af2c35f53d820f1272df72a5
* Merge "Create Expiry Widget with Date Time Selector"jenkins-bot2018-04-241-6/+3
|\
| * Create Expiry Widget with Date Time SelectorDavid Barratt2018-04-191-6/+3
| | | | | | | | | | | | | | | | | | Special:Block needs a date time selector for easier selection of expiry. To accommodate this cleanly, a new Expiry Widget is created that handles this logic. Bug: T132220 Change-Id: I2853a2ca0ae6ccead3978f4bb50a77c2baa3a150
* | Merge "Remove onhashchange fallback code"jenkins-bot2018-04-242-45/+11
|\ \
| * | Remove onhashchange fallback codeEd Sanders2018-04-242-45/+11
| | | | | | | | | | | | | | | | | | | | | We no longer support any browsers that don't have the hashchange event. Change-Id: I5e6bfd1d5c634df21b6b3d06dcf007112cdf15fa
* | | mw.special.apisandbox: Offer to fill in token when not givenBartosz Dziewoński2018-04-241-18/+64
|/ / | | | | | | Change-Id: I53c414f0a80ce76907d3293971a47e87aa67fb06
* | Fix typo: bytePointLimit -> byteLimitEd Sanders2018-04-223-3/+3
| | | | | | | | Change-Id: Ifafc4bdd6663e1ccfa6be938e5fc72fd1442a9a5