Help talk:Cascading Style Sheets
|Wikipedia Help Project||(Rated NA-class, Mid-importance)|
Have custom CSS cascade to all Wikimedia sites as part of Unified Login
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:
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
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()
Links to svn.wikimedia.org
These redirect to Phabricator, and not, as far a I can see, in a useful way.
Define CSS classes (or otherwise define general CSS) on specific page
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
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 ?