Created
February 3, 2014 20:25
-
-
Save fredyang/8791662 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
//---------------component style-------------------- | |
//my-widget.scss | |
.my-widget { | |
//in French it should look like this | |
.fr & { | |
font-size: 1em; | |
} | |
//in English it should look like this | |
.en & { | |
font-size:2em; | |
} | |
.ie678 & { | |
font-size:10em; | |
} | |
//in portrait | |
@media (orientation: portrait) { | |
& { | |
width: 100px; | |
//in protrait and english | |
.fr & { | |
font-size:3em; | |
} | |
} | |
} | |
} | |
//_my-widget2.scss | |
.my-widget2 {} | |
//---------------------distrubted style------------------ | |
//in _fr.scss | |
.fr { | |
.my_widget {} | |
.my_widget2 {} | |
} | |
//in _en.scss | |
.en { | |
.my_widget {} | |
.my_widget2 {} | |
} | |
//in _portrait.scss | |
@media (orientation: portrait) { | |
.my_widget {} | |
.my_widget2 {} | |
} |
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
.fr .my-widget { | |
font-size: 1em; | |
} | |
.en .my-widget { | |
font-size: 2em; | |
} | |
.ie678 .my-widget { | |
font-size: 10em; | |
} | |
@media (orientation: portrait) { | |
.my-widget { | |
width: 100px; | |
} | |
.fr .my-widget { | |
font-size: 3em; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment