Skip to content

Instantly share code, notes, and snippets.

@hagenburger
Created October 2, 2014 21:10
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 hagenburger/a5f2ba8ad0d2520b05f9 to your computer and use it in GitHub Desktop.
Save hagenburger/a5f2ba8ad0d2520b05f9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="neue"></div>
<div class="darkenlighten"></div>
<div class="tintshade"></div>
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$color: #686B40;
.neue {
height: 6em;
background-image: linear-gradient(
90deg,
scale-color($color, $lightness: -50%) 33%,
$color 33%,
$color 67%,
scale-color($color, $lightness: 50%) 67%
);
}
.darkenlighten {
height: 6em;
background-image: linear-gradient(
90deg,
darken($color, 50%) 33%,
$color 33%,
$color 67%,
lighten($color, 50%) 67%
);
}
.tintshade {
height: 6em;
background-image: linear-gradient(
90deg,
shade($color, 50%) 33%,
$color 33%,
$color 67%,
tint($color, 50%) 67%
);
}
.neue {
height: 6em;
background-image: linear-gradient(90deg, #343620 33%, #686B40 33%, #686B40 67%, #bdc095 67%);
}
.darkenlighten {
height: 6em;
background-image: linear-gradient(90deg, black 33%, #686B40 33%, #686B40 67%, #dee0ca 67%);
}
.tintshade {
height: 6em;
background-image: linear-gradient(90deg, #343520 33%, #686B40 33%, #686B40 67%, #b3b59f 67%);
}
<div class="neue"></div>
<div class="darkenlighten"></div>
<div class="tintshade"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment