nunomaduro / termwind

🍃 In short, it's like Tailwind CSS, but for the PHP command-line applications.
MIT License
2.27k stars 76 forks source link

feat: Add support for `w-auto`. #148

Closed xiCO2k closed 2 years ago

xiCO2k commented 2 years ago

This PR add the w-auto class, that just resets the width of the element, it is useful when you use the Media Queries.

Example:

render(<<<'HTML'
    <div class="my-1 mx-2 w-25 sm:w-auto truncate px-1 bg-red text-black">
        When its a sm screen it will have the width set, but with larger sizes it will have no limitation
    </div>
HTML);

Output

image
nunomaduro commented 2 years ago

Once tests are fixed, you can merge.