Topic on Project:Support desk

Display of indentation (:) on talk pages

7
Summary by AhmadF.Cheema

.CSS rules for indentation are available at French Wikipedia's Vector.css page.

Rdarovare (talkcontribs)

In the talk pages of our (local) instance, indentation does not display the background colors ; alternation of blue and white frames. I searched on cascading style sheets, and many ressources on the web, but I didn't found anything about it. May you explain how to define this rendering, please ? I hope to do this request on the good place. Apologize if doesn't it. Thanks in advance.

2003:72:6D1E:C000:6C6E:A0EA:9390:36A8 (talkcontribs)

Hi there!

Alternating background colors are not part of one of the default skins. To help you we need to know, how these colors are implemented. Do you have a URL of the wiki so that one of us can have a look?

Rdarovare (talkcontribs)

Thank you for your quick answer. In fact, MediaWiki is deployed on the private network of my company. Consequently, you can't access it. About my subjet, there is no background, quite simply. When we use « : » to do a response, we just have the indentation ; before the text, as expected. Of the blow, how could we define or specify the rendering ; including background-color and border-color ? Regards.

AhmadF.Cheema (talkcontribs)

For creating CSS rules, you can use select element feature of browser development tools. For Chrome browser, press (Ctrl + Shift + C), this will allow you to select any element on a web page and see its id, class names etc. and the CSS rules associated with those elements.

From what I can see, the blank indentation before the text starts has class dl and for the text, the class is named dd. Adding some rules such as background-color: crimson; for these classes directly in the developer tools will allow you to see the changes happening live.

Rdarovare (talkcontribs)

Thanks. Yes : I saw that. I used the browser developpment tools to have a feel of the desired rendreing. However, I don't know to alternate two colors ; like in this page. In more, where insert this change ? In which file ? Those elements are not defined on the MediaWiki:Common.css. Certainly on the server, accessible via a technical console... ? ^o)

AhmadF.Cheema (talkcontribs)

They have been defined exclusively for the Vector skin through https://fr.wikipedia.org/wiki/MediaWiki:Vector.css.

The first section titled /* PAGES DE DISCUSSION : COLORATION INDENTÉE */ deals with the relevant indentation related .CSS.

It would've been easier if you could have provided the link from the beginning.

Rdarovare (talkcontribs)

Sorry. My Mistake. Thank you so much for all your time, and your answers.