简体   繁体   English

如何在Mediawiki导航侧边栏和页脚中更改字体大小和颜色?

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

My website was developed using Mediawiki and I have the following question: 我的网站是使用Mediawiki开发的,我有以下问题:

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. 我正在使用矢量皮肤,并且很难找到正确的方法来进行这些更改。

For the navigation: 对于导航:

search in your css to 在你的CSS中搜索

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;
}

} }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM