Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified form to write gray-colors #697

Closed
rentalhost opened this issue Mar 9, 2012 · 6 comments
Closed

Simplified form to write gray-colors #697

rentalhost opened this issue Mar 9, 2012 · 6 comments

Comments

@rentalhost
Copy link

Hi!
I suggest a simplified form to write gray-colors.

Instead of write #EEEEEE, just write #E;
Instead of write #D8D8D8, just write #D8.

Three to five characters throw an exception (#AAA is an exception).

@lukeapage
Copy link
Member

-1 from me.. I don't see that as a good enough gain over adding complexity.. I think it looks a little confusing.

@Soviut
Copy link

Soviut commented Oct 31, 2012

+1 for less expanding CSS-compliant short-hand hex colours. Short form colours like #CCC aren't compatible with older versions of IE. It would be nice if LESS could normalize this.

+1 tentatively for the ultra-short colours, because in most cases, they'll make sense:

background-color: #E;

Some reference on shorthand hex colours

@Synchro
Copy link
Member

Synchro commented Oct 31, 2012

I don't see any harm in this. If LESS is about making CSS more concise, this fits the bill. Given that it currently does nothing with 1 or 2 character colors, it's a transparent (ha!) addition. We already support some non-CSS color definition methods, though they are explicit functions.

@lukeapage
Copy link
Member

ok.. maybe I was harsh!

@seven-phases-max
Copy link
Member

Referencing #2653 (too bad I noticed that was a duplicate of this one so late).

@stale
Copy link

stale bot commented Nov 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 14, 2017
@stale stale bot closed this as completed Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@Synchro @Soviut @lukeapage @rentalhost @seven-phases-max and others