fix: gradiente de tarjetas de plan con style inline (no funciona con Tailwind compilado)
Las clases dinámicas via-[{{ color }}] y to-[{{ color }}] no pueden
compilarse porque Tailwind no conoce los valores en build time.
Reemplazadas por style inline con linear-gradient().
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
ea5fd0ad80
commit
fc17e57624
@@ -106,8 +106,8 @@
|
||||
@if ($con = $tarifa['usuario_tarifas'])
|
||||
@if ($con[0]['visible'] == 'true')
|
||||
<button wire:click="cargartarjetaPlan({{ $tarifa['id'] }})"
|
||||
class="shadow-lg text-white py-4 px-3 rounded-lg bg-gradient-to-br from-black
|
||||
(via-[{{ $servicio['color_fondo'] }}],90%) to-[{{ $servicio['color_fondo'] }}]">
|
||||
class="shadow-lg text-white py-4 px-3 rounded-lg"
|
||||
style="background: linear-gradient(to bottom right, #000, {{ $servicio['color_fondo'] }})">
|
||||
|
||||
<p class="font-bold mb-2">
|
||||
@if ($servicio['por_tiempo'] == 1)
|
||||
@@ -143,7 +143,8 @@
|
||||
@endif
|
||||
@else
|
||||
<button wire:click="cargartarjetaPlan({{ $tarifa['id'] }})"
|
||||
class="shadow-lg text-white py-4 px-3 rounded-lg bg-gradient-to-br from-black (via-[{{ $servicio['color_fondo'] }}],90%) to-[{{ $servicio['color_fondo'] }}]">
|
||||
class="shadow-lg text-white py-4 px-3 rounded-lg"
|
||||
style="background: linear-gradient(to bottom right, #000, {{ $servicio['color_fondo'] }})">
|
||||
|
||||
<p class="font-bold mb-2">
|
||||
@if ($servicio['por_tiempo'] == 1)
|
||||
|
||||
Reference in New Issue
Block a user