Skip to content
GitLab
    • Explore Projects Groups Snippets
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
  • !14572

Add support for split button dropdowns in justified button groups (with IE8 support)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/MohammadYounes/dev into master 10 years ago
  • Overview 0
  • Commits 4
  • Pipelines 0
  • Changes 1

Created by: MohammadYounes

The fixed values 26px/36px are calculated based on caret size, the only variable available for this is @caret-width-base/@caret-width-large.

caret size = .dropdown-toggle padding * 2 + .btn border * 2 + ( .caret border or .caret border lg) * 2

Sample: http://jsfiddle.net/seLk2khL

Compare
  • master (base)

and
  • latest version
    86a6fb09
    4 commits, 2 years ago

1 file
+ 22
- 0

    Preferences

    File browser
    Compare changes
less/button-groups.less
+ 22
- 0
  • View file @ 86a6fb09


@@ -217,6 +217,28 @@
width: 100%;
}
> .btn-group > .btn:first-child{
padding-right: (2 * @caret-width-base + 18);
margin-right: (-2 * @caret-width-base - 18);
}
> .btn-group-lg > .btn-lg:first-child {
padding-right: (2 * @caret-width-large + 26);
margin-right: (-2 * @caret-width-large - 26);
}
//fallback to exclude non-split button dropdown
> .btn-group > .btn.dropdown-toggle:first-child {
padding-right: 0;
margin-right: 0;
}
> .btn-group > .btn + .dropdown-toggle {
z-index: 3;
float: right;
width: auto;
}
> .btn-group:last-child > .btn:first-child {
.border-right-radius(@border-radius-large);
}
> .btn-group .dropdown-menu {
left: auto;
}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
2
css feature
2
css feature
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Administrator
Reference: twbs/bootstrap!14572
Source branch: github/fork/MohammadYounes/dev

Menu

Explore Projects Groups Snippets