Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1514 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
feb. 22
5327
0
dec. 23
1378
0
nov. 23
1472
0
mrt. 20
3931
2
jan. 20
4579