Created
August 15, 2012 07:39
-
-
Save anonymous/3357409 to your computer and use it in GitHub Desktop.
CSS flipping tools
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 tools | |
*/ | |
/* Original code */ | |
.class { | |
padding: 1px 2px 3px 4px; | |
margin-right: 3em; | |
background: url(image.gif) no-repeat right center; | |
margin-bottom: 20px; | |
color: #222; | |
} | |
/* Standard tools (e.g. http://cssjanus.commoner.com/) */ | |
.class { | |
padding: 1px 4px 3px 2px; | |
margin-left: 3em; | |
background: url(image.gif) no-repeat left center; | |
margin-bottom: 20px; /* this is unneeded in a drupal RTLed file */ | |
color: #222; /* this is unneeded in a drupal RTLed file */ | |
} | |
/* CSS Flipper for Dupal */ | |
.class { | |
padding: 1px 4px 3px 2px; | |
margin-left: 3em; | |
margin-right: auto; /* This was added by the flipper to reset the original margin-right */ | |
background: url(image.gif) no-repeat left center; | |
} |
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