backgroundSize
This commit is contained in:
parent
db2176bc62
commit
45913d2250
1 changed files with 34 additions and 0 deletions
|
|
@ -25,3 +25,37 @@ features:
|
|||
],
|
||||
]
|
||||
])
|
||||
|
||||
## Customizing
|
||||
|
||||
### Responsive, Hover, and Focus Variants
|
||||
|
||||
By default, no hover, focus, or group-hover variants are generated for background size utilities.
|
||||
|
||||
You can control which variants are generated for the background size utilities by modifying the `backgroundSize` property in the `modules` section of your Tailwind config file.
|
||||
|
||||
For example, this config will _also_ generate hover and focus variants:
|
||||
|
||||
```js
|
||||
{
|
||||
// ...
|
||||
modules: {
|
||||
// ...
|
||||
backgroundSize: ['responsive', 'hover', 'focus'],
|
||||
}
|
||||
}
|
||||
```
|
||||
k
|
||||
### Disabling
|
||||
|
||||
If you aren't using the background size utilities in your project, you can disable them entirely by setting the `backgroundSize` property to `false` in the `modules` section of your config file:
|
||||
|
||||
```js
|
||||
{
|
||||
// ...
|
||||
modules: {
|
||||
// ...
|
||||
backgroundSize: false,
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue