Skip to content

Instantly share code, notes, and snippets.

@nrrrdcore

nrrrdcore/tooltip.scss

Last active Dec 30, 2015
Embed
What would you like to do?
&:before {
display: none;
}
&:after {
display: none;
}
&:hover {
background-color: #eee;
&:before, &:after {
display: block;
}
}
@nomansid81

This comment has been minimized.

Copy link

@nomansid81 nomansid81 commented Dec 30, 2015

Hi Julie,

Would you happen to know if :before can be used to create a fade out edge for a css gradient?
I am currently using this:
background: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ffffff));

But need to fade out both edges (top right and top left).

Your advise will be appreciated,
Noman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.