Add variants section to flexbox docs

This commit is contained in:
Michaël De Boey 2017-12-02 21:19:47 +01:00
parent 0bc552c243
commit 923a5a22c4
No known key found for this signature in database
GPG key ID: D14AE6F0880EF592
8 changed files with 288 additions and 0 deletions

View file

@ -267,3 +267,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the align-content utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -147,3 +147,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the align-items utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -149,3 +149,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the align-self utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -130,3 +130,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the flex-direction utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -96,3 +96,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the display utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -368,3 +368,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the flex utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -147,3 +147,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the justify-content utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```

View file

@ -161,3 +161,39 @@ For more information about Tailwind's responsive design features, check out the
</div>
@endslot
@endcomponent
## Customizing
### Responsive, Hover, and Focus Variants
By default, only responsive variants are generated for flexbox utilities.
You can control which variants are generated for the flexbox utilities by modifying the `flexbox` property in the `modules` section of your Tailwind config file.
For example, this config will _also_ generate hover and focus variants:
```js
{
// ...
modules: {
// ...
flexbox: ['responsive', 'hover', 'focus'],
}
}
```
Note that modifying the `flexbox` property will affect what variants are generated for _all_ flexbox modules, not just the flex-wrap utilities.
### Disabling
If you aren't using the flexbox utilities in your project, you can disable them entirely by setting the `flexbox` property to `false` in the `modules` section of your config file:
```js
{
// ...
modules: {
// ...
flexbox: false,
}
}
```