Skip to content

Instantly share code, notes, and snippets.

@sunwu51
Created December 2, 2019 15:48
Show Gist options
  • Save sunwu51/09d8e4cd044f4db8edeafde410c4a345 to your computer and use it in GitHub Desktop.
Save sunwu51/09d8e4cd044f4db8edeafde410c4a345 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<ul>
<li class="ul_x">1111111</li>
<li>2222222</li>
<li>3333333</li>
</ul>
// ----
// Sass (v3.4.25)
// Compass (v1.0.3)
// ----
$ppp:10px;
ul{
background: yellow;
li {
&:hover{
color:red;
}
color: green;
}
.#{&}_x{
color: red;
}
border:solid 1px;
border-radius: $ppp;
}
.a{
color:red;
}
.b{
@extend .a;
font-size:10px;
}
@function get-width($n) {
@return '#{100/$n}%';
}
@mixin c{
color:red;
font-size: 10px;
}
.d{
@include c;
color:green;
width: get-width(3);
}
ul {
background: yellow;
border: solid 1px;
border-radius: 10px;
}
ul li {
color: green;
}
ul li:hover {
color: red;
}
ul .ul_x {
color: red;
}
.a, .b {
color: red;
}
.b {
font-size: 10px;
}
.d {
color: red;
font-size: 10px;
color: green;
width: "33.33333%";
}
<ul>
<li class="ul_x">1111111</li>
<li>2222222</li>
<li>3333333</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment