Skip to content

Instantly share code, notes, and snippets.

@runa-ichinose
Created May 13, 2015 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runa-ichinose/793259df74eade0c3462 to your computer and use it in GitHub Desktop.
Save runa-ichinose/793259df74eade0c3462 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
@mixin yoko {
@media all and (orientation:landscape) {
@content;
}
}
@mixin tate {
@media all and (orientation:portrait) {
@content;
}
}
.item {
width: 50%;
@include tate {
width: 100%;
}
@include yoko {
width: 25%;
}
.image {
@include tate {
width: 150%;
}
@include yoko {
float: left;
}
}
}
.item {
width: 50%;
}
@media all and (orientation: portrait) {
.item {
width: 100%;
}
}
@media all and (orientation: landscape) {
.item {
width: 25%;
}
}
@media all and (orientation: portrait) {
.item .image {
width: 150%;
}
}
@media all and (orientation: landscape) {
.item .image {
float: left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment