Created
April 2, 2015 04:14
-
-
Save runa-ichinose/c2b791309440eafa641f 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
<ul class="fruitlist"> | |
<li><a herf="" class="orange">みかん</a></li> | |
<li><a herf="" class="apple">りんご</a></li> | |
<li><a herf="" class="banana">バナナ</a></li> | |
<li><a herf"" class="melon">メロン</a></li> | |
</ul> | |
<header> | |
<ul> | |
<li>2013/08/01</li> | |
<li><a herf="" class="cateLavel banana">バナナ</a></li> | |
</ul> | |
</header> | |
<p class="category"><a herf="" class="cateLabel orange"> | |
みかん</a></p> | |
</header> | |
</ul> |
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) | |
// ---- | |
ul.fruitlist { | |
list-style: none; | |
li { | |
margin: 0 0 10px; | |
a { | |
display: inline-block; | |
padding: 10px 25px; | |
border-radius: 5px; | |
text-decoration: none; | |
color: white; | |
&.orange { | |
background: orange; | |
} | |
&.apple { | |
background: red; | |
} | |
&.banana { | |
background: yellow; | |
color: #333; | |
} | |
&.melon { | |
background: green; | |
} | |
} | |
} | |
} | |
ul.fruitList { | |
list-style: none; | |
li { | |
margin: 0 0 10px; | |
} | |
} | |
.cateLabel { | |
display: inline-block; | |
padding: 10px 25px; | |
background: gray; | |
border-radius: 5px; | |
text-decoration: none; | |
color: white; | |
&.orange { | |
background: orange; | |
} | |
&.apple { | |
background: red; | |
} | |
&.banana { | |
background: yellow; | |
color: #333; | |
} | |
&.melon { | |
background: green; | |
} | |
} | |
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
ul.fruitlist { | |
list-style: none; | |
} | |
ul.fruitlist li { | |
margin: 0 0 10px; | |
} | |
ul.fruitlist li a { | |
display: inline-block; | |
padding: 10px 25px; | |
border-radius: 5px; | |
text-decoration: none; | |
color: white; | |
} | |
ul.fruitlist li a.orange { | |
background: orange; | |
} | |
ul.fruitlist li a.apple { | |
background: red; | |
} | |
ul.fruitlist li a.banana { | |
background: yellow; | |
color: #333; | |
} | |
ul.fruitlist li a.melon { | |
background: green; | |
} | |
ul.fruitList { | |
list-style: none; | |
} | |
ul.fruitList li { | |
margin: 0 0 10px; | |
} | |
.cateLabel { | |
display: inline-block; | |
padding: 10px 25px; | |
background: gray; | |
border-radius: 5px; | |
text-decoration: none; | |
color: white; | |
} | |
.cateLabel.orange { | |
background: orange; | |
} | |
.cateLabel.apple { | |
background: red; | |
} | |
.cateLabel.banana { | |
background: yellow; | |
color: #333; | |
} | |
.cateLabel.melon { | |
background: green; | |
} |
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
<ul class="fruitlist"> | |
<li><a herf="" class="orange">みかん</a></li> | |
<li><a herf="" class="apple">りんご</a></li> | |
<li><a herf="" class="banana">バナナ</a></li> | |
<li><a herf"" class="melon">メロン</a></li> | |
</ul> | |
<header> | |
<ul> | |
<li>2013/08/01</li> | |
<li><a herf="" class="cateLavel banana">バナナ</a></li> | |
</ul> | |
</header> | |
<p class="category"><a herf="" class="cateLabel orange"> | |
みかん</a></p> | |
</header> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment