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
  • #11783
Closed
Open
Issue created Dec 08, 2013 by Administrator@rootContributor

Navbar right padding broken when using navbar-fixed-top with 3.0.3

Created by: tkrotoff

The navbar right padding is broken when using navbar-fixed-top with Bootstrap 3.0.3. Was working fine with Bootstrap 3.0.2.

navbar-static-top and navbar-fixed-bottom are probably impacted too.

Live example: http://plnkr.co/edit/zn1Pc0?p=preview

With navbar-fixed-top: With navbar-fixed-top

Without navbar-fixed-top: Without navbar-fixed-top

The issue is most probably related to this commit: https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9

Version 3.0.3 contains the following code:

    // Undo the collapse side padding for navbars with containers to ensure
    // alignment of right-aligned contents.
    .navbar-fixed-top &,
    .navbar-static-top &,
    .navbar-fixed-bottom & {
      padding-left: 0;
      padding-right: 0;
    }

3.0.2 does not.

Assignee
Assign to
Time tracking