I'm trying to override a bootstrap shadow-sm
class with my own shadow class. Here is the bootstrap class.
for some reason I don't want to change class name
.shadow-sm {
box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}
I tried to override with my custom style
.shadow-sm {
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12)!important;
}
but only bootstrap style applies
Now how do I override?
.shadow-sm {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12)!important;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
<div class="row m-2">
<div class="col-lg-6 col-6 p-1">
<a class="btn fb btn-block shadow-sm rounded-pill" href="#" role="button"><strong>Facebook</strong></a>
</div>
</div>
</div>
my custom style with class that bootstrap already has
tried below question but nothing works
How can I override Bootstrap CSS styles?