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
  • Merge requests
  • !29779

Responsive sizing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge responsive-sizing into v4-dev Nov 30, 2019
  • Overview 0
  • Commits 171
  • Pipelines 0
  • Changes 345+

Created by: rodrigosiqueira-dev

Row columns are not working correctly with responsive breakpoints, for exemple:

< div class="row row-cols-1 row-cols-md-2" > < div class="col" >Some content< /div> < div class="col-12" >Some content< /div> < div class="col" >Some content< /div> < div class="col" >Some content< /div> < /div >

doesn't matter the breakpoint this code will always show 1 column in small devices and 2 columns in largers. The col-12 div doesn't get the whole size above md breakpoint as expected.

I made some fix in a custom mixin make-col by adding !important and just works fine now as the code below:

// Fix make-col mixin to work correctly with responsive row-cols breakpoints @mixin make-col($size, $columns: $grid-columns) { flex: 0 0 percentage($size / $columns) !important; // Add a max-widthto ensure content within each column does not blow out // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari // do not appear to require this. max-width: percentage($size / $columns) !important; }

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: responsive-sizing