10000 docs(layout): add table for container width values by tmorehouse · Pull Request #5139 · bootstrap-vue/bootstrap-vue · GitHub
[go: up one dir, main page]

Skip to content

docs(layout): add table for container width values #5139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/components/layout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Responsive containers are new in Bootstrap v4.4. They allow you to specify a con
wide (fluid) until particular breakpoint is reached at which point a `max-width` is applied. For
example, setting prop `fluid` to `'md'` will render a container that is 100% wide to start until the
`'md'` breakpoint is reached, at which point it will remain at that breakpoint's container
`max-width`.
`max-width` until the next breakpoint is reached.

```html
<b-container fluid="sm">
Expand All @@ -135,6 +135,9 @@ example, setting prop `fluid` to `'md'` will render a container that is 100% wid
Setting the fluid prop to a breakpoint name translates to the Bootstrap class
`.container-{breakpoint}`.

Refer to the [Grid options section](#grid-options) table below for the default container width
values.

## Rows `<b-row>` and `<b-form-row>`

Rows are wrappers for [columns](#columns-b-col). Each column has horizontal padding (called a
Expand Down Expand Up @@ -242,6 +245,23 @@ See how aspects of the Bootstrap grid system work across multiple devices with a
[SCSS variables](/docs/reference/theming), and (if also using custom breakpoint names), via the
BootstrapVue [global configuration](/docs/misc/settings).

### Container sizes

The following table outlines the default container maximum widths at the various breakpoints. These
may vary if you are using custom themed Bootstrap v4 SCSS/CSS.

| Container type | Extra small `<576px` | Small `≥576px` | Medium `≥768px` | Large `≥992px` | Extra large `≥1200px` |
| -------------- | -------------------- | -------------- | --------------- | -------------- | --------------------- |
| _default_ | `100%` | `540px` | `720px` | `960px` | `1140px` |
| `fluid` | `100%` | `100%` | `100%` | `100%` | `100%` |
| `fluid="sm"` | `100%` | `540px` | `720px` | `960px` | `1140px` |
| `fluid="md"` | `100%` | `100%` | `720px` | `960px` | `1140px` |
| `fluid="lg"` | `100%` | `100%` | `100%` | `960px` | `1140px` |
| `fluid="xl"` | `100%` | `100%` | `100%` | `100%` | `1140px` |

Refer to the [Containers `<b-container>` section](#containers-b-container) section above for
additional information

## Auto-layout columns

Utilize breakpoint-specific column classes for easy column sizing without an explicit numbered prop
Expand Down
0