Skip to content

Instantly share code, notes, and snippets.

@Thargelion
Created November 21, 2014 23:52
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 Thargelion/9e46b09e421b7b4eded1 to your computer and use it in GitHub Desktop.
Save Thargelion/9e46b09e421b7b4eded1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="derecha">leleder</div>
<div class="izquierda">leleizq</div>
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
@mixin caja($ubi){ //ubi= ubicación
float:$ubi;
width: 48%;
height: 100vh;
margin: 1%;
}
.derecha{
@include caja(right);
$oscurecer: darken(#900, 20%);
background: linear-gradient(#900, $oscurecer);
}
.izquierda{
@include caja(left);
$aclarar: lighten(#030, 40%);
background: linear-gradient(#030, $aclarar);
}
.derecha {
float: right;
width: 48%;
height: 100vh;
margin: 1%;
background: linear-gradient(#900, #330000);
}
.izquierda {
float: left;
width: 48%;
height: 100vh;
margin: 1%;
background: linear-gradient(#030, lime);
}
<div class="derecha">leleder</div>
<div class="izquierda">leleizq</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment