Skin talk:Vector

Jump to navigation Jump to search

About this board (talkcontribs)

Does anyone have any thoughts/ideas on how one might lock the mw-page-base to stay at the top, so that only the content scrolls in Vector?

Reply to "Lock mw-page-base?"
Stefen moss (talkcontribs)

So I have been working on the Vector skin, and I have it change how I want, but I can't seem to find h1 to change the font color.

Quiddity (talkcontribs)

You want the class .mw-body h1 I believe.

Although just h1 should work fine?

Personally, I use #content {color: black !important;}, but that might cause unexpected problems.

Stefen moss (talkcontribs)

Which file is this located in?

Quiddity (talkcontribs)

Oh, I thought you were referring to your personal stylesheet (e.g. Special:MyPage/common.css) or a browser extension that does CSS overrides (e.g. I use Stylus).

Are you working on a 3rd party wiki? Or trying to change the default for a single Wikimedia wiki? or for all Wikimedia wikis? If you have any relevant links (sites, discussions, examples, etc), they always help!

Stefen moss (talkcontribs)

I am working on my own wiki. I downloaded the MediaWiki file and I have the site up, it just that I can edit everything else by going to the css file, but I did not see a .h1 section in the file in question.

Quiddity (talkcontribs)

Local overrides are usually just created in MediaWiki:Common.css E.g. m:MediaWiki:Common.css - that way you're not changing anything that needs to be auto-updated later (IIUC, i am not a dev).

For the origin, I believe they're in either or in -- You might be able to find more with


Reply to "Changing H1 Font Colors"

How to remove the gradient from the top of the Vector skin?

Cabalamat2 (talkcontribs)

I am editing MediaWiki:Vector.css to alter the look of the vector skin. What CSS do I need to enter to remove the gradients from the top of each page?

Pangaearocks (talkcontribs)

This is the only mention I have seen of this issue anywhere, so I hope somebody are able to fix it for us. I'm working on a wiki redesign and there is a gradient effect on the wiki's logo in the top left corner (and maybe the whole top for all I know). I've looked high and low both in various .css files and using Firefox's code inspector, but I can't find anything. Doing my head in. Can anybody help out? How do I remove it? Here is a screenshot that shows it: Imgur screenshot ~~~~

Reply to "How to remove the gradient from the top of the Vector skin?" (talkcontribs)

Hi, can anyone help me out to find the right file and line to make th info table float on the right side? i wasn't able to find the right less(file?) (talkcontribs)

i mean the class wikitable

Dinoguy1000 (talkcontribs)

Just use style="float:right;". If you want all wikitables to float right (not something I'd recommend, to be honest), add the rule .wikitable { float: right; } to your wiki's MediaWiki:Common.css page.

Reply to "infotable float right"

Moving div elements around the screen

Tiptup300 (talkcontribs)

Hello, the Vector skin has been working for well for me, with some serious css modifications. I'm getting to the point where my wiki is almost exactly how I want it, but some of the ways the elements are arranged are causing problems for me.

Is there any way to add additional elements or move the elements around, for example, adding an addition DIV, having the logo section, the search bar, then the sidebar, then the view edit and user options.

Sort of just rearranging the way things are put out. I just haven't been able to find where the order of these html elements are put out.

Reply to "Moving div elements around the screen"

Change logo depending on namespace

4 (talkcontribs)

Hi, I'd like to have a different logo (the one on the top left) depending on the namespace the current page is on, and clicking it should lead to the namespace's main page instead of the wiki's home page. Is this doable in Vector? (talkcontribs)

PS: I managed to change logos by adding to MediaWiki:Vector.css a line for each namespace, like this:

.ns-NNN #p-logo a { background-image: url(IMAGE) !important; }

... where NNN is the namespace's number and IMAGE is the full url of the logo.

Now I just need to know if it's possible to make so that clicking on a logo takes me to the namespace's main page.

Dinoguy1000 (talkcontribs)

You would need to use Javascript to do that, though I don't know enough to be able to help you with it.

Olekdia (talkcontribs)

It seems you are trying to do that I want: use one mediawiki instance for different portals.

I have changed url of Logo as well for different namespaces:

  1. Edit MediaWiki:Mainpage set next content '{{NAMESPACE}}:Wiki', or 'Special:MyLanguage/{{NAMESPACE}}:Wiki' if you use wikitranslate extension.
  2. Create main pages for every namespaces: Some_space1:Wiki, Some_space2:Wiki, ... etc.

Now it should work properly

Reply to "Change logo depending on namespace" (talkcontribs)

I think Wikipedia and other wikis look better with Vector than Monobook. Thank you.

Reply to "|:"

Logo seems to have disappeared overnight...

WikiPEAK (talkcontribs)

The logo in the top left corner seems to have disappeared overnight. There were no changes to any of the source files, and the logo file is accessible individually through an external browser... Has anyone experienced this before?

Reply to "Logo seems to have disappeared overnight..."

Style works only one some pages

Summary by Sparklern

I have reinstalled and the skin doesn't work on

Sparklern (talkcontribs)

My page uses MediaWiki 1.27.3 and the vector style only shows on some pages for example Spezial:Version but not on the main page. With the newst vector style provided on this page, the pages stay white.

Matma Rex (talkcontribs)

The skin seems to look fine on that site for me.

Reply to "Style works only one some pages"

How to use hide and show funtion?

Summary by Tunglinwu
Tunglinwu (talkcontribs)
Matma Rex (talkcontribs)

This functionality is currently not available in Vector, it was removed for performance reasons. Extension:CollapsibleVector claims to reimplement it, I never tried it myself.

Tunglinwu (talkcontribs)

It works, thank you.