GithubHelp home page GithubHelp logo

tailwindcss-gap's People

Contributors

benface avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

darkyzhou desvu

tailwindcss-gap's Issues

Legacy mode to support IE

It won't use custom properties. The output will probably be twice as big, but that's a relatively small price to pay for IE support.

Use core's `spacing` as default `gap`

Wanted to hear your thoughts on adding this. I always use those values and this change would at least save me 30 seconds every time I use your plugin.

Do you also use the same values most of the time? If not any reason not to I'm missing like I usually do? lol

Use padding instead of margin?

Because of these two cases:

  • collapsible margins, e.g.:
    <div class="gap-y-20">
        <p>...</p>
        <p>...</p>
        <!-- the vertical gap is actually 10px -- >
    </div>
    
  • columns defined in percentage, e.g.:
    <div class="gap-x-20">
        <div class="w-1/2">...</div>
        <div class="w-1/2">...</div>
        <!-- the two columns don't fit on one line -- >
    </div>
    

On the other hand, if changed this might now be unexpected:

<div class="gap-20">
    <div class="w-40 h-40 bg-red">...</div>
    <div class="w-40 h-40 bg-red">...</div>
    <!-- there is no gap between the two red squares, and they have inner padding -->
</div>

Ugh.

Nested gaps does not work.

Hello, I noticed that nested gaps does not work.
PUG CODE:

.flex.flex-column.gap.gap-y-2
 .flex.gap.gap-x-2
     span Hello
     span Hello
     span Hello
 .flex.gap.gap-x-2
     span Hello
     span Hello
     span Hello
 .flex.gap.gap-x-2
     span Hello
     span Hello
     span Hello

This code only apply one margin.

Tailwind CSS 2 support

I guess the current version 7.0.0 is not compatible with the latest Tailwind CSS 2.0.1.

I get the following error:

TypeError: target is not a function
    at c:\Users\user\source\repos\project\node_modules\tailwindcss-gap\index.js:20:18
    at c:\Users\user\source\repos\project\node_modules\tailwindcss\lib\util\processPlugins.js:69:5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.