MediaWiki talk:Common.css/Archives/2023

From Meta, a Wikimedia project coordination wiki

Remove template-documentation

I've removed the last few instances of template-documentation in the wild, and the relevant template has used a different class for some time. Accordingly, please remove lines 173 to 182. If the above request processes first, these should be in the vicinity of 120 and 130. Izno (talk) 22:44, 28 February 2023 (UTC)

Done. Kind regards, Tulsi 24x7 05:12, 3 March 2023 (UTC)
This section was archived on a request by: — xaosflux Talk 10:02, 4 March 2023 (UTC)

Remove hidden-redlink

hidden-redlink is totally unused in the wild. It's currently line 184. Izno (talk) 00:10, 3 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 05:10, 3 March 2023 (UTC)
This section was archived on a request by: — xaosflux Talk 10:02, 4 March 2023 (UTC)

Remove InformationBox

I've replaced all uses with {{ombox}}. Please remove 158 to 166 from Common.css. Izno (talk) 09:18, 4 March 2023 (UTC)

Donexaosflux Talk 09:53, 4 March 2023 (UTC)
This section was archived on a request by: — xaosflux Talk 10:02, 4 March 2023 (UTC)

Remove transborder

I've inlined what were the only two uses. Please remove what is currently 438 to 445 from Common.css. Izno (talk) 09:35, 4 March 2023 (UTC)

Donexaosflux Talk 09:54, 4 March 2023 (UTC)
This section was archived on a request by: — xaosflux Talk 10:02, 4 March 2023 (UTC)

Remove geshi syntaxhighlight CSS

SyntaxHighlight has not been Geshi-based for a long time (so these rules have done nothing) and the issue this block fixes is fixed anyway in the Pygments-based software. Accordingly, please remove what is currently 427 to 436 from Common.css. Izno (talk) 09:38, 4 March 2023 (UTC)

Donexaosflux Talk 09:54, 4 March 2023 (UTC)
This section was archived on a request by: — xaosflux Talk 10:02, 4 March 2023 (UTC)

Remove NavFrame

I spent some time last night removing the few uses of NavFrame that will either not degrade gracefully or which would impact large numbers of pages (i.e. templates/modules) in favor of mw-collapsible. See also w:WP:NavFrame and/or w:MediaWiki talk:Common.css/to do#NavFrame. Accordingly, please remove:

The two pages that I could not fix beforehand are User:Xaosflux/PGP and Steward requests/Global/2022-w19. Both of those have a display: none that will make their content unobservable in general without either simple removal of the display: none or full conversion to mw-collapsible.

Please ping me when the request is completed. Izno (talk) 18:17, 28 February 2023 (UTC)

Updated mine. — xaosflux Talk 18:41, 28 February 2023 (UTC)
@Izno: Your requests are fulfilled. Kindly check if that's working. Kind regards, Tulsi 24x7 05:19, 3 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 20:36, 5 March 2023 (UTC)

Remove letterhead

Please replace the uses of letterhead in these two pages with {{letterhead start}} and {{letterhead end}}. You can choose to preserve the styles if desired with |styles=. Izno (talk) 03:15, 5 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:26, 5 March 2023 (UTC)
@Tulsi, looks like you missed a use of the bare class on Wikimedia Foundation elections 2015/Call for candidates. It will still render fine, but I like being clean. Izno (talk) 21:00, 5 March 2023 (UTC)
@Izno: Oops! I am sorry. Kindly check now. Kind regards, Tulsi 24x7 03:06, 6 March 2023 (UTC)

All uses modulo translation updates have been replaced with {{letterhead start}} and {{letterhead end}}. Please remove lines 495 to 501 from Common.css. Izno (talk) 03:15, 5 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:26, 5 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 03:20, 6 March 2023 (UTC)

Remove messagebox.cleanup and messagebox.merge

Please sync the listed pages with the content of their sandboxes. These edits remove messagebox cleanup by incorporating the styles and then adding classes for any uses of interest. Izno (talk) 23:29, 5 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 02:53, 6 March 2023 (UTC)

Please remove .messagebox.cleanup and .messagebox.merge styles from lines 596 to 605 of Common.css. Uses have been removed in the wild. Izno (talk) 23:29, 5 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 02:53, 6 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 03:18, 6 March 2023 (UTC)

Remove messagebox.standard-talk

I've replaced the non-talk uses of this class pair. Please remove lines 596 to the end of Common.css. Izno (talk) 03:26, 6 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:28, 6 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 03:28, 6 March 2023 (UTC)

Remove sister projects

I've standardized these to use {{Side box}} or {{sisterproject}}. Please remove lines 65 to 83 from Common.css. Izno (talk) 20:07, 6 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 02:33, 7 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 02:33, 7 March 2023 (UTC)

Remove otherlangs

Please copy the sandbox to the main template. Izno (talk) 02:40, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:59, 9 March 2023 (UTC)

Please remove the #otherlangs definition on lines 63 to 80 from Common.css. Izno (talk) 02:40, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:59, 9 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 03:59, 9 March 2023 (UTC)

Remove toc styling

