Skip to content
Snippets Groups Projects
Commit 0639e487 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Ajoute les styles des textes barrés sans avoir créé le else/if

parent 33127b66
No related branches found
No related tags found
1 merge request!32Ui diff law bill reform
......@@ -464,13 +464,15 @@
class=" text-2xl font-bold"
title="⚠️ Les dispositifs n'étant pas tous à jour, ce montant est à considérer avec prudence"
>
<span class="line-through-bill">
{euroAmountFormatter.format(
evaluationByNameArrayByCalculationName.law[situationIndex][
rootDecompositionName
].deltaAtVectorIndex ?? 0,
)}
</span>
{#if $billName !== undefined}
<span class="text-le-rouge-pjl">
<span class="text-le-rouge-pjl line-through-reform">
{euroAmountFormatter.format(
evaluationByNameArrayByCalculationName.bill[situationIndex][
rootDecompositionName
......
......@@ -34,6 +34,23 @@ const config = {
variants: {
extend: {},
},
plugins: [
function ({addUtilities}) {
const extendLineThrough = {
'.line-through-bill': {
'textDecoration': 'line-through',
'text-decoration-color': 'rgba(255, 107, 107,0.7)',
'text-decoration-thickness': '2px'
},
'.line-through-reform': {
'textDecoration': 'line-through',
'text-decoration-color': 'rgba(222, 213, 0,0.7)',
'text-decoration-thickness': '2px'
},
}
addUtilities(extendLineThrough)
}
],
}
module.exports = config
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment