1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 21:22:52 +02:00

Remove margin between buttons in button groups; use border-radius mixins to avoid reseting border-radii that don't need resetting

This commit is contained in:
Mark Otto
2013-02-28 19:34:02 -08:00
parent 877d64dd77
commit 9d763e805b
2 changed files with 17 additions and 34 deletions

View File

@@ -3494,10 +3494,6 @@ button.close {
border-radius: 0;
}
.btn-group > .btn + .btn {
margin-left: 1px;
}
.btn-group > .btn:first-child {
margin-left: 0;
border-bottom-left-radius: 4px;
@@ -3567,25 +3563,24 @@ button.close {
border-radius: 0;
}
.btn-group-vertical > .btn + .btn {
margin-top: 1px;
margin-left: 0;
}
.btn-group-vertical .btn:first-child {
border-radius: 4px 4px 0 0;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
}
.btn-group-vertical .btn:last-child {
border-radius: 0 0 4px 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
.btn-group-vertical .btn-large:first-child {
border-radius: 6px 6px 0 0;
border-top-right-radius: 6px;
border-top-left-radius: 6px;
}
.btn-group-vertical .btn-large:last-child {
border-radius: 0 0 6px 6px;
border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
}
.btn-group-justified {