Please replace uses like <div class="toclimit-3">__TOC__</div> with {{TOC limit|3}}. Izno (talk) 04:02, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 04:14, 9 March 2023 (UTC)

Please copy the sandbox to the main template. Izno (talk) 04:02, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 04:14, 9 March 2023 (UTC)

Remove the toc styling in lines 76 to 111 from Common.css. Izno (talk) 04:02, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 04:14, 9 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 04:14, 9 March 2023 (UTC)

Remove bordered infobox

This was barely used. Templates that want bordered can use their own styles. Please remove lines 49 to 61 from Common.css. Izno (talk) 06:02, 9 March 2023 (UTC)

Removed. Kind regards, Tulsi 24x7 06:56, 9 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 06:56, 9 March 2023 (UTC)

Remove miscellaneous

A bunch of different content in different places. Unused and in some cases shouldn't be used in the future. Copied the exact content to remove below since it's not in a nice grouping.

Shouldn't be used and I've removed the few uses.

/**
** Hide selected content (should rarely be used, backwards compatibility)
**/
.hiddenStructure, .if {
 display: none;
}

Unused onwiki or in codesearch.

/* Spam blacklist/log */
.logtable pre {
 margin: 0;
 padding: 0;
 border: 0;
}
/**
**  Styling for box showing source page next to translation when you translate, used by the [[Fundraising 2011/Translation]].
**/

div.translationcompare {
  max-height:500px;
  overflow:auto;
}

Exists upstream.

/**
** Highlight clicked reference in blue to help navigation
**/
ol.references > li:target {
 background: #DEF;
}

sup.reference:target {
 background: #DEF;
}

Izno (talk) 06:41, 9 March 2023 (UTC)

Removed. Kind regards, Tulsi 24x7 06:55, 9 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 06:55, 9 March 2023 (UTC)

Remove prettytextbox

Please copy the contents of the sandbox to the template. Izno (talk) 06:59, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 07:04, 9 March 2023 (UTC)

There are a ton of uses of this class on user talk pages that were substed that just don't make sense to fix. I've corrected the uses outside the user talk space. Please remove lines 48 to 58 from Common.css. Izno (talk) 06:59, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 07:04, 9 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 07:04, 9 March 2023 (UTC)

Remove alternance

I've moved alternance styles to {{alternance}} with instructions on how to use the template. Please remove lines 290 to 346 from Common.css. Izno (talk) 09:37, 9 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 14:11, 9 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 14:11, 9 March 2023 (UTC)

infobox

I've done the work to restrict use of this class to {{infobox}}, with some FuzzyBot updates left to go that will not be an issue. Please remove lines 18 to line 40 from Common.css. Izno (talk) 05:03, 11 March 2023 (UTC)

@Izno: Done, thank you. —MarcoAurelio (talk) 21:42, 12 March 2023 (UTC)
This section was archived on a request by: —MarcoAurelio (talk) 21:42, 12 March 2023 (UTC)

Navbox

Just a headsup for page watchers (and for my tracking sanity), Module talk:Navbox has a related discussion to my recent work. Izno (talk) 23:19, 8 March 2023 (UTC)

I'll file the edit request to remove these styles in a week or so. A lot of pages were using this module. Izno (talk) 08:18, 12 March 2023 (UTC)

Well, apparently I'm wrong above; Special:Search finds no pages on this wiki using Navbox but not Navbox/styles.css at this point. So, please remove lines 163 to 230. Izno (talk) 17:36, 14 March 2023 (UTC)

DoneMarcoAurelio (talk) 22:56, 14 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 00:04, 15 March 2023 (UTC)

plainlist

Now in Template:Plainlist/styles.css. Please remove lines 150 to 160 from Common.css. Izno (talk) 05:39, 13 March 2023 (UTC)

DoneMarcoAurelio (talk) 22:59, 14 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 00:04, 15 March 2023 (UTC)

messagebox

Please copy the sandbox to Template:Warning message. Izno (talk) 06:16, 13 March 2023 (UTC)

Done. —MarcoAurelio (talk) 23:01, 14 March 2023 (UTC)

Please remove messagebox styles in lines 377 to 385 from Common.css. Izno (talk) 06:16, 13 March 2023 (UTC)

DoneMarcoAurelio (talk) 00:13, 15 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 01:03, 15 March 2023 (UTC)

hideTOCnumbers

I've done the work to remove this one but I'm blocked currently on WMF. See User talk:SSpalding (WMF). Listing here for tracking. Izno (talk) 05:02, 9 March 2023 (UTC)

Replaced by {{nonumtoc}}. Please remove lines 46 to 50 from Common.css. Izno (talk) 20:16, 15 March 2023 (UTC)

Done. —MarcoAurelio (talk) 22:05, 15 March 2023 (UTC)
This section was archived on a request by: —MarcoAurelio (talk) 22:05, 15 March 2023 (UTC)

hlist

Remainder to fix hlist. Izno (talk) 05:38, 11 March 2023 (UTC)

