whitespace

This commit is contained in:
Michaël De Boey 2017-12-02 19:27:31 +01:00
parent 0e9046e753
commit 3ac33ab8d3
No known key found for this signature in database
GPG key ID: D14AE6F0880EF592

View file

@ -50,8 +50,42 @@ features:
],
[
'.truncate',
"overflow: hidden;\ntext-overflow: ellipsis;\nwhite-space",
"overflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap",
'Truncate overflowing text with an ellipsis (<code>…</code>) if needed.',
],
]
])
## Customizing
### Responsive, Hover, and Focus Variants
By default, no hover, focus, or group-hover variants are generated for whitespace & wrapping utilities.
You can control which variants are generated for the whitespace & wrapping utilities by modifying the `whitespace` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
whitespace: ['responsive', 'hover', 'focus'],
}
}
```
### Disabling
If you aren't using the whitespace & wrapping utilities in your project, you can disable them entirely by setting the `whitespace` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
whitespace: false,
}
}
```