Tech feature -- cssTextClass

In 0.69, we added support for a new attribute, cssTextClass. If present, when we render the headline in Fargo, we add the class to the text. So this allows you to control the styling of text in Fargo on a per-headline basis.

An example

Using the CSS setting, I added this class:

.greenText {

color: green !important;

}

Then I set a cssTextClass attribute on a headline to greenText.

As you might imagine, the text is now displayed in green when I view it in Fargo.

BTW, it didn't work until I added the !important bit to the declaration. If at first you try a style and it doesn't seem to take, try adding this bit. I don't really understand what it does, but it seems to help.

Why separate worknote?

I'm trying out a new idea, writing up a technical feature in a separate worknote. I don't want all users to feel they need to understand this. We added the feature for more technical users, to give them a way to try some ideas out with Fargo.


Posted: Thu, 23 May 2013 19:42:27 GMT