Created
February 21, 2014 04:44
-
-
Save jitendravyas/9128903 to your computer and use it in GitHub Desktop.
This file contains 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
// --------------------- | |
// _page.scss | |
// Regular Page Styles | |
.page { | |
margin: 0 auto; | |
width: 75%; | |
} | |
// IE Page Styles | |
@mixin page-ie { | |
body { text-align: center; } | |
.page { text-align: left; } | |
} | |
// --------------------- | |
// _helpers.scss | |
// Regular Helper Styles | |
.clearfix { | |
&:before, | |
&:after { | |
content: " "; | |
display: table; | |
} | |
&:after { clear: both; } | |
} | |
// IE Helper Styles | |
@mixin helpers-ie { | |
.clearfix { zoom: 1; } | |
} | |
// --------------------- | |
// IE.scss (if brought in as a separate file through conditional comments) | |
@import page; | |
@import helpers; | |
@include page-ie; | |
@include helpers-ie; | |
// --------------------- | |
// _IE.scss (if imported into the main file and using modernizr detection or conditional comments on the HTML element) | |
.ie { | |
@include page-ie; | |
@include helpers-ie; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment