Skip to content

Instantly share code, notes, and snippets.

@runa-ichinose
Created May 12, 2015 04:27
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/da43a7e7939d73b054f5 to your computer and use it in GitHub Desktop.
Save runa-ichinose/da43a7e7939d73b054f5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$setPrefix: -webkit, -moz-, -0-, null;
@mixin linkIcon($color: #333) {
&:before {
content: "";
position: absolute;
top: 50%;
right: 15px;
width: 10px;
height: 10px;
margin-top: -7px;
border-top: 3px solid $color;
border-right: 3px solid $color;
@each $prefix in $setPrefix {
#{$prefix}transform: rotate(45deg);
}
}
}
/****************
sass(ミックインを呼び出す)
********************/
ul. linklist {
margin: 20px;
li {
list-style: none;
margin: 0 0 1px;
a {
position: relative;
display: block;
padding: 15px {
right: 27px;
}
background: #eee;
color: #333;
text-decoration: none;
@include linkIcon();
}
}
}
Invalid CSS after "...kit, -moz-, -0-": expected expression (e.g. 1px, bold), was ", null;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment