Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ----
- // Sass (v3.4.9)
- // Compass (v1.0.1)
- // ----
- $colors: #C3E279, #F7FEC8, #FFD069, #F27669, #DC9CBE, #C59AE0, #969DCC;
- $stops: ();
- $current-stop: 0%;
- @each $c in $colors {
- $stops: append($stops, $c $current-stop, comma);
- $current-stop: $current-stop + (100% / length($colors));
- $stops: append($stops, $c $current-stop);
- }
- body:before {
- content: '';
- height: 5px;
- display: block;
- background: linear-gradient(to right, $stops);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement