Close

topic styles (urgent)

milo
11 years ago
#1938 Quote
Avatar
  • 14
hi,

I currently working on a upgrade to 2.7 with the fashion theme.
If we add text to a topic, the default css styles are applied (.a, .p ect).
But the default style is set for category navigation (?)
For example the link style is set to:

a
{
    color: #000000;
    text-decoration: none;
}


For paragraph's, there's no new line after the paragraph.

I could ofcourse easily change this but then the navigation style also changes (dont want that)
It is also undesirable to change the formatting in the topic, because it's need to be easy editable for users without any HTML/CSS knowledge.

Can you give a solution for the problem? And fix this in future versions?
Support
11 years ago
#1951 Quote
Avatar
  • Moderator
  • 1044
Hi milo,

Thank you for your feedback!

We will update our css in order to make it more clear and easy to use and will include it in a future release. For now I can propose to you a solution that I think will help you in your situation.

1. One way is to set the link color from the Html Editor of the topic when writing the topic. This will override any other color set from a css file.

2. The other way is to write a new css class that will apply only for topics. For example the following:

.topic-html-content-body a
{
    color: red;
}

thus all the links in a topic will be red, and not the default black.

Hope that helps!

milo
11 years ago
#1987 Quote
Avatar
  • 14
thanks!