Skip to content

Commit

Permalink
Update cart icon style
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed May 10, 2024
1 parent dcec5b2 commit cb2325a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
}
}"
class="p-2 relative after:absolute after:rounded-full after:flex after:justify-center after:items-center after:text-xs after:text-gray-100 after:bg-red-600"
:class="`after:content-['${num}'] after:size-${num >= 100 ? 6 : num >= 10 ? 5 : 4} ${num >= 100 ? 'after:-right-1.5 after:-top-1.5' : num >= 10 ? 'after:-right-0.5 after:-top-0.5' : 'after:right-0 after:top-0'}`"
:class="`after:content-['${num}'] after:size-${num >= 100 ? 6 : num >= 10 ? 5 : num > 0 ? 4 : 0} ${num >= 100 ? 'after:-right-1.5 after:-top-1.5' : num >= 10 ? 'after:-right-0.5 after:-top-0.5' : 'after:right-0 after:top-0'}`"
></a>
</div>
</nav>
Expand Down

0 comments on commit cb2325a

Please sign in to comment.