Created
July 14, 2015 11:07
-
-
Save thachpham92/0e0a3995e1626c97a159 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<div class="group"> | |
<div class="box1"></div> | |
<div class="box2"></div> | |
<div class="box3"></div> | |
<div class="box4"></div> | |
</div> |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/* | |
* Clearfix | |
*/ | |
.group { | |
&:before, &:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
max-width: 65em; | |
margin: 0 auto; | |
} | |
/* | |
* Khai báo đối tượng | |
* %box | |
*/ | |
%box { | |
width: 25%; | |
height: 150px; | |
float: left; | |
} | |
/* | |
* Sử dụng đối tượng | |
*/ | |
.box1 { | |
background: red; | |
@extend %box; | |
} | |
.box2 { | |
@extend %box; | |
background: blue; | |
} | |
.box3 { | |
@extend %box; | |
background: green; | |
} | |
.box4 { | |
@extend %box; | |
background: black; | |
} |
This file contains hidden or 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
@charset "UTF-8"; | |
/* | |
* Clearfix | |
*/ | |
.group { | |
max-width: 65em; | |
margin: 0 auto; | |
} | |
.group:before, .group:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
/* | |
* Khai báo đối tượng | |
* %box | |
*/ | |
.box1, .box2, .box3, .box4 { | |
width: 25%; | |
height: 150px; | |
float: left; | |
} | |
/* | |
* Sử dụng đối tượng | |
*/ | |
.box1 { | |
background: red; | |
} | |
.box2 { | |
background: blue; | |
} | |
.box3 { | |
background: green; | |
} | |
.box4 { | |
background: black; | |
} |
This file contains hidden or 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
<div class="group"> | |
<div class="box1"></div> | |
<div class="box2"></div> | |
<div class="box3"></div> | |
<div class="box4"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment