Skip to content
New issue

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

Add a default style for .btn with harmful actions #52

Closed
davidbgk opened this issue Aug 22, 2011 · 6 comments
Closed

Add a default style for .btn with harmful actions #52

davidbgk opened this issue Aug 22, 2011 · 6 comments

Comments

@davidbgk
Copy link

First of all, thanks for releasing that lib, perfect timing.

I tried to integrate it to a real project today and I miss a class for potential harmful buttons ("Delete" ones for instance). Maybe a default style (red?) to compete with the primary (blue) can be added to fix that?

Thanks,
David

@n1k0
Copy link

n1k0 commented Aug 22, 2011

Agreed.

@loicfrering
Copy link

Would definitely be useful!

@davidbgk
Copy link
Author

Here is what I did, inspired by github:

    .danger {
      text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
      background: #B33630;
      background: -webkit-gradient(linear,0% 0,0% 100%,from(#DC5F59),to(#B33630));
      background: -moz-linear-gradient(-90deg,#DC5F59,#B33630);
      border-bottom-color: #CD504A;
      color: #fff;
      -webkit-transition: 0;
      -moz-transition: 0;
      transition: 0;
    }
    .danger:hover {
      background: #B33630;
      border-bottom-color: #CD504A;
      color: #fff;
    }

It probably doesn't follow project's standards. I can fork/pull if a core dev think it's a good idea.

@lukeholder
Copy link

oops didn't see this thread,

I already made a pull request here #59

would rather the red colors (including the primary blue) are placed into variables in the preboot.less

@davidbgk
Copy link
Author

Nice! I'll try that, thanks.

@fat
Copy link
Member

fat commented Aug 23, 2011

Added .danger style with this commit: 0bfce13

thanks guys!

@fat fat closed this as completed Aug 23, 2011
eduardolundgren referenced this issue in liferay/alloy-bootstrap Feb 4, 2013
cvrebert added a commit that referenced this issue May 29, 2015
Let Normalize.css normalize <figure>'s margin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants