Last active
December 20, 2015 16:39
-
-
Save jesusr/6163401 to your computer and use it in GitHub Desktop.
sass - example 1
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
@import reset //partials | |
$front_color: #43de5e //variables | |
@mixin left($dist) | |
float: left | |
margin-left: $dist //Definición de mixin con parámetro | |
.notesite | |
position: relative | |
width: 1em | |
height: 1em | |
&:after // & es el simbolo de 'parent' | |
+left('1em') | |
display: block | |
position: absolute | |
width: .8em | |
height: .8em | |
background: $front_color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment