Topic on Skin talk:Vector

body {max-width: ...} has different behaviour on different pages.

3
Summary by Spas.Z.Spasov

Site CSS is not allowed by default on "restricted" pages, for example the login, signup and password change pages, since it's a security risk if you have multiple users able to edit it (see details on T72672). If you're the only administrator of your wiki, you can safely enable them with the Manual:$wgAllowSiteCSSOnRestrictedPages configuration variable.

Spas.Z.Spasov (talkcontribs)

Hello, everyone.

I have made few customizations in /MediaWiki:Vector.css of my private Wiki (1.27.1).

I set max width of the body class, like:


body {

position:relative;

max-width: 1320px !important;

margin-left: auto;

margin-right: auto;

padding: 0;

}

It works for most pages but for some of the special pages this CSS doesn’t apply. Especially for these special pages with these new pretty buttons.

Here you are two examples. Where this CSS works and where it doesn't work.

I want to have the same behavior for the mentioned special pages. Could someone help me?

Matma Rex (talkcontribs)

Hello. Site CSS is not allowed by default on "restricted" pages, for example the login, signup and password change pages, since it's a security risk if you have multiple users able to edit it (see details on T72672). If you're the only administrator of your wiki, you can safely enable them with the $wgAllowSiteCSSOnRestrictedPages configuration variable.

Spas.Z.Spasov (talkcontribs)

It works. Thank you very much!