mirror of
https://github.com/jasny/bootstrap.git
synced 2026-02-04 19:15:08 -05:00
add basic vertical button group support
This commit is contained in:
@@ -189,3 +189,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Vertical button groups
|
||||
// ----------------------
|
||||
|
||||
.btn-group-vertical {
|
||||
display: inline-block; // makes buttons only take up the width they need
|
||||
}
|
||||
.btn-group-vertical .btn {
|
||||
display: block;
|
||||
float: none;
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
.border-radius(0);
|
||||
}
|
||||
.btn-group-vertical .btn + .btn {
|
||||
margin-top: -1px;
|
||||
}
|
||||
.btn-group-vertical .btn:first-child {
|
||||
.border-radius(4px 4px 0 0);
|
||||
}
|
||||
.btn-group-vertical .btn:last-child {
|
||||
.border-radius(0 0 4px 4px);
|
||||
}
|
||||
.btn-group-vertical .btn-large:first-child {
|
||||
.border-radius(6px 6px 0 0);
|
||||
}
|
||||
.btn-group-vertical .btn-large:last-child {
|
||||
.border-radius(0 0 6px 6px);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user