Skip to content

Instantly share code, notes, and snippets.

@saivarunk
Created January 17, 2014 08:17
Show Gist options
  • Save saivarunk/8470018 to your computer and use it in GitHub Desktop.
Save saivarunk/8470018 to your computer and use it in GitHub Desktop.
Add CSS variations. phpA/B will automatically add the name of the current variation as a class name to the <body> tag.
p
{
color: black; /* control styles */
}
.phpab-my_variation p
{
color: red; /* variation styles */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment