Help talk:Cascading Style Sheets

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Wikipedia Help Project (Rated NA-class, Mid-importance)
WikiProject icon This page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
 NA  This page does not require a rating on the project's quality scale.
 Mid  This page has been rated as Mid-importance on the project's importance scale.
 

Have custom CSS cascade to all Wikimedia sites as part of Unified Login[edit]

Is there any way to have custom CSS (and custom JS) cascade to all Wikimedia sites instead of having it per site? This could be allowed and encouraged as part of the Unified Login system. Currently I have a custom CSS for the English Wikipedia and Vector skin. On other Wikimedia sites such as Wikipedia in other languages, Wiktionary and Wikiquote, I have to manually create a custom CSS for the Vector skin per site, and add the import line in each of them as follows:

@import "//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&lang=en&modules=user&only=styles&skin=vector&user=Agent007bond&*";

This allows me to manually cascade the CSS I use in English Wikipedia to other Wikimedia sites, as long as I have created the custom CSS and added the import line. I couldn't find any automatic solution where a single custom CSS would be cascaded to every Wikimedia site on which the Unified Login system can log in a user to. Is there such a solution that I'm unaware of? -- ADTC Talk Ctrb . 09:01, 27 November 2011 (UTC)

Proposal to rename Catalogue of CSS classes[edit]

Please comment at Wikipedia talk:Catalogue of CSS classes#Suggested move. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:33, 8 March 2013 (UTC)

Enable styles with url()[edit]

Is there a way to enable CSS with url()-attributes? --31.150.98.151 (talk) 11:30, 13 February 2015 (UTC)

No. --Redrose64 (talk) 00:26, 14 February 2015 (UTC)

Links to svn.wikimedia.org[edit]

These redirect to Phabricator, and not, as far a I can see, in a useful way.

All the best: Rich Farmbrough, 17:09, 17 March 2016 (UTC).

Define CSS classes (or otherwise define general CSS) on specific page[edit]

Hi,

On da:wiki we have a number of pages, mostly portal pages, which are formatted using HTML and CSS. These pages often have a lot of HTML elements like

 <element style="....">...</element>

where all (or almost all) the same elements (e.g. all the <td>) have the same style, making it somewhat tedious to make changes to the styles - as you then have to change a (large) number of identical style-attributes.

Now in plain HTML you can fix this by having a <style> section in the <head> or by including a CSS file - But not of these seems to be an option in wiki.

Is there some way to define a block of CSS tags or classes in a single wikipedia page - to avoid having to repeat the same style attribute over and over ?

--Honymand (talk) 18:50, 20 November 2016 (UTC)

Not for single pages. Where a style (or group of styles) is in use across a wide range of pages, we can set up suitable classes in MediaWiki:Common.css - for example the various rules for the .hlist class that was added a few years ago. --Redrose64 (talk) 23:50, 20 November 2016 (UTC)