Skip to content

Instantly share code, notes, and snippets.

View saschamt's full-sized avatar

Sascha Michael Trinkaus saschamt

View GitHub Profile
@saschamt
saschamt / _pseudoFade.sass
Last active December 23, 2015 04:19
A simple Sass mixin for linear fade-out overlays. Uses Bourbon's +background-image mixin for the gradients. Replace rows 15, 23, 31, 39 if you want to use your own gradient code or replace with radial gradients for a vignette effect. Uses 'after' as default but can be extended to 'before' with a simple pass to the $pseudo variable. Added optiona…
=pseudoFade($start: bottom, $size: 30px, $color: #000, $edge: 0px, $pseudo: after, $z-index: false)
position: relative
&:#{$pseudo}
content: ""
display: block
position: absolute
-webkit-touch-callout: none
-webkit-user-select: none
-khtml-user-select: none
-moz-user-select: none
@saschamt
saschamt / Atom.markdown
Created March 6, 2014 09:31
A Pen by Sascha Michael Trinkaus.