mirror of
https://github.com/primer/css.git
synced 2025-01-06 22:36:48 +03:00
Document .width-auto
This commit is contained in:
parent
b34927880a
commit
1f8274f495
@ -190,6 +190,16 @@ Use `.width-full` to set width to 100%.
|
||||
</div>
|
||||
```
|
||||
|
||||
Use `.width-auto` to reset width to `auto` (initial value). Typically used with **responsive variants**. Resize the window to see the effect in the example below.
|
||||
|
||||
```html
|
||||
<div class="d-table width-full width-md-auto">
|
||||
<div class="d-table-cell">
|
||||
<input class="form-control width-full" type="text" value="Responsive width form field" aria-label="Sample full responsive width form field">
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
Use `.height-fit` to set max-height 100%.
|
||||
|
||||
```html
|
||||
|
Loading…
Reference in New Issue
Block a user