Nifflas' Support Forum
General => About Nifflas' Website and Forum => Topic started by: LPChip on July 05, 2013, 13:39:32
-
During a discussion somewhere at the forum here, it became apparent that you sometimes want to colour things based on how important they are, not so much based on a color. The reason is that altough with the following code you can do colors that look good in every forum theme, it does not always stand out the same.
[cr]red[/cr]
[cy]yellow[/cy]
etc...
Now I've created the following:
[c=?]your text here [/c]
the ? can be a value from 1 to 4. It will give an indication of how important that color is related to the theme the user selects. So 1 is very important, and 4 is not so much important, but still more important than standard text. The colors have been optimised so 1 stands out more than 2 and the colors are different from eachother for recognising different things in case you use all 4 mixed. (so the more important things stand out, but the less important things are still noticeable.
Below you can see how this works in your theme. Select a different theme in the bottom right corner of any page to see how it looks in different themes.
This is the dominant color
This one is near dominant
I'm not that important
I'm not important at all
and I'm the regular color.
If you have any questions, feel free to ask. I am not considering adding more colors than 4 simply because finding 4 good colors was already a challenge.
-
Nice, but it seems like there are no colours defined for the Knytt/default theme?
-
Nice, but it seems like there are no colours defined for the Knytt/default theme?
Yes there are, all themes are affected by the colorcode. I tested it with all themes including the Knytt Edition one. Either something is wrong on your end, or you did something wrong when trying to use the code.
Edit: are you maybe using a replacement for style.css that overrides the one on this theme? Then you need to update your style.css file in your browser.
-
Here's a side by side comparision to each theme colors:
(http://i122.photobucket.com/albums/o240/francisco123123/ThemeC.png)
-
Nice, but it seems like there are no colours defined for the Knytt/default theme?
Yes there are, all themes are affected by the colorcode. I tested it with all themes including the Knytt Edition one. Either something is wrong on your end, or you did something wrong when trying to use the code.
Edit: are you maybe using a replacement for style.css that overrides the one on this theme? Then you need to update your style.css file in your browser.
I didn't see the colors as well at first, but when I came back to report it, it was working.
From my experience with css, I think they stick in cache for some time, I remember having to switch browsers because even CTRL+F5 didn't refresh my website's css.
-
Really? This is the first time I hear about CSS being cached. I developed this with Firefox, but also often I do it with opera, and with neither, I have had this problem.
-
The colours are indeed working in another browser! Nothing I do makes them appear in my main browser, though. All other themes are working normally.
-
What is your main browser, and do you have anything enabled related to custom css?
-
Ah, man. This is neat. Unfortunately I don't know when I'd ever use this, but thank you, LPChip, for implementing it anyways. 8)
-
What is your main browser, and do you have anything enabled related to custom css?
Probably Chrome, because I get the same issue using that browser. Works in Firefox though - neat idea! :)
(edit: it actually works in the Knytt theme, in Chrome, but not on my main theme, X-mas.)
-
That's absolutely perfect for what I'm working on, thankyou very much! :)
Edit: I forgot to ask earlier, is there any theme-sensitive way to force the default text colour?
-
No. But you should not want to do this. Any change in the textcolor for links that will make a link look like normal text will cause the user to miss it. Its bad practice really.
-
I know it's bad practice, but the links on which I was using something similar were of zero value to the vast majority of end-users. I decided that rather than axing them entirely, or adding yet another colour (which, by that point, would've had to be something clashing or dayglo), they may as well be returned to the default text colour and explained in the key (which would necessarily have been at least passingly familiar to anyone wanting that level of information density anyway).
tl;dr: Yes, it's bad practice but, in my opinion, less offensive than a garishly multicoloured wall of text.
Still, thankyou for the answer ;)
-
Colours are working for me everywhere now, which adds credence to the cache theory!
-
Great to hear. :)