Skip to content

Instantly share code, notes, and snippets.

@tsi
Created August 15, 2012 08:38
Show Gist options
  • Save tsi/3357665 to your computer and use it in GitHub Desktop.
Save tsi/3357665 to your computer and use it in GitHub Desktop.
CSS flipping inheritance
/**
* CSS flipping inheritance
*/
/* Original code */
.class {
margin-left: 3em; /* Will be flipped */
margin-right: 2em; /* Will be flipped */
padding-left: 1em; /* Will be flipped and reseted */
}
/* CSS Flipper for Dupal */
.class {
margin-right: 3em;
margin-left: 2em;
padding-right: 1em;
padding-left: 1em;
}
<!-- content to be placed inside <body>…</body> -->
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment