コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1260 ビュー

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.

アバター
破棄