Last active
August 29, 2015 14:07
-
-
Save scottkellum/d1b14280c6160f91f295 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
| <div class="neue"></div> | |
| <div class="darkenlighten"></div> | |
| <div class="tintshade"></div> |
This file contains hidden or 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
| // ---- | |
| // Sass (v3.4.4) | |
| // Compass (v1.0.1) | |
| // ---- | |
| @function lighten-neue($color, $amount: 0%) { | |
| @if $amount == 0 { $amount: 0%; } // work with unitless 0 | |
| @return lighten($color, ($amount / 100%) * (100% - lightness($color))); | |
| } | |
| @function darken-neue($color, $amount: 0%) { | |
| @if $amount == 0 { $amount: 0%; } // work with unitless 0 | |
| @return darken($color, ($amount / 100%) * (lightness($color))); | |
| } | |
| $color: #686B40; | |
| .neue { | |
| height: 6em; | |
| background-image: linear-gradient( | |
| 90deg, | |
| darken-neue($color, 50%) 33%, | |
| $color 33%, | |
| $color 67%, | |
| lighten-neue($color, 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% | |
| ); | |
| } |
This file contains hidden or 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
| .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%); | |
| } |
This file contains hidden or 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
| <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