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

Hello all,

I have installed the module website_portal_sale on Odoo 8.

I want to change the color when we mouseover a line of the table. I don't find the right css to override for this. For the moment, it is a pale grey rgba(150, 150, 220, 0.3).

COuld you help?


Code

The table is declared with this code. So it has the class table-hover.

<table class="table table-hover o_my_status_table">


Images




อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Ok, I have managed it.

I have found the css rules with the Firefox inspector. I have enabled the pseudo class "hover" on the "td" element of the above table.

Now, when I mouseover a line, the color of the line is F2C6CF.

the correct line to override was :

.table-hover > tbody > tr:hover > td {
    background-color: #F2C6CF;
}
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I think this answer will help you to override css,

https://www.odoo.com/forum/help-1/question/change-theme-odoo-10-0-20170123-community-edition-113759

อวตาร
ละทิ้ง
ผู้เขียน

Thanks for your answer. I already know how to override a stylesheet. But I don't find the right line to override in this case!

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
5295
2
ธ.ค. 21
5143
0
ต.ค. 24
4251
1
พ.ค. 23
2552
2
ต.ค. 18
15379