materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Button Issue

Open mukeshm280 opened this issue 10 years ago • 3 comments

There is no such type of button available in materializecss like btn-success, btn-cancel, btn-info which is available in bootstrap. To achive these we need to modify css each time. or is there any alternate way to achive these...?

mukeshm280 avatar Dec 11 '15 21:12 mukeshm280

you can just give the class to button that you want just need color of background and color of text

MetaiR avatar Dec 11 '15 22:12 MetaiR

<a class="btn green">Success</a>
<a class="btn orange">Warn</a>
<a class="btn red">Danger</a>
<a class="btn blue">Info</a>

More info here http://materializecss.com/color.html

You can also make a light danger or something like so

<a class="btn red lighten-3">Light danger</a>

irontiga avatar Dec 12 '15 00:12 irontiga

@205112067 Are you using sass? If so, you can easily extend the classes. Like so:

.btn-success {
@extend .blue, .white-text
}

Then you could use it in your html like so:

<a href="#" class="btn btn-success">#</a>

This would then create a blue button with white text, similar to the one that Bootstrap offers.

Sajonara avatar Dec 12 '15 23:12 Sajonara