Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1353 Tampilan

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?


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Feb 22
5124
0
Des 23
1152
0
Nov 23
1310
0
Mar 20
3798
2
Jan 20
4356