Created
May 12, 2015 04:27
-
-
Save runa-ichinose/da43a7e7939d73b054f5 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
// ---- | |
// 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(); | |
} | |
} | |
} | |
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
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