Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
a10d68f2
Commit
a10d68f2
authored
Nov 18, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5937: Border radius vars in button groups
parent
a367fd49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
less/button-groups.less
less/button-groups.less
+12
-12
No files found.
less/button-groups.less
View file @
a10d68f2
...
@@ -58,25 +58,25 @@
...
@@ -58,25 +58,25 @@
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {
.btn-group > .btn:first-child {
margin-left: 0;
margin-left: 0;
.border-top-left-radius(
4px
);
.border-top-left-radius(
@baseBorderRadius
);
.border-bottom-left-radius(
4px
);
.border-bottom-left-radius(
@baseBorderRadius
);
}
}
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child,
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
.btn-group > .dropdown-toggle {
.border-top-right-radius(
4px
);
.border-top-right-radius(
@baseBorderRadius
);
.border-bottom-right-radius(
4px
);
.border-bottom-right-radius(
@baseBorderRadius
);
}
}
// Reset corners for large buttons
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
.btn-group > .btn.large:first-child {
margin-left: 0;
margin-left: 0;
.border-top-left-radius(
6px
);
.border-top-left-radius(
@borderRadiusLarge
);
.border-bottom-left-radius(
6px
);
.border-bottom-left-radius(
@borderRadiusLarge
);
}
}
.btn-group > .btn.large:last-child,
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
.btn-group > .large.dropdown-toggle {
.border-top-right-radius(
6px
);
.border-top-right-radius(
@borderRadiusLarge
);
.border-bottom-right-radius(
6px
);
.border-bottom-right-radius(
@borderRadiusLarge
);
}
}
// On hover/focus/active, bring the proper btn to front
// On hover/focus/active, bring the proper btn to front
...
@@ -213,14 +213,14 @@
...
@@ -213,14 +213,14 @@
margin-top: -1px;
margin-top: -1px;
}
}
.btn-group-vertical .btn:first-child {
.btn-group-vertical .btn:first-child {
.border-radius(
4px 4px
0 0);
.border-radius(
@baseBorderRadius @baseBorderRadius
0 0);
}
}
.btn-group-vertical .btn:last-child {
.btn-group-vertical .btn:last-child {
.border-radius(0 0
4px 4px
);
.border-radius(0 0
@baseBorderRadius @baseBorderRadius
);
}
}
.btn-group-vertical .btn-large:first-child {
.btn-group-vertical .btn-large:first-child {
.border-radius(
6px 6px
0 0);
.border-radius(
@borderRadiusLarge @borderRadiusLarge
0 0);
}
}
.btn-group-vertical .btn-large:last-child {
.btn-group-vertical .btn-large:last-child {
.border-radius(0 0
6px 6px
);
.border-radius(0 0
@borderRadiusLarge @borderRadiusLarge
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment