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
  • #20999
Closed
Open
Issue created Oct 25, 2016 by Administrator@rootContributor

custom-control + custom-control margin-left break display on mobile view

Created by: Lausselloic

Tested on Windows, Firefox 45.2 ESR, IE11 and Chrome 54 Onto the doc page : http://v4-alpha.getbootstrap.com/components/forms/#radios The custom-controls display well on desktop, but when switching to mobile view, the margin-left into _custom-forms.scss push the second custom-control block.

Maybe it's better to put a margin-right onto each custom-control. But warning fo RTL maybe need to be reverted.

.custom-control { position: relative; display: inline-block; padding-left: $custom-control-gutter; cursor: pointer;

  • .custom-control { margin-left: $custom-control-spacer-x; } }

Display with the margin-left on mobile view :

radios with margin-left

Display with the margin-right

radios with margin-right

The other option (maybe not really robust), will be to remove the margin if viewport is lower than a fixed breakpoint?

Say to me if you want a pull-request

Assignee
Assign to
Time tracking