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

I'm trying to style a PDF invoice and I want to use CSS variables to not repeat the same thing over in the CSS code.

I've tried this code in simple HTML/CSS and it works:

:root {
​--secondary-color: rgba(116, 212, 220, 0.3);
}

table.table-dates > thead > tr > th {
​background-color: var(--secondary-color) !important;
}

But in the code for the invoice only this works:

table.table-dates > thead > tr > th {
​background-color: rgba(116, 212, 220, 0.3!important;
}

Can someone tell me if I'm doing something wrong or is this feature not supported in Odoo?


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 22
5354
0
ธ.ค. 23
1412
0
พ.ย. 23
1482
0
มี.ค. 20
3960
2
ม.ค. 20
4598