0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-16 06:58:43 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Mark Otto
69be1e0966 docs: center flexbox example content on the cross axis
Add `align-items: center` to `.bd-example-content` so examples that turn the
wrapper into a flexbox (`d-flex`, `vstack`, `hstack`) center their items
horizontally, instead of sitting left in the tall min-height frame. Exclude
grid wrappers so grid items keep stretching to equal heights.
2026-08-20 13:43:33 -07:00
Mark Otto
fc0f0974c2 fix(docs): satisfy stylelint in example preview CSS
Put justify-content before text-align and use a single :not().
2026-08-19 21:06:56 -07:00
Mark Otto
979f8c9ff6 docs: center preview content in example previews
Wrap example preview markup in a `.bd-example-content` element so the frame
can center content on both axes and apply a min-height. Loose inline items
(buttons, badges, links) center in a row, while block components keep their
own text alignment and get centered horizontally. Retarget the StackBlitz
export to the new wrapper so exported markup and author classes stay correct.
2026-08-12 15:46:47 -07:00
3 changed files with 70 additions and 26 deletions