Skip to content

Update grid doc for consistent use of container wrapper.#27776

Merged
XhmikosR merged 2 commits intotwbs:v4-devfrom
florianlacreuse:documention-grid-container-consistency
Dec 16, 2018
Merged

Update grid doc for consistent use of container wrapper.#27776
XhmikosR merged 2 commits intotwbs:v4-devfrom
florianlacreuse:documention-grid-container-consistency

Conversation

@florianlacreuse
Copy link
Copy Markdown
Contributor

In the grid section of the documentation, some examples use .container parent class and some don't. This may be confusing for new users. Furthermore, not all examples are aligned in the same way (since the missing paddings).

<div class="row mx-lg-n5">
<div class="col py-3 px-lg-5 border bg-light">Custom column padding</div>
<div class="col py-3 px-lg-5 border bg-light">Custom column padding</div>
<div class="container px-lg-5">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this one, may be we don't want to talk about .container here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On gigantic screens or when you're zoomed out a lot you'll see that this class will align this example with the rest, you can keep it here.

Copy link
Copy Markdown
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, this keeps the examples aligned. Nice job @florianlacreuse!

@florianlacreuse
Copy link
Copy Markdown
Contributor Author

@MartijnCuppens Thanks! I hope this will be merged for the next v4.2 coming soon.

@XhmikosR XhmikosR merged commit 8ee2065 into twbs:v4-dev Dec 16, 2018
@mdo mdo mentioned this pull request Dec 16, 2018
@florianlacreuse florianlacreuse deleted the documention-grid-container-consistency branch December 17, 2018 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants