How to change font size and colour in Mediawiki navigation sidebar and footer?

吃可爱长大的小学妹 提交于 2019-12-22 07:10:43

问题


My website was developed using Mediawiki and I have the following question:

How do I change the font size and font colour in the navigation sidebar and footer?

I am using the vector skin and having difficulties finding the correct way to make these changes.


回答1:


For the navigation:

search in your css to

div#mw-panel div.portal div.body ul li a {
    color: #0645AD;
}
div#mw-panel div.portal div.body ul li a:visited {
    color: #0B0080;
}

and change it to

div#mw-panel div.portal div.body ul li a {
    font-size:16px;
    color: #008000;
}
div#mw-panel div.portal div.body ul li a:visited {
    color: #A0600B;
}

use this when you want the same color for a link and visited link

div#mw-panel div.portal div.body ul li a, a:visited {
    font-size:16px;
    color: #008000;
}

or simple add a new line with this code

#mw-panel .portal a, #mw-panel .portal a:visited {
    font-size:16px!important;
    color: red!important;
}

For the Footer

add new line with this code

div#footer ul li{
    font-size:16px!important;
    color:black!important;
}

div#footer ul li a,div#footer ul li a:visited {
    color: orange!important;
}

}



来源:https://stackoverflow.com/questions/17461308/how-to-change-font-size-and-colour-in-mediawiki-navigation-sidebar-and-footer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!