whitespace
This commit is contained in:
parent
0e9046e753
commit
3ac33ab8d3
1 changed files with 35 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue