From e39da67220fa5caf91b0af292422fbc0df6ad3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sat, 2 Dec 2017 18:54:34 +0100 Subject: [PATCH] spacing (margin, negativeMargin & padding) --- docs/source/docs/spacing.blade.md | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/source/docs/spacing.blade.md b/docs/source/docs/spacing.blade.md index 57029cad5..fcbb7f3be 100644 --- a/docs/source/docs/spacing.blade.md +++ b/docs/source/docs/spacing.blade.md @@ -45,3 +45,41 @@ For example, `.pt-2` would add `.5rem` of padding to the top of the element, `.m
auto auto (margins only)
+ +## Customizing + +### Responsive, Hover, and Focus Variants + +By default, no hover, focus, or group-hover variants are generated for margin, negative margin and padding utilities. + +You can control which variants are generated for the list utilities by modifying the `margin`, `negativeMargin` and `padding` property in the `modules` section of your Tailwind config file. + +For example, this config will _also_ generate hover and focus variants of the margin utilities, hover variants of the negative margin utilities, and focus variants of the padding utilities: + +```js +{ + // ... + modules: { + // ... + margin: ['responsive', 'hover', 'focus'], + negativeMargin: ['responsive', 'hover'], + padding: ['responsive', 'focus'], + } +} +``` + +### Disabling + +If you aren't using the margin, the negative margin, or padding utilities in your project, you can disable them entirely by setting the `margin`, `negativeMargin` and `padding` property to `false` in the `modules` section of your config file: + +```js +{ + // ... + modules: { + // ... + margin: false, + negativeMargin: false, + padding: false, + } +} +```