Last active
August 29, 2015 14:19
-
-
Save runa-ichinose/95776d513bd7012e3dcc 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
<p class="image">あああああああ </p> | |
<p class="text">いいいいいい</p> | |
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.12) | |
// Compass (v1.0.3) | |
// ---- | |
$supportIE: true; //IE非対応の場合 | |
.clearfix { | |
@if $supportIE { | |
*zoom: 1; | |
} | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
} | |
.item { | |
@extend .clearfix; | |
background: eee; | |
.image { | |
float: right; | |
height: 100px; | |
font-size: 18px; | |
text-align :right; | |
} | |
.text { | |
float: left; | |
font-size: 24px; | |
} | |
} | |
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
.clearfix, .item { | |
*zoom: 1; | |
} | |
.clearfix:after, .item:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
.item { | |
background: eee; | |
} | |
.item .image { | |
float: right; | |
height: 100px; | |
font-size: 18px; | |
text-align: right; | |
} | |
.item .text { | |
float: left; | |
font-size: 24px; | |
} |
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
<p class="image">あああああああ </p> | |
<p class="text">いいいいいい</p> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment