0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

add support for button dropdowns in justified button groups

This commit is contained in:
aentan 2013-11-19 17:24:49 +08:00
parent 2172e2ea8a
commit ba4c5dae9b
3 changed files with 13 additions and 3 deletions

View File

@ -1953,6 +1953,7 @@ output {
.form-control::-moz-placeholder { .form-control::-moz-placeholder {
color: #999999; color: #999999;
opacity: 1;
} }
.form-control:-ms-input-placeholder { .form-control:-ms-input-placeholder {
@ -3865,12 +3866,17 @@ input[type="button"].btn-block {
table-layout: fixed; table-layout: fixed;
} }
.btn-group-justified .btn { .btn-group-justified > .btn,
.btn-group-justified > .btn-group {
display: table-cell; display: table-cell;
float: none; float: none;
width: 1%; width: 1%;
} }
.btn-group-justified > .btn-group .btn {
width: 100%;
}
[data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="radio"],
[data-toggle="buttons"] > .btn > input[type="checkbox"] { [data-toggle="buttons"] > .btn > input[type="checkbox"] {
display: none; display: none;

File diff suppressed because one or more lines are too long

View File

@ -238,11 +238,15 @@
width: 100%; width: 100%;
table-layout: fixed; table-layout: fixed;
border-collapse: separate; border-collapse: separate;
.btn { > .btn,
> .btn-group {
float: none; float: none;
display: table-cell; display: table-cell;
width: 1%; width: 1%;
} }
> .btn-group .btn {
width: 100%;
}
} }