We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to keep a button depressed - how can you do that? For example: an on/off button
The text was updated successfully, but these errors were encountered:
Fancy buttons doesn't provide something for this out of the box, but if you look at:
https://github.com/imathis/fancy-buttons/blob/master/lib/stylesheets/_fancy-buttons.sass#L37-42
You'll see the mixin calls Brandon uses to create the active state.
You could do something like this:
=depressed($color) +fb-color(darken($color, 6), "active", $color) +box-shadow(darken($color, 15) 0 .08em .2em 1px inset)
Then add another couple of lines to your styles:
&.depressed +depressed(blue)
Or something along those lines.
Sorry, something went wrong.
Oh cool thanks John!
Ramon Tayag
On Sat, Oct 1, 2011 at 11:56 PM, John W. Long < [email protected]>wrote:
Fancy buttons doesn't provide something for this out of the box, but if you look at: https://github.com/imathis/fancy-buttons/blob/master/lib/stylesheets/_fancy-buttons.sass#L37-42 You'll see the mixin calls Brandon uses to create the active state. You could do something like this: =depressed($color) +fb-color(darken($color, 6), "active", $color) +box-shadow(darken($color, 15) 0 .08em .2em 1px inset) Then add another couple of lines to your styles: &.depressed +depressed(blue) Or something along those lines. Reply to this email directly or view it on GitHub: #31 (comment)
Reply to this email directly or view it on GitHub: #31 (comment)
No branches or pull requests
I'd like to keep a button depressed - how can you do that? For example: an on/off button
The text was updated successfully, but these errors were encountered: