Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 Fix: Button inline padding #23

Merged
merged 1 commit into from
Jan 27, 2024
Merged

💄 Fix: Button inline padding #23

merged 1 commit into from
Jan 27, 2024

Conversation

FireIsGood
Copy link
Contributor

Fix the inline size of the button to align the ends of the padding to the text.

The background item also had to be fixed, as it was previously a diagonal square with magic number transforms. This fix changes that to a clipped square with percentage transforms.

@Nyumat
Copy link
Owner

Nyumat commented Jan 27, 2024

🐐

@Nyumat Nyumat self-requested a review January 27, 2024 05:54
>
<span className="w-full h-full rotate-45 translate-x-12 -translate-y-2 absolute left-0 top-0 bg-white opacity-[3%]"></span>
<span className="absolute top-0 left-0 w-48 h-48 -mt-1 transition-all duration-500 ease-in-out rotate-45 -translate-x-56 -translate-y-24 bg-white opacity-100 group-hover:-translate-x-8"></span>
<span className="absolute w-[125%] left-[-125%] group-hover:left-[0] transition-all duration-500 inset-y-0 aspect-square bg-white [clip-path:polygon(0_0,_100%_0%,_0_100%,_0%_100%);]"></span>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omg does tailwind for real not have JIT for v3? Wow.

@Nyumat Nyumat merged commit 73feb88 into Nyumat:main Jan 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants