简体   繁体   English

移除 Discourse 主题中的褪色背景

[英]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?我做错了什么?

  1. log in as the admin and go to settings以管理员身份和 go 登录到设置
  2. Click on customize and then click on your theme单击自定义,然后单击您的主题
  3. Now find the option Edit CSS/HTML and click on it现在找到选项Edit CSS/HTML并单击它
  4. In the CSS option add the following code在 CSS 选项中添加以下代码
.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.

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