carn4ge
(Pleasecall911kenneth)
July 29, 2017, 4:44pm
1
Is there a way to override the bootstrap alert? I wanna make the ‘success’ alert more greener. I already tried creating a new class on the .css file, but it doesn’t work it goes back to the original white background color.
Example code:
.alert-greener {
color: #4F8350;
background-color: #4F8350;
border-color: #d6e9c6;
}
php
if($model->request_status == 'On Going!')
{
return ['class' => 'greener'];
}
patrickm
(Yiiframework)
July 29, 2017, 8:00pm
2
return ['class' => 'alert-greener'];
carn4ge
(Pleasecall911kenneth)
July 30, 2017, 9:40am
3
It doesn’t work too, I already did that.
alirz23
(Ali Raza)
July 31, 2017, 5:50am
4
you need to check if your class is being added to the bootstrap alert element
jkofsky
(Jkofsky)
July 31, 2017, 6:39am
5
…Or override the alert-success class in your css
.alert-success {
color: #4F8350;
background-color: #4F8350;
border-color: #d6e9c6;
}