where is the best place to override the bootstrap classes like btn or btn-primary so the new changes can apply in all the places ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
To override Bootstrap classes and apply your custom styles, create a custom CSS file in your custom module. For example:
/* custom_bootstrap.css */
.btn {
/* Add your custom styles for btn */
background-color: #CD5C5C;
border-color: #C0C0C0;
color: white;
}
.btn-primary {
/* Add your custom styles for btn-primary */
background-color: #999999;
border-color: #C0C0C0;
color: white;
}
Don't forget to include the CSS file in the manifest file of your custom module:
'assets': {
'web.assets_frontend': ["/path/to/custom_bootstrap.css"]}
Hope it helps
thank u , but ist okay to override it in the webclient.scss file , with out creating new moudle
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký