twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.88k stars 78.88k forks source link

5.2: docs: col-auto isn't explained before this point #36978

Open willfaught opened 2 years ago

willfaught commented 2 years ago

https://github.com/twbs/bootstrap/blob/c3c65911665ab64bdaa15d405db65ee81655dbf3/site/content/docs/5.2/layout/columns.md?plain=1#L281

tungphan995 commented 2 years ago

Thank you for believing in me.

On Wednesday, August 17, 2022, Will Faught @.***> wrote:

https://github.com/twbs/bootstrap/blob/c3c65911665ab64bdaa15d405db65e e81655dbf3/site/content/docs/5.2/layout/columns.md?plain=1#L281

— Reply to this email directly, view it on GitHub https://github.com/twbs/bootstrap/issues/36978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHORFC4YO4IYXZZXSX55YRTVZQTHBANCNFSM56XTQWDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

julien-deramond commented 2 years ago

It is explained in the previous Layout > Grid > Variable width content page. However, it's maybe not so obvious that .col-auto is included in "Use col-{breakpoint}-auto classes classes to size columns based on the natural width of their content".

willfaught commented 2 years ago

Yes, I searched for "col-auto" in that page, and nothing was found, so I assumed it was missing.

willfaught commented 2 years ago

In other pages, all classes are explicitly listed, e.g. justify-content-center. Perhaps it would be best to just list all the breakpoint permutations so they get indexed and are searchable with Ctrl/Cmd-F.

willfaught commented 2 years ago

Now that I think of it, sometimes I run across a Bootstrap class, and have no idea where to find the doc for it, e.g. py-3. It'd also be nice to have a page in the doc listing every Bootstrap class alphabetically with a link to its page.