Re: [Question] Link and Title color change
Posted by
GregChapman on
Jun 10, 2014; 6:29pm
URL: https://support.nabble.com/Question-Link-and-Title-color-change-tp7590405p7590449.html
Nitemare wrote
It didn't worked by adding the CSS.
I've investigated a little and it seems I made a wrong guess. It turns out that the existing colour is determined by a rule:
.nabble a.second-font {
color: xxxx;
}
There is styling for a.category-link but it doesn't include colour and is in a different CSS file. I've haven't bothered to find out why the one file file takes precedence over the other as, at least, I think that should be the solution for you.
I guess there is needed some more in-depth code in the NAML to make this change, since it is linked to the "Change appearance" function. And what ever color you put there, will change every link on the website.
There's two points there...
I assume that the CSS files might be controllable within the user accessible NAML code (I'm not an expert in NAML) but, in my experience, the user has all the control he needs through the CSS dialogue, as that writes code to a CSS file that is more locally based and hence takes priority if it is in conflict with the default CSS files.
However, what you can control through CSS does always depend on there being enough distinct HTML tags, classes and IDs on the page. Some of the things that users want to control cannot be done simply be placing code in the CSS dialogue as there is not enough distinct HTML code on which to hang the CSS to make it happen. In that case you do need to edit the NAML to provide additional HTML "hooks" on which to hang the desired styling. In my view that's the only time you'd need to turn to NAML.
And by going to the "board_table_stylesheet" macro and then add "font-color: #FFF;" under "a.category-link" didn't work either.
"font-color" wouldn't work (Your confusing HTML attributes) as it's not valid CSS code. "color" should work (if it's in the right file and aimed at the right tag/class/id)!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.