The importance of the important label?
I received an email yesterday, i checked it, it's true! One might accidentally create a green label expecting a red one doing something like this:
<span class="label new important">email<span> We need to talk!
Hi Obama,
This is the inventor of the internets. We need to address an issue i came across recently. It seems like those hipsters at the twitters won't take the importance of .important very seriously. My modest proposal is to change patterns.less:1062 to
&.success { background-color: @green; } &.notice { background-color: lighten(@blue, 25%); } &.warning { background-color: @orange; } &.important { background-color: #c43c35; }
Al Gore
What?
But those are already the styles of the labels... or am I missing something?
They are in the wrong order :) .new overwrites .important in the current situation.
So where is the .new class coming from? Is this a custom class that is already setting the background-color? Still a bit confused... :-)
sorry, what i wanted to say is .succes..
The order is now &.important { background-color: #c43c35; } &.warning { background-color: $orange; } &.success { background-color: $green; } &.notice { background-color: lighten(@blue, 25%); }
So my question basically is why is .success more important than .important (if you use both classes). Silly i know..
I can't speak for the authors, but I don't think they were meant to be used in combination. They are for achieving a specific look by themselves. What are you gaining by giving the label the .success class in addition to the .important class? Not trying to be rude, just trying to understand.
yep, @mkchandler is right here - we weren't intending these to be used together
Correct. Use only one class as documented.