Created
May 13, 2015 02:40
-
-
Save runa-ichinose/793259df74eade0c3462 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// 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; | |
} | |
} | |
} |
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
.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