Skip to Content
Menú
This question has been flagged
1 Respondre
1835 Vistes

hello  ,

i want to make some change in website_sale addons module

i need change some value in scss file how can i override it and link it with my custom module

@include media-breakpoint-up(md) {
margin-top: $tmp-dot-radius + $o-wsale-wizard-thickness*3.5;
float: left;
width: percentage(1/3);


this the original code 


Avatar
Descartar
Best Answer

Hi,

In Odoo 15, CSS files can be added inside the static/src/css directory. Here, you can include your CSS code. For example, if media-breakpoint-up is the class to which you want to apply CSS,  and you encounter issues with the CSS not taking effect, you can use the following approach with the !important rule:

.media-breakpoint-up(md) {

   /* Your CSS code here */

    /* For example: */

    color: red !important;

}

Inside the manifest file, you can then include these CSS files using the 'assets' key. Below is an example:

'assets': {

        'web.assets_backend' [

            'module_name/static/src/scss/file_name.css',

        ],}

Ensure you replace 'module_name' with the actual name of your Odoo module, and make sure the file path is correct based on your module structure.


Hope it helps

Avatar
Descartar