Remove the fading background in a Discourse topic

170 Views Asked by At

I am customizing a theme in a blog based on the Discourse engine. 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. So I wrote the following in my custom CSS field:

.topic-body .cooked.highlighted {
    animation: none;
}

But this has no effect. What have I done wrong?

2

There are 2 best solutions below

1
thelovekesh On BEST ANSWER
  1. log in as the admin and go to settings
  2. Click on customize and then click on your theme
  3. Now find the option Edit CSS/HTML and click on it
  4. In the CSS option add the following code
.highlighted{
     animation:none!important;
}
1
Karim On

try taking out this

 &.highlighted {
    animation: background-fade-highlight 2.5s ease-out;
  }