Skip to content

Instantly share code, notes, and snippets.

@runa-ichinose
Created April 2, 2015 04:14
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/c2b791309440eafa641f to your computer and use it in GitHub Desktop.
Save runa-ichinose/c2b791309440eafa641f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<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>
// ----
// 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;
}
}
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;
}
<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