Skip to content

Instantly share code, notes, and snippets.

@paulrouget
Created January 15, 2013 13:22
Show Gist options
  • Save paulrouget/4538594 to your computer and use it in GitHub Desktop.
Save paulrouget/4538594 to your computer and use it in GitHub Desktop.
/* More pseudo classes */
input:disabled { ... }
input:invalid { ... }
/* Matches-Any Pseudo-class */
:matches( h1, h2 ) > p { ... }
:matches( h1, h2 ) > :matches( p, span ) { ... }
/* subject selector */
$ul > li.important:hover {...}
$p + p { ... }
/* scoped style */
<div>
<div> /* --------------------------- */
<style scoped>
div { border: 1px solid red; }
</style>
<div>foo</div>
</div> /* -------------------------- */
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment