Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1262 มุมมอง

Hello, I am a student learning and my question is the following:


I just want to insert this CSS code to my narbar:


.navbar {

    border-bottom-left-radius: 10px;

    border-bottom-right-radius: 10px;

}


As you see, I want my navbar inferior side to have borders, but I don't quite know where can I add that CSS code or how to reference the navbar name. Do any of you know what to do? The normal editor wont work to this, tho. 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can add your css file in the path:static/src/css/style.css

you can create a file style.css in the above give path in your custom module and add the CSS style in the file


And add the path in asset bundle in your manifest'assets': {

        'web.assets_backend': [

           

            'module_name/static/src/css/style.css',

        ],}


Hope it helps



อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, Your can add them to class have name .o_main_navbar. 
Reference document in https://www.odoo.com/documentation/17.0/developer/reference/frontend/assets.html.

อวตาร
ละทิ้ง