Skip to content

Added support for 3 character hex code entry#43

Merged
josedvq merged 1 commit intojosedvq:masterfrom
simon-whitehead:master
Dec 11, 2017
Merged

Added support for 3 character hex code entry#43
josedvq merged 1 commit intojosedvq:masterfrom
simon-whitehead:master

Conversation

@simon-whitehead
Copy link
Copy Markdown
Contributor

This PR adds support for entering 3 character hex codes as specificied in the CSS 2.1 spec.

Quote:

The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros. For example, #fb0 expands to #ffbb00.

This was one of the first things I attempted with the plugin. Let me know if its okay (there may be edge cases I haven't found where this circumvents your original usability).

mrgrain added a commit to mrgrain/colpick that referenced this pull request May 27, 2015
@josedvq josedvq merged commit 4b1658d into josedvq:master Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants