2.0.1 • Published 6 years ago

tailwind-not-last-child v2.0.1

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

Not last child

Currently this only works with padding and margin

Installation

Add this plugin to your project:

# Install via npm
npm install --save-dev tailwind-not-last-child

It will generate a not:(:last-child) selector for each of the padding/margin properties set in your tailwind config

eg.

	<div class="not-last-mb-0-75"></div>

Usage

require('tailwind-not-last-child')({
	notable: [
		{
			type: 'margin',
			char: 'm'
		},
		{
			type: 'padding',
			char: 'p'
		}
	]
})
.not\:last-mb-0-75:not(:last-child) {
    margin-bottom: .9375rem;
}