benface / tailwindcss-gap Goto Github PK
View Code? Open in Web Editor NEWTailwind CSS plugin to generate gap utilities
License: ISC License
Tailwind CSS plugin to generate gap utilities
License: ISC License
Instead of the current hack.
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.
Is there a trick here to be able to use with postcss + @apply?
@apply flex c-gap c-gap-8
And remove the legacy
option.
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
Because of these two cases:
<div class="gap-y-20">
<p>...</p>
<p>...</p>
<!-- the vertical gap is actually 10px -- >
</div>
<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.
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.
There should be a gap-none
utility to remove any gap on larger screens, e.g.:
<div class="flex gap gap-x-20 sm:gap-none">
...
</div>
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.