Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #18688
Closed
Open
Issue created Dec 26, 2015 by Administrator@rootContributor

documentation layout broken when compiling Bootstrap with Flexbox support

Created by: bassjobsen

On pages of the documentation the .bd-content columns is too wide due to the div.highlight takes full width and did not get overflow-x: scroll. The page look like that shown in the figure shown beneath (on both FF and chrome):

brokendocs

According to http://stackoverflow.com/questions/12022288/how-to-keep-a-flex-item-from-overflowing-due-to-its-text fixing is possible with:

I found that the following code fixes the issue for both FF and Chrome:

.bd-content {
   min-width: 0px;
 }

For other browsers the following code is possible needed:

.bd-content {
  flex-shrink: 1;
  min-width: 0px;
}

.bd-sidebar {
  flex-grow: 1;
}

Or even:

.bd-content {
  flex-shrink: 1;
  flex-order: 1;
  min-width: 0px;
}

.bd-sidebar {
  flex-order: 2; 
  flex-grow: 1;
}
Assignee
Assign to
Time tracking