Topic: Default MDB_Pro_4.5.7 CSS issue
abelgriffen pro asked 6 years ago
Marta Wierzbicka staff answered 6 years ago
.light-blue-skin
(https://mdbootstrap.com/css/skins/) in your index.html
file and that's why this skin style overwrites basic .btn-primary
style. Just remove from <body>
tag this line: class="light-blue-skin
" and .btn-primary
will be blue again. But if you need styles from .light-blue-skin
for other parts of your website, you can add this CSS code withing <style></style>
tags in your HTML file:
.light-blue-skin .btn-primary { background-color: #4285f4!important; color: #fff!important; }Best, Marta
abelgriffen pro commented 6 years ago
Thanks...! It worked smoothly.Marta Wierzbicka staff commented 6 years ago
You're welcome.abelgriffen pro answered 6 years ago
The project is fresh and the files are not updated. Also I am using stock files that comes in the package. I am using the following versions. And I have tried the "btn btn-primary" else where as well and gives the same result.
Material Design for Bootstrap 4
Version: MDB PRO 4.5.7
<!--Form with header--> <form name="" id="" action="" method="post" enctype="multipart/form-data" class="md-form"> <div class="card" > <div class="card-body"> <!--Header--> <div class="form-header blue-gradient"> <h3><i class="fa fa-plus-square-o"></i> Add Card</h3> </div> <div class="text-center"> <button type="button" id="btnEditCardMedia" data-toggle="modal" data-target="#modalEditCardMedia" class="btn btn-primary"><i class="fa fa-edit" aria-hidden="true"></i> Edit Media</button> </div> </div> </div> </form> <!--/Form with header-->
abelgriffen pro answered 6 years ago
The project is fresh and the files are not updated. Also I am using stock files that comes in the package. I am using the following versions. And I have tried the "btn btn-primary" else where as well and gives the same result.
Material Design for Bootstrap 4
Version: MDB PRO 4.5.7
<!--Form with header--> <form name="" id="" action="" method="post" enctype="multipart/form-data" class="md-form"> <div class="card" > <div class="card-body"> <!--Header--> <div class="form-header blue-gradient"> <h3><i class="fa fa-plus-square-o"></i> Add Card</h3> </div> <div class="text-center"> <button type="button" id="btnEditCardMedia" data-toggle="modal" data-target="#modalEditCardMedia" class="btn btn-primary"><i class="fa fa-edit" aria-hidden="true"></i> Edit Media</button> </div> </div> </div> </form> <!--/Form with header-->
Marta Wierzbicka staff answered 6 years ago
abelgriffen pro answered 6 years ago
Marta Wierzbicka staff answered 6 years ago
abelgriffen pro commented 6 years ago
I am using mdb.min.css. The Primary Blue colour should be #4285f4 where as it is not. I have tried to cover most of the CSS classes but I might have missed some. Please verify it. .btn-primary{ background-color:#ff4a67!important; color:#fff!important } .light-blue-skin .btn-primary:hover{ background-color:#ff647c } .light-blue-skin .btn-primary.active,.light-blue-skin .btn-primary:active,.light-blue-skin .btn-primary:focus{ background-color:#e30024 } .light-blue-skin .btn-primary.dropdown-toggle{ background-color:#ff4a67!important } .light-blue-skin .btn-primary.dropdown-toggle:focus,.light-blue-skin .btn-primary.dropdown-toggle:hover{ background-color:#ff647c!important } .light-blue-skin .btn-primary:not([disabled]):not(.disabled).active,.light-blue-skin .btn-primary:not([disabled]):not(.disabled):active,.show>.light-blue-skin .btn-primary.dropdown-toggle{ -webkit-box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15); box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15); background-color:#e30024!important } .light-blue-skin .primary-ic{ color:#ff4a67!important }FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No