Skip to content

Instantly share code, notes, and snippets.

@fredyang
Created February 3, 2014 20:25
Show Gist options
  • Save fredyang/8791662 to your computer and use it in GitHub Desktop.
Save fredyang/8791662 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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 {}
}
.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