Skip to content

Instantly share code, notes, and snippets.

@jesusr
Last active December 20, 2015 16:39
Show Gist options
  • Save jesusr/6163401 to your computer and use it in GitHub Desktop.
Save jesusr/6163401 to your computer and use it in GitHub Desktop.
sass - example 1
@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