简体   繁体   English

更改Disqus选项卡的下划线颜色

[英]Change underline color for Disqus tabs

How to change underline color for tabs in disqus on my site? 如何更改我网站上Disqus中选项卡的下划线颜色

I tried to rewrite disqus rules by own: 我试图自己重写Disqus规则:

.nav-primary>ul>li.active>a:after {
    content: " ";
    display: block;
    right: 0;
    height: 2px;
    background: #000 !important;
    position: absolute;
    bottom: -2px;
    left: 0;
}
.active .publisher-nav-color::after {
    background: #000 !important;
}

My rules has no effect (because of iframe, suppose) 我的规则无效(假设是因为iframe)

The active tab underline color can't be changed. 活动选项卡的下划线颜色无法更改。 Disqus uses the default link color of the page it's on. Disqus使用其所在页面的默认链接颜色。 If it is using a different color other than your link color, make sure your main <a> color style is inheritable by Disqus. 如果使用的颜色不是链接颜色,请确保您的主要<a>颜色样式可被Disqus继承。

See the "Link color" section: https://help.disqus.com/customer/portal/articles/545277-disqus-appearance-tweaks 请参阅“链接颜色”部分: https : //help.disqus.com/customer/portal/articles/545277-disqus-appearance-tweaks

a:after -> a::after a:after -> a::after

.nav-primary>ul>li.active>a:after {background: #000 !important;}

should be 应该

.nav-primary > ul > li.active > a::after {background: #000 !important;}

You answered your own question: Styles cannot be applied to iframes because they are a different source. 您回答了自己的问题:样式不能应用于iframe,因为它们是不同的来源。 You might want to check Disqus's Appearance Tweaking guide which shows you how to make css tweaks. 您可能需要查看Disqus的外观调整指南 ,该指南向您展示了如何进行CSS调整。

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

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