Please remove lines 325 to 333 from Common.js. This workaround for IE is no longer needed, and IE <11 do not even receive JavaScript any longer. (Don't mark this as section resolved.) Izno (talk) 05:58, 11 March 2023 (UTC)

Done, thank you. —MarcoAurelio (talk) 21:50, 12 March 2023 (UTC)

Please change instances of <div class="hlist hlist-separated"> and their closing </div>s to {{flatlist}} and {{endflatlist}}, respectively. (Don't mark this as section resolved.) Izno (talk) 05:58, 11 March 2023 (UTC)

Done, thank you. —MarcoAurelio (talk) 21:55, 12 March 2023 (UTC)
@Izno: I guess MediaWiki:Common.js/IEFixes.js can go too? —MarcoAurelio (talk) 22:28, 12 March 2023 (UTC)
@MarcoAurelio, if you want to nuke it, go for it. Izno (talk) 03:10, 13 March 2023 (UTC)
Done. —MarcoAurelio (talk) 11:23, 13 March 2023 (UTC)

@MarcoAurelio, let's try and connect on IRC about Module:Navbar updates. It's a little convoluted what will need to happen and doing it live should make it slightly easier. I'm in #mediawiki at all times via Discord bridge but I will try to be on this week in the other usuals you might see me in. Izno (talk) 04:04, 13 March 2023 (UTC)

@Izno: Thanks, I'll ping you when I'm online later today, unless @Tulsi or @Xaosflux want to do it, which would be totaly fine by me. In any case, you're doing a great deal of work here, for which I'm very thankful, and I think it could be useful for you to have local interface-admin access, considering that you already hold this type of permissions on enwiki and mediawikiwiki :-) Best regards, —MarcoAurelio (talk) 14:33, 13 March 2023 (UTC)
We're almost done now, so the offer is kind but at this point not particularly necessary. What I probably should get is GIE, I've just been lazy. Izno (talk) 20:37, 13 March 2023 (UTC)
I'm online with @Izno and about to do the requested updates on Module:Navbar. —MarcoAurelio (talk) 22:32, 14 March 2023 (UTC)
Done; leaving open for now. —MarcoAurelio (talk) 22:41, 14 March 2023 (UTC)
Need to give the hlist styles and navbar styles a day or two to percolate and then we can remove both sets from Common.css. Izno (talk) 22:42, 14 March 2023 (UTC)

hlist and navbar styles seem to have rolled out quickly accordingly to Special:Search. So, please remove lines 57 to 178 from Common.css. Izno (talk) 01:03, 15 March 2023 (UTC)

Done. —MarcoAurelio (talk) 21:41, 15 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 22:00, 15 March 2023 (UTC)

charinsert styles

I moved these styles on MediaWiki wiki to a default-loaded gadget, see the definition in mw:MediaWiki:Gadgets-definition. I think the same should be done here also because it would reduce the load for all users outside edit mode and registered users who don't use CharInsert could turn the styles off. That would just need to have mw:MediaWiki:Gadget-CharInsertButtons and mw:MediaWiki:Gadget-CharInsertButtons.css copied over, the definition added, and then the styles removed from Common.css. Izno (talk) 06:24, 13 March 2023 (UTC)

I've loaded the local files so far. — xaosflux Talk 12:52, 13 March 2023 (UTC)
Seems sensibe. I'll finish the implementation. Thanks, —MarcoAurelio (talk) 11:23, 17 March 2023 (UTC)
Done. Please check if everything looks okay. I did not see any issues in my tests. —MarcoAurelio (talk) 11:35, 17 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 22:38, 17 March 2023 (UTC)

Minor cleanup

I've noticed a couple of 'tabs' adjustments. I've made a more full general sprucing in these edits to my sandbox which applies the CSS guidelines I know of (tabs, spaces for parentheses, new lines for properties, selectors, and noflip), and which also removes a few selectors and condenses a few others. It also adds a note about the expectation to use TemplateStyles. It's of course easier to see in WikEdDiff if you have the script loaded from another wiki, but there should be no changes in behavior. You can copy the full page directly. Izno (talk) 22:57, 17 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 02:31, 18 March 2023 (UTC)
Tulsi, if you wouldn't mind, there is a line with mw-centent-rtl, could you correct that to mw-content-rtl? I didn't introduce it but I did notice it just now. Izno (talk) 02:41, 18 March 2023 (UTC)
Done. Kind regards, Tulsi 24x7 02:45, 18 March 2023 (UTC)
This section was archived on a request by: Tulsi 24x7 02:31, 18 March 2023 (UTC)

page-banner

Page banner support of the kind in Common.css is now in Template:Page banner start. Please remove lines 98 to 104.

Done. Kind regards, Tulsi 24x7 03:14, 22 March 2023 (UTC)

The same removal in Mobile.css, lines 8 to 11. Izno (talk) 23:39, 21 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:14, 22 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 03:21, 22 March 2023 (UTC)

mobile-hide

This is duplicated by nomobile basically which is upstream. Remove lines 13 to 16 from Mobile.css. Izno (talk) 23:41, 21 March 2023 (UTC)

Done. Kind regards, Tulsi 24x7 03:14, 22 March 2023 (UTC)
This section was archived on a request by: Izno (talk) 03:21, 22 March 2023 (UTC)