pseudo-classes added to TextMate CSS Bundle

Sunday, December 11th, 2011

I’ve added all pseudo-classes and pseudo-elements to my TextMate CSS bundle.

A word of caution: you might want to check which ones are available to you. It will depend on your browser support requirements… And if you don’t know selectivizr, check it out. It will help.

The pseudo-snippets (just made that up) are triggered the same way as the CSS properties, but with the addition of a colon. The only exception to that rule is “of” which is not part of the trigger, so for instance :nth-last-of-type() is triggered with :nlt and not :nlot while :h will get you :hover.

There are actually some other CSS3 additions in the bundle, but I need to clean it up and add more stuff before I talk about it… In the meantime, feel free to poke around in the bundle editor.

I updated the download on here but I recommend you get the latest version via github which will eventually be the official download.

Filed under: CSS, TextMate