Closed paulsmith closed 12 years ago
That's a sweet idea, indeed!
Awesome! I merged it in, namespaced it a bit more, and added it to the main docs in cb1a4e1. Just waiting for gh-pages to catch up now...
Nice example! Thanks, Jeff, and very cool project, BTW.
As an alternative to having to remember or lookup the right letter code to type for a state, one could use CSS classes where the class names are derived from the two-letter state USPS abbreviations. It’s also SEO-friendlier because you can write out the name of the state and have it replaced with the StateFace icon.
For example, instead of typing
T
to get an icon for Maryland:If replacement is not required, omit
.state-replace
to have the icon prepended to the text:Perhaps since the common case is replacement, the
.state-replace
could be omitted and replacement would be the default, to be less verbose, and.state-prepend
could be introduced for prepending.