Skip to content

Instantly share code, notes, and snippets.

@runa-ichinose
Last active August 29, 2015 14:19
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/95776d513bd7012e3dcc to your computer and use it in GitHub Desktop.
Save runa-ichinose/95776d513bd7012e3dcc to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<p class="image">あああああああ </p>
<p class="text">いいいいいい</p>
// ----
// 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;
}
}
.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;
}
<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