Skip to Content
Menú
This question has been flagged
1575 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
0
de febr. 22
5405
0
de des. 23
1465
0
de nov. 23
1553
0
de març 20
4038
2
de gen. 20
4652