MediaWiki talk:Common.css

Latest comment: 2 years ago by A455bcd9 in topic ajp font and directionality

Small fixes edit

  • Add ";" after first font-style: italic
  • Remove cellspacing (not CSS) (maybe replace with border-spacing ?)

Thank you ∴ Alex Smotrov 19:29, 10 August 2007 (UTC)Reply

  Done SPQRobin 20:14, 13 August 2007 (UTC)Reply

Navigation and Infobox edit

Meetei list style edit

Hi,

(Technically, I can edit this myself with my "global sysop" privileges, but I prefer to ask for community consent properly.)

User:꯴꯰꯴, who edits pages in Manipuri (mni), asked me to make it possible to show digits from the Meetei Mayek script in numbered lists in Manipuri content pages. This would, theoretically, be possible if CSS had an appropriate list-style-type value. It has values for many writing systems, but not for this one yet. (I'm going to try to propose its addition to the CSS standard, wish me luck.)

Another way to address this problem is to use a custom-defined CSS @counter-style. User:꯴꯰꯴ and I tested the following code in our private Common.css, and it does what is needed:

/* 1. Only works on Firefox and other Gecko browsers, but better than nothing. */
/* 2. "@counter-style" may cause CodeEditor to show a warning when publishing, but it's safe. */
@counter-style meetei {
	system: numeric;
	symbols: "꯰" "꯱" "꯲" "꯳" "꯴" "꯵" "꯶" "꯷" "꯸" "꯹";
	suffix: ". ";
}

#mw-content-text[lang=mni] ol {
	/* "meetei" is not a standard value. It's defined above as a custom @counter-style. */
	list-style-type: meetei;
}

As you can see in the comments, at the moment it only works on Firefox. On Chrome it doesn't do anything (people have asked to implement it for years...), but if it at least works on Firefox, it's better than nothing, and it can also be a nice testing ground for future implementation of standard "meetei" support in browsers, which I hope will happen some day.

The name of this writing systems has several Latin spellings. "Meetei" is the name used in Unicode documents in English, and User:꯴꯰꯴ prefers it, too, so I chose it for the identifier.

So: Any objections to adding it to Common.css? --Amir E. Aharoni (talk) 10:22, 13 September 2020 (UTC)Reply

P.S. 1: If you try to add it yourself, you'll see a warning: The document contains errors. Are you sure you want to publish?. It's because our CodeEditor doesn't recognize @counter-style, even though it's standard CSS. It's safe to ignore the warning and publish the page.
P.S. 2: If it works well here, it should eventually be deleted and moved to core MediaWiki, probably to resources/src/mediawiki.skinning/i18n-ordered-lists.less. --Amir E. Aharoni (talk) 10:28, 13 September 2020 (UTC)Reply

Thanks.   Done. --Amir E. Aharoni (talk) 10:38, 16 September 2020 (UTC)Reply

ajp font and directionality edit

Hi, based on this discussion, could you please add ajp and apc, and arq after "[lang=ary],"? Thanks for your help. A455bcd9 (talk) 06:18, 7 July 2021 (UTC)Reply

Can anyone help? How can I edit MediaWiki:Common.css here?
By the way, I opened a ticket on Phabricator to fix the issue on all Wikimedia projects. But in the meantime we need to fix it here to allow people to contribute to the ajp test Wikipedia. A455bcd9 (talk) 06:10, 17 July 2021 (UTC)Reply

Done. --MF-W {a, b} 10:49, 17 July 2021 (UTC)Reply

Thanks a lot! A455bcd9 (talk) 13:53, 18 July 2021 (UTC)Reply
Return to "Common.css" page.