Created
August 15, 2012 08:38
-
-
Save tsi/3357665 to your computer and use it in GitHub Desktop.
CSS flipping inheritance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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