Help

0

External css file/css style not work in index.html for uninstall module.

Avatar
Maitree Trivedi

I am using Odoo v10.I have created a custom class and added css property for that class and put that in <style> tag , but that css property is not applied if the module is not installed, After successful installation of module css style work. What to do if I want to use external CSS style before module install.

<html>

<head>

</head>

<body>

     <style> // not work if module is not install
            .text_custom{
                    color:#875A7B;
                    font-size:18px;
            }
     </style>

    <section class="oe_container oe_dark">

    <div class="oe_row">

        <h2 class="oe_slogan" style="color:#875A7B;">Title</h2> // inline css works well

        <h3 class="text_custom">Subtitle</h3>

</div>

</section> 

</body>

</html>

Anyone help me, how to add external css file/css style in index.html ?

头像
丢弃
2 答案
0
Avatar
Dilpesh Rathod
Best Answer

Hello Maintree Trivedi,

css custom class it is not work properly please try with inline css just as mention below.

Ex:
<span style="color:#875A7B;font-size:18px;">Text</span>

I hope it works
Regards,



头像
丢弃
0
Avatar
Silverstar
Best Answer

Hi Maitree,

Add this class before your .oe_styling_v8  css custom class.

<style> // not work if module is not install
           .oe_styling_v8 .text_custom{

                    color:#875A7B;
                    font-size:18px;
            }
     </style>

i have checked this version 9 and it worked well.

Regards,

Silvestar

1 备注
头像
丢弃
Avatar
Maitree Trivedi
-

Thanks for your help.

But, It does not work for me.