[英]Remove the fading background in a Discourse topic
I am customizing a theme in a blog based on the Discourse engine.我正在基于 Discourse 引擎在博客中自定义主题。 Now each post (or "topic") loads with a blue background, which quickly fades to the main background color.现在,每个帖子(或“主题”)都加载了蓝色背景,并迅速淡化为主要背景颜色。 You can see an example here .你可以在这里看到一个例子。
I was told, that this is caused by this CSS .有人告诉我,这是由CSS引起的。 So I wrote the following in my custom CSS field:所以我在我的自定义 CSS 字段中写了以下内容:
.topic-body .cooked.highlighted {
animation: none;
}
But this has no effect.但这没有效果。 What have I done wrong?我做错了什么?
Edit CSS/HTML
and click on it现在找到选项Edit CSS/HTML
并单击它.highlighted{
animation:none!important;
}
try taking out this试着拿出这个
&.highlighted {
animation: background-fade-highlight 2.5s ease-out;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.