MediaWiki talk:Vector.css
Note that we also have custom CSS in MediaWiki:Common.css.
I feel only CSS that is needed by only Vector Skin and would cause problems for the other skins should be kept in MediaWiki:Vector.css and it should be kept to a minimum. Is any of the CSS in MediaWiki:Vector.css like that? Could it all simply be moved to and maintained in MediaWiki:Common.css instead? It might be easier to maintain if it were in one place. I'll leave this for an admin to decide. --Rogerhc (talk) 22:33, 25 January 2013 (UTC)
How to not display the page title at the top
[edit]- Swept in from the pub
Hi guys. I'm trying to get a quick answer to this: On the Main Page, it doesn't automatically display the page title ("Main Page") at the top like it does for all other pages. How was this accomplished? I'd like to get rid of that page title on our pt: main page too. Thanks in advance. Texugo (talk) 18:49, 26 January 2013 (UTC)
- It appears to have been done with CSS. See , although on Wikivoyage it looks like MediaWiki:Vector.css was modified instead of MediaWiki:Common.css:
/* Hide title on the main page */ .page-Main_Page .firstHeading, .page-Main_Page #contentSub { display: none; }
- -- Ryan • (talk) • 19:26, 26 January 2013 (UTC)
- Thanks Ryan, but MediaWiki>Vector.css on pt: is identical to the one here. What could be the problem? Texugo (talk) 19:47, 26 January 2013 (UTC)
- Never mind. I did get it to work using the other method from the FAQ. Don't know why the CSS didn't work though... Thanks a lot! Texugo (talk) 19:54, 26 January 2013 (UTC)
- Maybe it wants .page-Paginà_principal or something similar em portugês? K7L (talk) 19:58, 26 January 2013 (UTC)
- What K7L said. The class on the body tag is apparently "page-" + name of page, so for pt:Página principal it would be "page-Página_principal" instead of "page-Main_Page". -- Ryan • (talk) • 20:02, 26 January 2013 (UTC)
- Maybe it wants .page-Paginà_principal or something similar em portugês? K7L (talk) 19:58, 26 January 2013 (UTC)
- Never mind. I did get it to work using the other method from the FAQ. Don't know why the CSS didn't work though... Thanks a lot! Texugo (talk) 19:54, 26 January 2013 (UTC)
- Thanks Ryan, but MediaWiki>Vector.css on pt: is identical to the one here. What could be the problem? Texugo (talk) 19:47, 26 January 2013 (UTC)